diff --git a/src/dexed.h b/src/dexed.h index e1d4002..909a242 100644 --- a/src/dexed.h +++ b/src/dexed.h @@ -121,7 +121,7 @@ class Dexed : public lvtk::Synth double _rate; uint8_t _k_rate_counter; uint8_t _param_change_counter; - float data_float[166]; + float data_float[167]; uint8_t data[167]={ 95, 29, 20, 50, 99, 95, 00, 00, 41, 00, 19, 00, 00, 03, 00, 06, 79, 00, 01, 00, 14, 95, 20, 20, 50, 99, 95, 00, 00, 00, 00, 00, 00, 00, 03, 00, 00, 99, 00, 01, 00, 00, diff --git a/src/msfa/controllers.h b/src/msfa/controllers.h index 3997cfe..6eac688 100755 --- a/src/msfa/controllers.h +++ b/src/msfa/controllers.h @@ -55,14 +55,9 @@ public: } void setConfig(uint8_t assign) { - if(assign & 1) - pitch=true; - - if(assign & 2) - amp=true; - - if(assign & 4) - eg=true; + pitch=assign&1; + amp=assign&2; + eg=assign&4; } }; diff --git a/src/msfa/dx7note.cc b/src/msfa/dx7note.cc index 70ce45b..258e6cc 100644 --- a/src/msfa/dx7note.cc +++ b/src/msfa/dx7note.cc @@ -137,7 +137,7 @@ Dx7Note::Dx7Note() { } //void Dx7Note::init(const uint8_t patch[156], int midinote, int velocity, int fb_depth) { -void Dx7Note::init(const uint8_t patch[160], int midinote, int velocity, int fb_depth) { +void Dx7Note::init(const uint8_t patch[167], int midinote, int velocity, int fb_depth) { int rates[4]; int levels[4]; for (int op = 0; op < 6; op++) {