{|d|
this.get(param, { |v|
var newVal = v*((d)/divisor).midiratio;
- "%: % = %\n".postf(this, param, newVal);
this.set(param, newVal);
+ "%: % = %\n".postf(this, param, newVal);
});
}
}
{|d|
this.get(param, { |v|
var newVal = v+(d/divisor);
- "%: % = %\n".postf(this, param, newVal);
this.set(param, newVal);
+ "%: % = %\n".postf(this, param, newVal);
});
}
}
bindRange {|param, start, end|
{|v|
var newVal = v.linlin(0, 1, start, end);
- "%: % = %\n".postf(this, param, newVal);
this.set(param, newVal);
+ "%: % = %\n".postf(this, param, newVal);
}
}
- bindWarp {|param, warp=(\lin.asWarp)|
+ bindWarp {|param, warp=(\lin.asWarp), dict=nil|
warp = warp.asWarp;
{|v|
var newVal = warp.map(v);
- "%: % = %\n".postf(this, param, newVal);
this.set(param, newVal);
+ "%: % = %\n".postf(this, param, newVal);
+ dict !? {dict[param] = newVal;};
}
}
+
}
\ No newline at end of file