mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
wip: sequencer now copies from buffers
This commit is contained in:
parent
aa478099d9
commit
2fc8e84551
15 changed files with 310 additions and 256 deletions
|
|
@ -19,7 +19,9 @@ pub struct Phrase {
|
|||
pub name: String,
|
||||
pub length: usize,
|
||||
pub notes: PhraseData,
|
||||
pub looped: Option<(usize, usize)>
|
||||
pub looped: Option<(usize, usize)>,
|
||||
/// Immediate note-offs in view
|
||||
pub percussive: bool
|
||||
}
|
||||
|
||||
impl Default for Phrase {
|
||||
|
|
@ -34,7 +36,8 @@ impl Phrase {
|
|||
name: name.to_string(),
|
||||
length,
|
||||
notes: notes.unwrap_or(vec![Vec::with_capacity(16);length]),
|
||||
looped: Some((0, length))
|
||||
looped: Some((0, length)),
|
||||
percussive: true,
|
||||
}
|
||||
}
|
||||
pub fn record_event (&mut self, pulse: usize, message: MidiMessage) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue