mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
wip
This commit is contained in:
parent
f48f17e9a4
commit
4ebecc2427
7 changed files with 107 additions and 71 deletions
18
src/main.rs
18
src/main.rs
|
|
@ -29,11 +29,11 @@ fn main () -> Result<(), Box<dyn Error>> {
|
|||
ppq: AtomicUsize::new(96),
|
||||
});
|
||||
let ppq = timebase.ppq() as u32;
|
||||
run(Launcher::new("Launcher#0", &timebase,
|
||||
let app = Launcher::new("Launcher#0", &timebase,
|
||||
Some(vec![
|
||||
|
||||
Track::new("Kick", &timebase, Some(vec![
|
||||
//Sampler::new("Sampler")?.boxed(),
|
||||
Plugin::lv2("Kick/ChowKick", "file:///home/user/.lv2/ChowKick.lv2", &[1, 1, 0, 2])?.boxed(),
|
||||
//Plugin::lv2("Kick/ChowKick", "file:///home/user/.lv2/ChowKick.lv2", &[1, 1, 0, 2])?.boxed(),
|
||||
]), Some(vec![
|
||||
Phrase::new("HelloKick", ppq * 4, Some(BTreeMap::from([
|
||||
( ppq * 0, vec![MidiMessage::NoteOn { key: 36.into(), vel: 100.into() }] ),
|
||||
|
|
@ -58,17 +58,19 @@ fn main () -> Result<(), Box<dyn Error>> {
|
|||
])))
|
||||
]))?,
|
||||
|
||||
//Sampler::new("Sampler")?.boxed(),
|
||||
//Plugin::lv2("Kick/ChowKick", "file:///home/user/.lv2/ChowKick.lv2", &[1, 1, 0, 2])?.boxed(),
|
||||
//Plugin::lv2("Bass/Helm", "file:///home/user/.lv2/Helm.lv2", &[1, 0, 0, 2])?.boxed(),
|
||||
//Plugin::lv2("Pads/Odin2", "file:///home/user/.lv2/Odin2.lv2", &[1, 0, 0, 2])?.boxed(),
|
||||
]),
|
||||
Some(vec![
|
||||
Scene::new(&"Scene#01", &[Some(0), None, None, None]),
|
||||
Scene::new(&"Scene#02", &[Some(0), Some(0), None, None]),
|
||||
Scene::new(&"Scene#03", &[None, Some(0), None, None]),
|
||||
Scene::new(&"Scene#04", &[None, None, None, None]),
|
||||
Scene::new(&"Scene#05", &[None, None, None, None]),
|
||||
//Scene::new(&"Scene#02", &[Some(0), Some(0), None, None]),
|
||||
//Scene::new(&"Scene#03", &[None, Some(0), None, None]),
|
||||
//Scene::new(&"Scene#04", &[None, None, None, None]),
|
||||
//Scene::new(&"Scene#05", &[None, None, None, None]),
|
||||
])
|
||||
|
||||
)?.connect(input, &output)?)
|
||||
)?.connect(input, &output)?;
|
||||
run(app)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue