(IMPORTANT) need help bypassing an error #993
Unanswered
discipleofbert
asked this question in
Q&A
Replies: 1 comment 1 reply
-
When you make a vslider for "shift (semitones)", the init, min, max, and step must be compile-time constants. Your code uses vsliders for the min and max, but sliders aren't constant. Does this code satisfy your goal? declare name "whammy";
import("stdfaust.lib");
whammy = hgroup("Whammy", ef.dryWetMixer(vslider("wetAmount[style:knob]", 1, 0, 1, 0.05),
ef.transpose(1000, 10,
(vslider("shift (semitones)", 0, -24, 24, 0.01) : si.smoo)
)
));
process = whammy; I put a si.smoo in there too. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ok so i'm writing some code and i get an error that says that "the parameter must be a real constant numerical expression", which bothers me since i want to be able to change the parameter in real time. below is the code; the code causing the error in question is in bold...
is there any way i can bypass this error and have it still work as intended? thx
Beta Was this translation helpful? Give feedback.
All reactions