document time units

This commit is contained in:
🪞👃🪞 2024-11-02 02:50:54 +02:00
parent 924b68fccf
commit ef80c48939
2 changed files with 26 additions and 11 deletions

View file

@ -367,7 +367,7 @@ impl Phrase {
clone.uuid = uuid::Uuid::new_v4();
clone
}
pub fn toggle_loop (&mut self) { self.loop_on = !self.loop_on; }
pub fn toggle_loop (&mut self) { self.loop_on = !self.loop_on; }
pub fn record_event (&mut self, pulse: usize, message: MidiMessage) {
if pulse >= self.length { panic!("extend phrase first") }
self.notes[pulse].push(message);