Piano widget: make keypresses (gui and keyboard) based on the MIDI base velocity spinner

This commit is contained in:
Vesa
2014-03-22 12:32:43 +02:00
parent 22cb12d066
commit f986f099da
3 changed files with 17 additions and 13 deletions

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef _PIANO_H
#define _PIANO_H
#ifndef PIANO_H
#define PIANO_H
#include "note.h"
#include "Model.h"
@@ -50,7 +50,7 @@ public:
return m_pressedKeys[key];
}
void handleKeyPress( int key, int midiVelocity = MidiDefaultVelocity );
void handleKeyPress( int key, int midiVelocity = -1 );
void handleKeyRelease( int key );
InstrumentTrack* instrumentTrack() const