mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
draw in sequencer
This commit is contained in:
parent
31f8ec5362
commit
b6c093b355
3 changed files with 62 additions and 38 deletions
|
|
@ -17,7 +17,13 @@ pub struct Sequencer {
|
|||
exited: bool,
|
||||
jack: Jack<Notifications>,
|
||||
cursor: (u16, u16, u16),
|
||||
sequence: Vec<()>,
|
||||
sequence: Vec<Vec<Option<Event>>>,
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub enum Event {
|
||||
NoteOn(u8, u8),
|
||||
NoteOff(u8)
|
||||
}
|
||||
|
||||
impl Sequencer {
|
||||
|
|
@ -38,7 +44,7 @@ impl Sequencer {
|
|||
exited: false,
|
||||
cursor: (0, 0, 0),
|
||||
jack,
|
||||
sequence: vec![],
|
||||
sequence: vec![vec![None;64];4],
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue