diff --git a/src/Dexed.ttl b/src/Dexed.ttl index 3725778..fc3a15d 100644 --- a/src/Dexed.ttl +++ b/src/Dexed.ttl @@ -488,7 +488,7 @@ The original engine comes from MSFA (music synthesizer for android) which is bas lv2:index 28 ; lv2:symbol "transpose" ; lv2:name "MIDDLE C" ; - lv2:default 24 ; + lv2:default 12 ; lv2:minimum 0 ; lv2:maximum 48 ; lv2:portProperty lv2:integer ; diff --git a/src/dexed.cpp b/src/dexed.cpp index 4b085d5..ae0f1a8 100644 --- a/src/dexed.cpp +++ b/src/dexed.cpp @@ -133,13 +133,11 @@ Dexed::~Dexed() { TRACE("Hi"); - TRACE("0"); if(outbuf_) delete [] outbuf_; currentNote = -1; - TRACE("1"); for (uint8_t note = 0; note < MAX_ACTIVE_NOTES; ++note) { if(voices[note].dx7_note) @@ -148,16 +146,12 @@ Dexed::~Dexed() } } - TRACE("2"); if(engineMsfa) delete(engineMsfa); - TRACE("3"); if(engineOpl) delete(engineOpl); - TRACE("4"); if(engineMkI) delete(engineMkI); - TRACE("5"); TRACE("Bye"); TRACE("--------------------------------------------------------------------------------"); @@ -664,7 +658,7 @@ TRACE("pitch=%d, velo=%d\n",pitch,velo); return; } - pitch += data[144] - 24; + pitch += data[144] - 12; uint8_t note = currentNote; uint8_t keydown_counter=0; @@ -716,7 +710,7 @@ void Dexed::keyup(uint8_t pitch) { TRACE("Hi"); TRACE("pitch=%d\n",pitch); - pitch += data[144] - 24; + pitch += data[144] - 12; uint8_t note; for (note=0; notetransferState(*voices[note].dx7_note); diff --git a/src/dexed.h b/src/dexed.h index ebafd84..30a1f42 100644 --- a/src/dexed.h +++ b/src/dexed.h @@ -132,7 +132,7 @@ class Dexed : public lvtk::Synth 94, 67, 95, 60, 50, 50, 50, 50, 04, 06, 00, 34, 33, 00, 00, 00, 04, - 03, 24, + 03, 12, // TRSPS 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 01, 00, 99, 00, 99, 00, 99, 00, 99, 00, 00, diff --git a/src/dexed_ttl.h b/src/dexed_ttl.h index 0d81fc7..78e5709 100644 --- a/src/dexed_ttl.h +++ b/src/dexed_ttl.h @@ -221,7 +221,7 @@ static const peg_data_t p_ports[] = { { 0, 99, 0, 0, 1, 0 }, { 0, 1, 0, 1, 1, 0 }, { 0, 5, 4, 0, 1, 0 }, - { 0, 48, 24, 0, 1, 0 }, + { 0, 48, 12, 0, 1, 0 }, { 0, 7, 3, 0, 1, 0 }, { 0, 99, 94, 0, 1, 0 }, { 0, 99, 67, 0, 1, 0 },