| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac ;;;realtime audio out |
| 5 |
;-iadc ;;;uncomment -iadc if realtime audio input is needed too |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o pvsmix.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
; by Menno Knevel 2021 |
| 12 |
|
| 13 |
sr = 44100 |
| 14 |
ksmps = 32 |
| 15 |
nchnls = 2 |
| 16 |
0dbfs = 1 |
| 17 |
|
| 18 |
instr 1 |
| 19 |
|
| 20 |
asig1 diskin2 "drumsMlp.wav", .5,0,1 ;signal in 1 at half speed |
| 21 |
asig2 diskin2 "drumsMlp.wav", 1,0,1 ;signal in 2 |
| 22 |
fsig1 pvsanal asig1,1024,256,1024,0 ;pvoc analysis |
| 23 |
fsig2 pvsanal asig2,1024,256,1024,0 ;of both signals |
| 24 |
fsall pvsmix fsig1, fsig2 |
| 25 |
asig pvsynth fsall |
| 26 |
outs asig, asig |
| 27 |
|
| 28 |
endin |
| 29 |
</CsInstruments> |
| 30 |
<CsScore> |
| 31 |
|
| 32 |
i 1 0 8 |
| 33 |
e |
| 34 |
</CsScore> |
| 35 |
</CsoundSynthesizer> |