use notePlayHandle::getMidiVelocty() rather than notePlayHandle::getVolume() for allowing less bright sounds by decreasing instrument-track's volume (if soundfont supports it)

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1716 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-09-29 19:30:24 +00:00
parent 880c322cf6
commit 63da74283c
2 changed files with 23 additions and 2 deletions

View File

@@ -574,8 +574,8 @@ void sf2Instrument::playNote( notePlayHandle * _n, bool, sampleFrame * )
_n->m_pluginData = new int( midiNote );
m_synthMutex.lock();
fluid_synth_noteon( m_synth, 1, midiNote, qMin<int>( 127,
_n->getVolume()*127/100 ) );
fluid_synth_noteon( m_synth, 1, midiNote,
_n->getMidiVelocity() );
m_synthMutex.unlock();
m_notesRunningMutex.lock();