InstrumentTrack: manage MIDI note recording in NotePlayHandle

We must not record notes when receiving external MidiNoteOff events
as e.g. the sustain pedal still might be pressed. State tracking for
features like these is done inside NotePlayHandle so move the recording-
related signal emission from InstrumentTrack to NotePlayHandle.

Closes #168.
This commit is contained in:
Tobias Doerffel
2014-01-26 16:46:12 +01:00
parent 725ff59f0e
commit 4b340f7d5f
4 changed files with 27 additions and 51 deletions

View File

@@ -204,8 +204,8 @@ public:
signals:
void instrumentChanged();
void newNote();
void noteOn( const note & _n );
void noteOff( const note & _n );
void midiNoteOn( const note& );
void midiNoteOff( const note& );
void nameChanged();