1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
<CsoundSynthesizer>
<CsOptions>
-o dac
-d
-i adc
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 256
nchnls = 2
0dbfs = 1
maxalloc 2, 1
instr 1
S_file strget p4
ilen filelen S_file
S_score sprintfk {{ i 2 0 %f "%s" }}, ilen, S_file
scoreline S_score, 1
turnoff
endin
instr 2
kpitch chnget "pitch"
aL, aR diskin2 p4, kpitch
aL = aL
aR = aR
outs aL, aR
endin
instr 3
turnoff2 p4, 0, 1
endin
</CsInstruments>
<CsScore>
f0 100000
</CsScore>
</CsoundSynthesizer>
|