Merge pull request #484 from grejppi/stable-0.4-sf2velocity

Fix for #481
This commit is contained in:
Tobias Doerffel
2014-03-19 09:08:36 +01:00

View File

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