| 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 oscil.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 |
gifn ftgen 0,0,1049576,2,0 |
| 17 |
|
| 18 |
; record control signals |
| 19 |
instr 1 |
| 20 |
ktrig_start init 1 |
| 21 |
koct rspline 7,10,1,2 |
| 22 |
kpan rspline 7,10,0.1,0.9 |
| 23 |
ktrig_stop = 1 |
| 24 |
knumtics = kr*p3 |
| 25 |
tabrec ktrig_start,ktrig_stop,knumtics,gifn,koct,kpan |
| 26 |
ktrig_start = 0 |
| 27 |
endin |
| 28 |
|
| 29 |
; play control signals |
| 30 |
instr 2 |
| 31 |
koct,kpan init 0 |
| 32 |
ktrig init 1 |
| 33 |
knumtics = kr*p3 |
| 34 |
tabplay ktrig,knumtics,gifn,koct,kpan |
| 35 |
|
| 36 |
ktrig = 0 |
| 37 |
|
| 38 |
asig poscil 0.1, cpsoct(koct) |
| 39 |
aL,aR pan2 asig,kpan |
| 40 |
outs aL,aR |
| 41 |
endin |
| 42 |
|
| 43 |
|
| 44 |
</CsInstruments> |
| 45 |
|
| 46 |
<CsScore> |
| 47 |
i1 0 10 |
| 48 |
i2 2 10 |
| 49 |
i2 4 10 |
| 50 |
e |
| 51 |
|
| 52 |
</CsScore> |
| 53 |
|
| 54 |
</CsoundSynthesizer> |