Sf2Player: corrected MIDI velocity calculation for pseudo envelopes

This commit is contained in:
Tobias Doerffel
2014-03-08 12:46:52 +01:00
parent 0ca3901ab8
commit 83af61836f

View File

@@ -606,7 +606,7 @@ void sf2Instrument::playNote( NotePlayHandle * _n, sampleFrame * )
}
#endif
const float currentVelocity = _n->volumeLevel( tfp ) * 127;
const float currentVelocity = _n->volumeLevel( tfp ) * MidiMaxVelocity * DefaultVolume / MaxVolume;
if( pluginData->fluidVoice &&
pluginData->lastVelocity != currentVelocity )
{