wip: edn project format

This commit is contained in:
🪞👃🪞 2024-07-08 02:41:04 +03:00
parent 14d9116c7c
commit e2a842492e
12 changed files with 401 additions and 65 deletions

View file

@ -9,7 +9,7 @@ pub mod track;
pub use self::phrase::Phrase;
pub use self::scene::Scene;
pub use self::track::Track;
pub use self::sampler::{Sampler, Sample};
pub use self::sampler::{Sampler, Sample, read_sample_data};
pub use self::mixer::Mixer;
pub use self::plugin::{Plugin, PluginKind, lv2::LV2Plugin};
@ -158,7 +158,7 @@ impl App {
pub fn add_track_with_cb (
&mut self,
name: Option<&str>,
init: impl Fn(&Client, &mut Track)->Usually<()>,
init: impl FnOnce(&Client, &mut Track)->Usually<()>,
) -> Usually<&mut Track> {
let name = name.ok_or_else(||format!("Track {}", self.tracks.len() + 1))?;
let mut track = Track::new(&name, self.client(), None, None)?;