src/Examples/FLOSS Manual Examples/02 Quick Start/02A02_HelloCabbage.csd
raw| 1 | <Cabbage> |
| 2 | form size(420,100) |
| 3 | keyboard bounds(10,10,300,80) |
| 4 | rslider bounds(325,15,80,80), channel("level"), text("Level"), range(0,1,0.3) |
| 5 | </Cabbage> |
| 6 | |
| 7 | <CsoundSynthesizer> |
| 8 | |
| 9 | <CsOptions> |
| 10 | -dm0 -n -+rtmidi=null -M0 |
| 11 | </CsOptions> |
| 12 | |
| 13 | <CsInstruments> |
| 14 | |
| 15 | sr = 44100 |
| 16 | ksmps = 32 |
| 17 | nchnls = 2 |
| 18 | 0dbfs = 1 |
| 19 | |
| 20 | instr 1 |
| 21 | icps cpsmidi |
| 22 | klev chnget "level" |
| 23 | a1 poscil klev*0.2,icps |
| 24 | outs a1,a1 |
| 25 | endin |
| 26 | |
| 27 | </CsInstruments> |
| 28 | |
| 29 | </CsoundSynthesizer> |
| 30 | ;example by Iain McCurdy |