faust
faust copied to clipboard
Integer increment not working in CAQT sliders
Hello, @sletz and all others.
There seems to be another problem besides the exp and log scales.
Try this:
import("stdfaust.lib"); inspect(i, lower, upper, x) = attach(x, x : vbargraph("sig_%i [style:numerical]", lower, upper)); slider = hslider("sat", 0, 0, 4, 1); process = inspect(0, 0, 4, slider);
You will see that the slider is producing fractional values. As a matter of fact, when I tried to use that with ba.selectn to select among different streams, the switch took place halfway through 0-1, 1-2, ...
I can just put an int() after the slider but I thought you still wanted to know.
Ciao, Dario