examples/ctrlinit.csd
raw| 1 | <CsoundSynthesizer> |
| 2 | <CsOptions> |
| 3 | -d |
| 4 | </CsOptions> |
| 5 | <CsInstruments> |
| 6 | |
| 7 | sr = 44100 |
| 8 | nchnls = 1 |
| 9 | 0dbfs = 1 |
| 10 | |
| 11 | ctrlinit 1,1,64 ; init control to 64. |
| 12 | |
| 13 | instr 1 |
| 14 | kval ctrl7 1,1,0,1 ; read in the range 0-1 |
| 15 | printk2 kval ; prints 0.50394 |
| 16 | endin |
| 17 | |
| 18 | </CsInstruments> |
| 19 | <CsScore> |
| 20 | i1 0 1 |
| 21 | </CsScore> |
| 22 | </CsoundSynthesizer> |