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