initial LB302 slide support

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1295 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-07-07 14:28:49 +00:00
parent 49ba9fe2c6
commit 01963f4dba
3 changed files with 24 additions and 12 deletions

View File

@@ -1,3 +1,16 @@
2008-07-07 Paul Giblock <drfaygo/at/gmail/dot/com>
* src/gui/controller_connection_dialog.cpp:
Show name instead of type in connection dialog
* src/gui/widgets/controller_view.cpp:
Remove bypass
* plugins/lb302/lb302.cpp:
* plugins/lb302/lb302.h:
- Initial support for pitch-bend, doesn't work during slide.
- Next version will probably be the first lb303
2008-07-07 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* src/core/mmp.cpp:
@@ -25,14 +38,6 @@
* src/tracks/instrument_track.cpp:
removed buggy and obsolete support for monophonic instruments
2008-07-07 Paul Giblock <drfaygo/at/gmail/dot/com>
* src/gui/controller_connection_dialog.cpp:
Show name instead of type in connection dialog
* src/gui/widgets/controller_view.cpp:
Remove bypass
2008-07-06 Paul Giblock <drfaygo/at/gmail/dot/com>
* plugins/lb302/lb302.cpp:

View File

@@ -529,8 +529,9 @@ int lb302Synth::process(sampleFrame *outbuf, const Uint32 size)
}
if( new_freq > 0.0f ) {
//printf(" playing new note..\n");
lb302Note note;
note.vco_inc = GET_INC( new_freq );
note.vco_inc = GET_INC( true_freq );
//printf("GET_INC %f %f %d\n", note.vco_inc, new_freq, vca_mode );
///**vco_detune*//engine::getMixer()->processingSampleRate(); // TODO: Use actual sampling rate.
//printf("VCO_INC = %f\n", note.vco_inc);
@@ -544,6 +545,7 @@ int lb302Synth::process(sampleFrame *outbuf, const Uint32 size)
new_freq = -1.0f;
//printf("GOT_INC %f %f %d\n\n", note.vco_inc, new_freq, vca_mode );
}
// TODO: NORMAL RELEASE
@@ -823,10 +825,15 @@ void lb302Synth::playNote( notePlayHandle * _n, bool,
}
/// Start a new note.
else if( _n->totalFramesPlayed() == 0 ) {
new_freq = _n->frequency();
new_freq = _n->unpitchedFrequency();
true_freq = _n->frequency();
_n->m_pluginData = this;
}
if( _n->unpitchedFrequency() == current_freq ) {
true_freq = _n->frequency();
vco_inc = GET_INC( true_freq );
}
//LB303 }
@@ -852,7 +859,7 @@ void lb302Synth::play( bool _try_parallelizing,
void lb302Synth::deleteNotePluginData( notePlayHandle * _n )
{
//printf("GONE\n");
if( _n->frequency() == current_freq )
if( _n->unpitchedFrequency() == current_freq )
{
delete_freq = current_freq;
//previous_freq = current_freq;

View File

@@ -246,7 +246,7 @@ private:
float previous_sample_vca;
float previous_count;
float delete_freq;
float true_freq;
void recalcFilter();