Midi recording

This commit is contained in:
Skyler Lehmkuhl
2026-02-13 18:00:59 -05:00
parent b86af7bbf5
commit 82b58ae0dc
7 changed files with 202 additions and 20 deletions
+5
View File
@@ -253,6 +253,11 @@ impl MidiRecordingState {
self.completed_notes.len()
}
/// Get the note numbers of all currently held (active) notes
pub fn active_note_numbers(&self) -> Vec<u8> {
self.active_notes.keys().copied().collect()
}
/// Close out all active notes at the given time
/// This should be called when stopping recording to end any held notes
pub fn close_active_notes(&mut self, end_time: f64) {