| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac ;;;RT audio out |
| 5 |
;-iadc ;;;uncomment -iadc if RT audio input is needed too |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o adsyn.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
sr = 44100 |
| 12 |
ksmps = 32 |
| 13 |
nchnls = 2 |
| 14 |
0dbfs = 1 |
| 15 |
|
| 16 |
; by Menno Knevel - 2021 |
| 17 |
|
| 18 |
ires system_i 1,{{ hetro -f100 -h100 stereoJungle.wav Jungle.het }} ; start at 100 Hz, harmonics up to 10kHz |
| 19 |
|
| 20 |
instr 1 ; play original sample |
| 21 |
aL,aR diskin "stereoJungle.wav", 1 |
| 22 |
outs aL, aR |
| 23 |
endin |
| 24 |
|
| 25 |
instr 2 |
| 26 |
kamod = 3 ; scale amplitude |
| 27 |
kfmod = p4 |
| 28 |
ksmod = p5 |
| 29 |
asig adsyn kamod, kfmod, ksmod, "Jungle.het" |
| 30 |
outs asig, asig |
| 31 |
endin |
| 32 |
|
| 33 |
</CsInstruments> |
| 34 |
<CsScore> |
| 35 |
s |
| 36 |
i1 0 7 ; original sample |
| 37 |
s |
| 38 |
; frqmod speed |
| 39 |
i2 0 20 1 .2 ; 5 x slower |
| 40 |
i2 20 5 2 1 ; 2 x higher |
| 41 |
i2 25 15 .3 1.5 ; lower & faster |
| 42 |
e |
| 43 |
</CsScore> |
| 44 |
</CsoundSynthesizer> |