LB302: make filter selection sync with GUI on initialisation and preset load

This commit is contained in:
Raine M. Ekman
2014-03-11 21:57:31 +02:00
parent 288a3162c5
commit ab69c2d44b

View File

@@ -43,7 +43,6 @@
#include "embed.cpp"
#include "moc_lb302.cxx"
// Envelope Recalculation period
#define ENVINC 64
@@ -340,7 +339,7 @@ lb302Synth::lb302Synth( InstrumentTrack * _instrumentTrack ) :
vcfs[0] = new lb302Filter3Pole(&fs);
vcfs[1] = new lb302FilterIIR2(&fs);
vcf = vcfs[1];
db24Toggled();
sample_cnt = 0;
release_frame = 1<<24;
@@ -401,6 +400,7 @@ void lb302Synth::loadSettings( const QDomElement & _this )
slideToggle.loadSettings( _this, "slide");
deadToggle.loadSettings( _this, "dead");
db24Toggle.loadSettings( _this, "db24");
db24Toggled();
filterChanged();
}