| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
; Audio out Audio in No messages |
| 5 |
-odac -iadc -d ;;;RT audio I/O |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o fout_ftable.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
; By: Jonathan Murphy 2007 |
| 11 |
|
| 12 |
gilen = 131072 |
| 13 |
gicps = sr/gilen |
| 14 |
gitab ftgen 1, 0, gilen, 10, 1 |
| 15 |
|
| 16 |
instr 1 |
| 17 |
|
| 18 |
/******** write file to table ********/ |
| 19 |
|
| 20 |
ain diskin2 "drumsMlp.wav", 1, 0, 1 |
| 21 |
aphs phasor gicps |
| 22 |
andx = aphs * gilen |
| 23 |
tablew ain, andx, gitab |
| 24 |
|
| 25 |
/******** write table to file ********/ |
| 26 |
|
| 27 |
aosc table aphs, gitab, 1 |
| 28 |
out aosc |
| 29 |
fout "drumsMlp_copy.wav", 6, aosc |
| 30 |
|
| 31 |
endin |
| 32 |
|
| 33 |
</CsInstruments> |
| 34 |
<CsScore> |
| 35 |
i1 0 2 |
| 36 |
e |
| 37 |
</CsScore> |
| 38 |
</CsoundSynthesizer> |