examples/faustctl.csd
raw| 1 | <CsoundSynthesizer> |
| 2 | <CsOptions> |
| 3 | -odac |
| 4 | </CsOptions> |
| 5 | <CsInstruments> |
| 6 | instr 1 |
| 7 | ain1 oscili 0dbfs/2, 440 |
| 8 | idsp,a1 faustgen {{ |
| 9 | gain = hslider("vol",1,0,1,0.01); |
| 10 | process = (_ * gain); |
| 11 | }}, ain1 |
| 12 | k1 line 0, p3, 1 |
| 13 | faustctl idsp, "vol", k1 |
| 14 | out a1 |
| 15 | endin |
| 16 | </CsInstruments> |
| 17 | <CsScore> |
| 18 | i1 0 10 |
| 19 | </CsScore> |
| 20 | </CsoundSynthesizer> |