Midi: added MidiDefaultVelocity to be used for test notes etc.

This commit is contained in:
Tobias Doerffel
2014-03-08 13:22:51 +01:00
parent b01f093e37
commit 56ee27ed9b
6 changed files with 10 additions and 9 deletions

View File

@@ -127,6 +127,7 @@ const int MidiChannelCount = 16;
const int MidiControllerCount = 128;
const int MidiProgramCount = 128;
const int MidiMaxVelocity = 127;
const int MidiDefaultVelocity = MidiMaxVelocity / 2;
const int MidiMaxControllerValue = 127;
const int MidiMaxNote = 127;

View File

@@ -50,7 +50,7 @@ public:
return m_pressedKeys[key];
}
void handleKeyPress( int key, int midiVelocity = MidiMaxVelocity );
void handleKeyPress( int key, int midiVelocity = MidiDefaultVelocity );
void handleKeyRelease( int key );
InstrumentTrack* instrumentTrack() const