diff --git a/src/dexed.cpp b/src/dexed.cpp index 6fb6de9..a582cde 100644 --- a/src/dexed.cpp +++ b/src/dexed.cpp @@ -36,6 +36,7 @@ Dexed::Dexed(double rate) : lvtk::Synth(p_n_ports, p_midi_in) { uint8_t i; + TRACE("--------------------------------------------------------------------------------"); TRACE("Hi"); Exp2::init(); @@ -123,6 +124,7 @@ Dexed::~Dexed() } TRACE("Bye"); + TRACE("--------------------------------------------------------------------------------"); } void Dexed::activate(void) @@ -511,7 +513,7 @@ void Dexed::GetSamples(uint32_t n_samples, float* buffer) // this voice is a carrier! op_carrier_num++; - TRACE("Voice[%2d] OP [%d] amp=%ld,amp_step=%d,pitch_step=%d",i,op,voiceStatus.amp[op],voiceStatus.ampStep[op],voiceStatus.pitchStep); + //TRACE("Voice[%2d] OP [%d] amp=%ld,amp_step=%d,pitch_step=%d",i,op,voiceStatus.amp[op],voiceStatus.ampStep[op],voiceStatus.pitchStep); if(voiceStatus.amp[op]<=1069 && voiceStatus.ampStep[op]==4) // this voice produces no audio output op_amp++; diff --git a/src/msfa/dx7note.cc b/src/msfa/dx7note.cc index 99db121..8c689ca 100644 --- a/src/msfa/dx7note.cc +++ b/src/msfa/dx7note.cc @@ -138,7 +138,6 @@ Dx7Note::Dx7Note() { } } -//void Dx7Note::init(const uint8_t patch[156], int midinote, int velocity, int fb_depth) { void Dx7Note::init(const uint8_t patch[167], int midinote, int velocity) { int rates[4]; int levels[4]; @@ -191,8 +190,9 @@ void Dx7Note::compute(int32_t *buf, int32_t lfo_val, int32_t lfo_delay, const Co pmod_2 = abs(pmod_2); int32_t pitch_mod = max(pmod_1, pmod_2); pitch_mod = pitchenv_.getsample() + (pitch_mod * (senslfo < 0 ? -1 : 1)); - - uint32_t pitchbend = ctrls->values_[kControllerPitch]; + + // ---- PITCH BEND ---- + int pitchbend = ctrls->values_[kControllerPitch]; int32_t pb = (pitchbend - 0x2000); if (pb != 0) { if (ctrls->values_[kControllerPitchStep] == 0) {