| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac |
| 5 |
; For Non-realtime ouput leave only the line below: |
| 6 |
; -o sndinfo.wav -W ;;; for file output any platform |
| 7 |
</CsOptions> |
| 8 |
<CsInstruments> |
| 9 |
|
| 10 |
sr = 48000 ; sample rate of drumsMlp.wav = 44100 |
| 11 |
ksmps = 32 ; and will be resampled to 48000 |
| 12 |
nchnls = 2 |
| 13 |
0dbfs = 1 |
| 14 |
|
| 15 |
; by Menno Knevel 2021 |
| 16 |
|
| 17 |
; resample in the highest qualty, name the new sample 'beats48.wav' |
| 18 |
gires system_i 1,{{ src_conv -r48000 -Q5 drumsMlp.wav -o beats48.wav }} |
| 19 |
|
| 20 |
instr 1 |
| 21 |
ires system_i 1,{{ sndinfo -i beats48.wav }} ; check sample rate |
| 22 |
aout diskin2 "beats48.wav", 1 |
| 23 |
outs aout, aout |
| 24 |
endin |
| 25 |
|
| 26 |
</CsInstruments> |
| 27 |
<CsScore> |
| 28 |
i1 0 2 |
| 29 |
|
| 30 |
e |
| 31 |
</CsScore> |
| 32 |
</CsoundSynthesizer> |