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:
21
ChangeLog
21
ChangeLog
@@ -1,3 +1,24 @@
|
||||
2008-09-29 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* 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 <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* plugins/CMakeLists.txt:
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user