Open pylorca opened 12 years ago
The code:
GetParam(kGain)->InitDouble("Gain", 0.0, -18.0, 18.0, 0.001, "dB");
IBitmap bitmap = pGraphics->LoadIBitmap(BIG_KNOB_ID, BIG_KNOB_FN, 101);
pGainControl = new IKnobMultiControl(this, kGain_X, kGain_Y, kGain, &bitmap,kVertical,DEFAULT_GEARING);
pGraphics->AttachControl(pGainControl);
pGainControl->DisablePrompt(false);
I've noticed that:
GetParam(kGain)->InitDouble("Gain", 0.0, -18.0, 18.0, 0.01, "dB"); // BUG
GetParam(kGain)->InitDouble("Gain", 0.0, -18.0, 18.0, 0.1, "dB"); // no BUG
I found a temporary solution:
increase PARAM_EDIT_W size on IControl.cpp
there is a bug in the IConttrol prompt (right click on control) , this does not show negative values. works well with positive values.
this happens on windows, OSX not confirmed yet