| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
-odac |
| 4 |
</CsOptions> |
| 5 |
<CsInstruments> |
| 6 |
sr = 44100 |
| 7 |
ksmps = 8 |
| 8 |
nchnls = 1 |
| 9 |
0dbfs = 1 |
| 10 |
|
| 11 |
giCopy ftgen 1, 0, -88200, 2, 0 ;"empty" table |
| 12 |
giFox ftgen 2, 0, 0, 1, "fox.wav", 0, 0, 1 |
| 13 |
|
| 14 |
opcode BufPlay1, a, ipop |
| 15 |
ifn, ispeed, iskip, ivol xin |
| 16 |
icps = ispeed / (ftlen(ifn) / sr) |
| 17 |
iphs = iskip / (ftlen(ifn) / sr) |
| 18 |
asig poscil3 ivol, icps, ifn, iphs |
| 19 |
xout asig |
| 20 |
endop |
| 21 |
|
| 22 |
instr 1 |
| 23 |
itable = p4 |
| 24 |
aout BufPlay1 itable |
| 25 |
out aout |
| 26 |
endin |
| 27 |
|
| 28 |
</CsInstruments> |
| 29 |
<CsScore> |
| 30 |
f 0 99999 |
| 31 |
</CsScore> |
| 32 |
</CsoundSynthesizer> |
| 33 |
;example by joachim heintz |