examples/directory.csd
raw| 1 | <CsoundSynthesizer> |
| 2 | <CsOptions> |
| 3 | -n |
| 4 | </CsOptions> |
| 5 | <CsInstruments> |
| 6 | |
| 7 | ;browse for text files in current directory |
| 8 | instr 1 |
| 9 | iCnt init 0 |
| 10 | SFilenames[] directory ".", ".wav" |
| 11 | iNumberOfFiles lenarray SFilenames |
| 12 | |
| 13 | until iCnt>=iNumberOfFiles do |
| 14 | printf_i "Filename = %s \n", 1, SFilenames[iCnt] |
| 15 | iCnt = iCnt+1 |
| 16 | od |
| 17 | endin |
| 18 | |
| 19 | </CsInstruments> |
| 20 | <CsScore> |
| 21 | i1 0 1 |
| 22 | </CsScore> |
| 23 | </CsoundSynthesizer> |