| 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 STKBowed.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 |
ipch = p4 |
| 19 |
kv2 = p7 ;position on bow |
| 20 |
kv1 line p5, p3, p6 ;bow pressure |
| 21 |
kv4 line 0, p3, 7 ;depth of low-frequency oscillator |
| 22 |
|
| 23 |
asig STKBowed cpspch(ipch), 1, 2, kv1, 4, kv2, 11, 40, 1, kv4, 128, 100 |
| 24 |
asig = asig*2 ;amplify |
| 25 |
outs asig, asig |
| 26 |
endin |
| 27 |
|
| 28 |
</CsInstruments> |
| 29 |
<CsScore> |
| 30 |
|
| 31 |
i 1 0 15 6.00 20 100 115 |
| 32 |
i 1 17 3 7.00 120 0 0 |
| 33 |
i 1 21 3 7.09 120 0 30 |
| 34 |
i 1 21 4 7.03 50 0 0 |
| 35 |
e |
| 36 |
</CsScore> |
| 37 |
</CsoundSynthesizer> |