diff options
author | David Robillard <d@drobilla.net> | 2008-02-18 23:30:27 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-02-18 23:30:27 +0000 |
commit | 466500fdaf25b57ba7c99ffe7a78364212be8e40 (patch) | |
tree | 4d2b9a9f644b6a350e986bdb7287dfb0e3a03b3d /libs/ardour/ardour/midi_model.h | |
parent | fbfb26b45c075da880861cf2303b851fe1acc0e8 (diff) |
Channel-aware note recording in MidiModel (i.e. multi-channel note input doesn't cause stuck notes).
Fix MIDI regions randomly displaying 100% stuck notes (uninitialized MidiPlaylist::_note_mode).
git-svn-id: svn://localhost/ardour2/branches/3.0@3084 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/midi_model.h')
-rw-r--r-- | libs/ardour/ardour/midi_model.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/ardour/midi_model.h b/libs/ardour/ardour/midi_model.h index 8e7d786722..61b39c9142 100644 --- a/libs/ardour/ardour/midi_model.h +++ b/libs/ardour/ardour/midi_model.h @@ -191,9 +191,9 @@ private: bool is_sorted() const; #endif - void append_note_on_unlocked(double time, uint8_t note, uint8_t velocity); - void append_note_off_unlocked(double time, uint8_t note); - void append_cc_unlocked(double time, uint8_t number, uint8_t value); + void append_note_on_unlocked(uint8_t chan, double time, uint8_t note, uint8_t velocity); + void append_note_off_unlocked(uint8_t chan, double time, uint8_t note); + void append_cc_unlocked(uint8_t chan, double time, uint8_t number, uint8_t value); mutable Glib::RWLock _lock; @@ -201,7 +201,7 @@ private: NoteMode _note_mode; typedef std::vector<size_t> WriteNotes; - WriteNotes _write_notes; + WriteNotes _write_notes[16]; bool _writing; bool _edited; |