| 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 syncgrain.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
sr = 44100 |
| 12 |
ksmps = 32 |
| 13 |
0dbfs = 1 |
| 14 |
nchnls = 2 |
| 15 |
|
| 16 |
instr 1 |
| 17 |
|
| 18 |
iolaps = 2 |
| 19 |
igrsize = 0.04 |
| 20 |
ifreq = iolaps/igrsize |
| 21 |
ips = 1/iolaps |
| 22 |
|
| 23 |
istr = .3 /* timescale */ |
| 24 |
ipitch = p4 /* pitchscale */ |
| 25 |
|
| 26 |
asig syncgrain 1, ifreq, ipitch, igrsize, ips*istr, 1, 2, iolaps |
| 27 |
outs asig, asig |
| 28 |
|
| 29 |
endin |
| 30 |
</CsInstruments> |
| 31 |
<CsScore> |
| 32 |
f1 0 0 1 "Mathews.wav" 0 0 0 ;deferred table |
| 33 |
f2 0 8192 20 2 1 |
| 34 |
|
| 35 |
i1 0 11 1 |
| 36 |
i1 + 11 4 |
| 37 |
i1 + 11 .8 |
| 38 |
e |
| 39 |
</CsScore> |
| 40 |
</CsoundSynthesizer> |