| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac -m0 ;;;realtime audio out, with limiter protection |
| 5 |
; For Non-realtime ouput leave only the line below: |
| 6 |
; -o extractor.wav -W ;;; for file output any platform |
| 7 |
</CsOptions> |
| 8 |
<CsInstruments> |
| 9 |
|
| 10 |
sr = 44100 |
| 11 |
ksmps = 32 |
| 12 |
nchnls = 2 |
| 13 |
0dbfs = 1 |
| 14 |
|
| 15 |
; by Menno Knevel 2022 |
| 16 |
|
| 17 |
; cuts a piece of a sound file and outputs result to SFDIR |
| 18 |
ires1 system_i 1,{{ extractor -S 0 -Z 40000 -v Mathews.wav -o ext1.wav }} ; in samples |
| 19 |
ires2 system_i 1,{{ extractor -T 10 -E 13 -v Mathews.wav -o ext2.wav }} ; in seconds |
| 20 |
|
| 21 |
instr 1 |
| 22 |
|
| 23 |
asig diskin2 p4, 1 |
| 24 |
outs asig, asig |
| 25 |
endin |
| 26 |
|
| 27 |
</CsInstruments> |
| 28 |
<CsScore> |
| 29 |
|
| 30 |
i1 0 2 "ext1.wav" |
| 31 |
i1 2 2 "ext2.wav" |
| 32 |
e |
| 33 |
</CsScore> |
| 34 |
</CsoundSynthesizer> |
| 35 |
|