InstrumentTrack, NotePlayHandle: ignore volume of InstrumentTrack for MIDI events
The volume of an InstrumentTrack is applied separately when post-processing the audio buffer and is not related to MIDI processing. It therefore should not be included into MIDI velocity calculation. Closes #301.
This commit is contained in:
@@ -68,7 +68,11 @@ public:
|
||||
virtual void setVolume( const volume_t volume = DefaultVolume );
|
||||
virtual void setPanning( const panning_t panning = DefaultPanning );
|
||||
|
||||
int midiVelocity() const;
|
||||
int midiVelocity() const
|
||||
{
|
||||
return volumeToMidi( getVolume() );
|
||||
}
|
||||
|
||||
int midiKey() const;
|
||||
int midiChannel() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user