faustctl — Adjusts a given control in a Faust DSP instance.
Plugin opcode in faustcsound.
Faustctl will set a given control in a running faust program
“Scontrol” -- a string containing the control name
“idsp” -- a handle to an existing Faust DSP instance
Here is an example of the faustctl opcode. It uses the file faustctl.csd.
Example 281. Example of the faustctl opcode.
See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
<CsoundSynthesizer> <CsOptions> -odac </CsOptions> <CsInstruments> instr 1 ain1 oscili 0dbfs/2, 440 idsp,a1 faustgen {{ gain = hslider("vol",1,0,1,0.01); process = (_ * gain); }}, ain1 k1 line 0, p3, 1 faustctl idsp, "vol", k1 out a1 endin </CsInstruments> <CsScore> i1 0 10 </CsScore> </CsoundSynthesizer>