Add pitchbend to Mallets instrument

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1671 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-09-21 18:50:03 +00:00
parent 424dc3b0e8
commit 668cc77a47
3 changed files with 14 additions and 0 deletions

View File

@@ -66,6 +66,10 @@
- Move smoothing button to a more noticable location
- Some coding style changes
* plugins/stk/mallets/mallets.cpp:
* plugins/stk/mallets/mallets.h:
Add support for pitch bend
2008-09-20 Paul Giblock <drfaygo/at/gmail/dot/com>
* plugins/sf2_player/sf2_player.cpp:

View File

@@ -267,6 +267,8 @@ void malletsInstrument::playNote( notePlayHandle * _n, bool,
const fpp_t frames = _n->framesLeftForCurrentPeriod();
malletsSynth * ps = static_cast<malletsSynth *>( _n->m_pluginData );
ps->setFrequency( freq );
sample_t add_scale = 0.0f;
if( p == 10 )
{

View File

@@ -105,6 +105,14 @@ public:
return( s );
}
inline void setFrequency( const StkFloat _pitch )
{
if( m_voice )
{
m_voice->setFrequency( _pitch );
}
}
protected:
Instrmnt * m_voice;