| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac -m0 --limiter=.95 ;;;realtime audio out, with limiter protection |
| 5 |
; For Non-realtime ouput leave only the line below: |
| 6 |
; -o hetro.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 2021 |
| 16 |
|
| 17 |
gilen filelen "fox.wav" ; get length of soundfile |
| 18 |
|
| 19 |
; analyze sound file and output result to 3 hetro files |
| 20 |
ires1 system_i 1,{{ hetro fox.wav fox1.het }} ; default settings |
| 21 |
ires2 system_i 1,{{ hetro -f250 fox.wav fox2.het }} ; high starting frequency |
| 22 |
ires3 system_i 1,{{ hetro -f100 -h180 fox.wav fox3.het }}; up to 18kHz! |
| 23 |
|
| 24 |
instr 1 ; untreated signal |
| 25 |
asig diskin2 "fox.wav", 1 |
| 26 |
prints "\n---***YOU NOW HEAR THE UNTREATED SOUND SAMPLE***---\n" |
| 27 |
prints "---*duration of soundfile is %f seconds*---\\n",gilen |
| 28 |
outs asig, asig |
| 29 |
endin |
| 30 |
|
| 31 |
instr 2 |
| 32 |
prints "\n---***YOU NOW HEAR THE RESULT OF THIS ANALYZED FILE:***---\n" |
| 33 |
asig adsyn 1, 1, 1, p4 |
| 34 |
outs asig, asig |
| 35 |
endin |
| 36 |
|
| 37 |
</CsInstruments> |
| 38 |
<CsScore> |
| 39 |
|
| 40 |
i1 0 2.76 ; original sample |
| 41 |
|
| 42 |
i2 5 2.76 "fox1.het" ; whole sentence |
| 43 |
i2 10 2.76 "fox2.het" ; whole sentence, but analyzed with different settings |
| 44 |
i2 15 2.76 "fox3.het" ; whole sentence, and again analyzed with different settings |
| 45 |
e |
| 46 |
</CsScore> |
| 47 |
</CsoundSynthesizer> |