| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac ;;;realtime audio out |
| 5 |
;-iadc ;;;uncomment -iadc if realtime audio input is needed too |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o jspline.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 |
krangeMin init p4 |
| 19 |
krangeMax init p5 |
| 20 |
kcpsmin init 2 |
| 21 |
kcpsmax init 3 |
| 22 |
|
| 23 |
ksp rspline krangeMin, krangeMax, kcpsmin, kcpsmax |
| 24 |
aout pluck 1, 200+ksp, 1000, 0, 1 |
| 25 |
aout dcblock aout ;remove DC |
| 26 |
outs aout, aout |
| 27 |
|
| 28 |
endin |
| 29 |
</CsInstruments> |
| 30 |
<CsScore> |
| 31 |
|
| 32 |
i 1 0 10 2 5 ;a bit jitter |
| 33 |
i 1 8 10 10 20 ;some more |
| 34 |
i 1 16 10 20 50 ;lots more |
| 35 |
e |
| 36 |
</CsScore> |
| 37 |
</CsoundSynthesizer> |