zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit 4bf7294e734c9a2ac7d41632c7108aa5679f1eed
parent 000cfb047f6a3284f9508fc311036ddf554c95c9
Author: fundamental <[email protected]>
Date:   Mon,  3 Aug 2015 14:18:39 -0400

EffUI: Fix Reverb Damp Wheel

Diffstat:
Msrc/UI/Fl_Osc_Dial.cpp | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/UI/Fl_Osc_Dial.cpp b/src/UI/Fl_Osc_Dial.cpp @@ -78,7 +78,10 @@ int Fl_Osc_Dial::handle(int ev) void Fl_Osc_Dial::OSC_value(int v) { - value(v+minimum()+fmodf(value(), 1)); + if(64 != (int)minimum()) + value(v+minimum()+fmodf(value(), 1)); + else + value(v+fmodf(value(), 1)); } void Fl_Osc_Dial::OSC_value(char v) @@ -95,11 +98,10 @@ void Fl_Osc_Dial::cb(void) { assert(osc); -/* if((maximum()-minimum()) == 127 || (maximum()-minimum()) == 255) { - oscWrite(ext, "i", (int)(value()-minimum())); - } - else*/ + if(64 != (int)minimum()) oscWrite(ext, "i", (int)(value()-minimum())); + else + oscWrite(ext, "i", (int)(value())); if(cb_data.first) cb_data.first(this, cb_data.second);