| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac ;;;realtime 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 ms2st.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 |
; sample = ambient sound of waterfall + animals (monkey, birds) |
| 18 |
|
| 19 |
instr 1 ; MS sample is interleaved |
| 20 |
|
| 21 |
am, as diskin2 "MSjungle_interleaved.wav", 1, 0, 1 ; interleaved stereo, MS encoded |
| 22 |
kwidth = p4 ; left = M, right = S |
| 23 |
al, ar ms2st am, as, kwidth |
| 24 |
outs al, ar |
| 25 |
endin |
| 26 |
|
| 27 |
instr 2 ; 2 separate samples |
| 28 |
|
| 29 |
am diskin2 "MSjungleMid.wav", 1 ; M sound as a separate mono sound |
| 30 |
as diskin2 "MSjungleSide.wav", 1 ; S sound as a separate mono sound |
| 31 |
kwidth = p4 |
| 32 |
al, ar ms2st am, as, kwidth |
| 33 |
outs al, ar |
| 34 |
|
| 35 |
endin |
| 36 |
</CsInstruments> |
| 37 |
<CsScore> |
| 38 |
|
| 39 |
i1 0 6.7 0 ; M only |
| 40 |
i1 + 6.7 .3 ; M and a bit of S |
| 41 |
i1 + 6.7 .5 ; M + S equal volume |
| 42 |
i1 + 6.7 1 ; S only |
| 43 |
|
| 44 |
i2 28 6.7 0 ; M only |
| 45 |
i2 + 6.7 .3 ; M and a bit of S |
| 46 |
i2 + 6.7 .5 ; M + S equal volume |
| 47 |
i2 + 6.7 1 ; S only |
| 48 |
e |
| 49 |
</CsScore> |
| 50 |
</CsoundSynthesizer> |