diff options
author | Tim E. Real <termtech@rogers.com> | 2010-04-11 20:31:58 +0000 |
---|---|---|
committer | Tim E. Real <termtech@rogers.com> | 2010-04-11 20:31:58 +0000 |
commit | 38e430f0d8209abe70372b05154a2f2e96556ec1 (patch) | |
tree | 3897431a05b95b124c25ebd27ee828f14e4df3e8 /muse/synti/organ/organgui.cpp | |
parent | af4923e80491aca543191ed7b8b546f9ad63fb45 (diff) |
See ChangeLog
Diffstat (limited to 'muse/synti/organ/organgui.cpp')
-rw-r--r-- | muse/synti/organ/organgui.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/muse/synti/organ/organgui.cpp b/muse/synti/organ/organgui.cpp index bc95d8b6..de644237 100644 --- a/muse/synti/organ/organgui.cpp +++ b/muse/synti/organ/organgui.cpp @@ -27,6 +27,8 @@ #include "muse/midi.h" #include "muse/midictrl.h" +//#define ORGANGUI_DEBUG + //--------------------------------------------------------- // OrganGui //--------------------------------------------------------- @@ -129,6 +131,10 @@ int OrganGui::getControllerMinMax(int id, int* min, int* max) const void OrganGui::setParam(int param, int val) { + #ifdef ORGANGUI_DEBUG + fprintf(stderr, "OrganGui:setParam param:%d val:%d\n", param, val); + #endif + param &= 0xfff; if (param >= int(sizeof(dctrl)/sizeof(*dctrl))) { fprintf(stderr, "OrganGui: set unknown Ctrl 0x%x to 0x%x\n", param, val); @@ -146,6 +152,10 @@ void OrganGui::setParam(int param, int val) if(slider->minValue() < 0) val -= 8192; + #ifdef ORGANGUI_DEBUG + fprintf(stderr, "OrganGui:setParam setting slider val:%d\n", val); + #endif + slider->setValue(val); if (ctrl->label) ((QSpinBox*)(ctrl->label))->setValue(val); |