- use jsy_min/jsy_max
- fixed includes - removed redundant MW table - added Missing JK_MidiClock
This commit is contained in:
@@ -736,7 +736,7 @@ synth_float_t quantizeParam(param_info_t *pObj, synth_float_t p)
|
||||
|
||||
synth_float_t clampParam(param_info_t *pObj, synth_float_t p)
|
||||
{
|
||||
return (synth_float_t)min(pObj->pmax, max(pObj->pmin, quantizeParam(pObj, p)));
|
||||
return (synth_float_t)jsy_min(pObj->pmax, jsy_max(pObj->pmin, quantizeParam(pObj, p)));
|
||||
}
|
||||
|
||||
synth_float_t toParam(param_info_t *pObj, synth_float_t s)
|
||||
@@ -758,7 +758,7 @@ synth_float_t toParam(param_info_t *pObj, synth_float_t s)
|
||||
if ((pcenter < pmin) || (pcenter > pmax))
|
||||
pcenter = pmax*scenter + pmin*(1-scenter);
|
||||
|
||||
s = (synth_float_t)min(1, max(0, s));
|
||||
s = (synth_float_t)jsy_min(1, jsy_max(0, s));
|
||||
if (s < scenter)
|
||||
{
|
||||
if (base == 1)
|
||||
|
||||
Reference in New Issue
Block a user