examples/STKBandedWG.csd
raw| 1 | <CsoundSynthesizer> |
| 2 | <CsOptions> |
| 3 | ; Select audio/midi flags here according to platform |
| 4 | -odac ;;;realtime audio out |
| 5 | ;-iadc ;;;uncomment -iadc if RT audio input is needed too |
| 6 | ; For Non-realtime ouput leave only the line below: |
| 7 | ; -o STKBandedWG.wav -W ;;; for file output any platform |
| 8 | </CsOptions> |
| 9 | <CsInstruments> |
| 10 | |
| 11 | sr = 44100 |
| 12 | ksmps = 32 |
| 13 | nchnls = 2 |
| 14 | 0dbfs = 1 |
| 15 | |
| 16 | instr 1 |
| 17 | |
| 18 | ifrq = p4 |
| 19 | kv1 line p5, p3, p6 ;pressure of bow |
| 20 | kenv line 1, p3, 0 |
| 21 | |
| 22 | asig STKBandedWG cpspch(ifrq), 1, 2, kv1, 4, 100, 11, 0, 1, 0, 64, 100, 128, 120, 16, 2 |
| 23 | asig = asig * kenv ;simple envelope |
| 24 | outs asig, asig |
| 25 | endin |
| 26 | |
| 27 | </CsInstruments> |
| 28 | <CsScore> |
| 29 | |
| 30 | i 1 0 10 5.00 100 0 |
| 31 | i 1 10 8 6.03 10 . |
| 32 | i 1 20 5 7.05 50 127 |
| 33 | |
| 34 | e |
| 35 | </CsScore> |
| 36 | </CsoundSynthesizer> |