mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
wip: edn project format
This commit is contained in:
parent
14d9116c7c
commit
e2a842492e
12 changed files with 401 additions and 65 deletions
|
|
@ -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)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue