mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
launch clips
This commit is contained in:
parent
8a2693c297
commit
a4061535b5
7 changed files with 117 additions and 28 deletions
51
src/main.rs
51
src/main.rs
|
|
@ -69,6 +69,9 @@ fn main () -> Result<(), Box<dyn Error>> {
|
|||
MidiMessage::NoteOn { key: 36.into(), vel: 100.into() },
|
||||
MidiMessage::NoteOn { key: 44.into(), vel: 100.into() },
|
||||
] ),
|
||||
play!(1 => [
|
||||
MidiMessage::NoteOn { key: 44.into(), vel: 100.into() },
|
||||
]),
|
||||
play!(2 => [
|
||||
MidiMessage::NoteOn { key: 44.into(), vel: 100.into() },
|
||||
]),
|
||||
|
|
@ -146,6 +149,50 @@ fn main () -> Result<(), Box<dyn Error>> {
|
|||
MidiMessage::NoteOff { key: 41.into(), vel: 100.into() },
|
||||
MidiMessage::NoteOn { key: 42.into(), vel: 100.into() },
|
||||
]),
|
||||
]))),
|
||||
Phrase::new("E E G Bb", ppq * 4, Some(BTreeMap::from([
|
||||
play!(2 => [
|
||||
MidiMessage::NoteOff { key: 42.into(), vel: 100.into() },
|
||||
MidiMessage::NoteOn { key: 36.into(), vel: 100.into() },
|
||||
]),
|
||||
play!(6 => [
|
||||
MidiMessage::NoteOff { key: 36.into(), vel: 100.into() },
|
||||
MidiMessage::NoteOn { key: 36.into(), vel: 100.into() },
|
||||
]),
|
||||
play!(10 => [
|
||||
MidiMessage::NoteOff { key: 36.into(), vel: 100.into() },
|
||||
MidiMessage::NoteOn { key: 39.into(), vel: 100.into() },
|
||||
]),
|
||||
play!(14 => [
|
||||
MidiMessage::NoteOff { key: 39.into(), vel: 100.into() },
|
||||
MidiMessage::NoteOn { key: 42.into(), vel: 100.into() },
|
||||
]),
|
||||
]))),
|
||||
Phrase::new("E E E E", ppq * 4, Some(BTreeMap::from([
|
||||
play!(0 => [
|
||||
MidiMessage::NoteOff { key: 36.into(), vel: 100.into() },
|
||||
]),
|
||||
play!(2 => [
|
||||
MidiMessage::NoteOn { key: 36.into(), vel: 100.into() },
|
||||
]),
|
||||
play!(4 => [
|
||||
MidiMessage::NoteOff { key: 36.into(), vel: 100.into() },
|
||||
]),
|
||||
play!(6 => [
|
||||
MidiMessage::NoteOn { key: 36.into(), vel: 100.into() },
|
||||
]),
|
||||
play!(8 => [
|
||||
MidiMessage::NoteOff { key: 36.into(), vel: 100.into() },
|
||||
]),
|
||||
play!(10 => [
|
||||
MidiMessage::NoteOn { key: 36.into(), vel: 100.into() },
|
||||
]),
|
||||
play!(12 => [
|
||||
MidiMessage::NoteOff { key: 36.into(), vel: 100.into() },
|
||||
]),
|
||||
play!(14 => [
|
||||
MidiMessage::NoteOn { key: 36.into(), vel: 100.into() },
|
||||
]),
|
||||
])))
|
||||
]))?,
|
||||
|
||||
|
|
@ -156,8 +203,8 @@ fn main () -> Result<(), Box<dyn Error>> {
|
|||
Some(vec![
|
||||
Scene::new(&"Scene 1", &[Some(0), None, None, None]),
|
||||
Scene::new(&"Scene 2", &[Some(0), Some(0), None, None]),
|
||||
Scene::new(&"Scene 3", &[Some(1), Some(0), None, None]),
|
||||
Scene::new(&"Scene 4", &[Some(2), Some(0), None, None]),
|
||||
Scene::new(&"Scene 3", &[Some(1), Some(1), None, None]),
|
||||
Scene::new(&"Scene 4", &[Some(2), Some(2), 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]),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue