diff --git a/ChangeLog b/ChangeLog index d83ad8050..a5b0a0e7e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,24 @@ +2008-09-29 Tobias Doerffel + + * plugins/sf2_player/sf2_player.cpp: + use notePlayHandle::getMidiVelocty() rather than + notePlayHandle::getVolume() for allowing less bright sounds by + decreasing instrument-track's volume (if soundfont supports it) + + * plugins/sf2_player/sf2_player.h: + * plugins/vestige/vestige.h: + * plugins/vibed/vibed.h: + * include/instrument.h: + * include/note_play_handle.h: + * src/core/note_play_handle.cpp: + * src/tracks/instrument_track.cpp: + - replaced instrument::notePlayHandleBased() with + instrument::isMidiBased() + - renamed bendable() to isBendable() + - if the instrument is MIDI based and instrument-track's volume + is below 100, adjust velocity of MIDI events and scaling factor when + mixing sound + 2008-09-25 Tobias Doerffel * plugins/CMakeLists.txt: diff --git a/plugins/sf2_player/sf2_player.cpp b/plugins/sf2_player/sf2_player.cpp index d9b37f96f..1df9546e1 100644 --- a/plugins/sf2_player/sf2_player.cpp +++ b/plugins/sf2_player/sf2_player.cpp @@ -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( 127, - _n->getVolume()*127/100 ) ); + fluid_synth_noteon( m_synth, 1, midiNote, + _n->getMidiVelocity() ); m_synthMutex.unlock(); m_notesRunningMutex.lock();