| 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 pvsifd.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 |
instr 1 |
| 17 |
|
| 18 |
ifftsize = p4 |
| 19 |
ihopsize = p5 |
| 20 |
ain diskin2 "drumsMlp.wav", 1, 0, 1 |
| 21 |
fs1,fsi2 pvsifd ain, ifftsize, ihopsize, 1 ; pvsifd analysis |
| 22 |
fst partials fs1, fsi2, .1, 1,3, 500 ; partial tracking |
| 23 |
aout resyn fst, 1, 1.5, 500, 1 ; resynthesis (up a 5th) |
| 24 |
outs aout, aout |
| 25 |
|
| 26 |
endin |
| 27 |
</CsInstruments> |
| 28 |
<CsScore> |
| 29 |
;sine |
| 30 |
f1 0 4096 10 1 |
| 31 |
; size hop |
| 32 |
i 1 0 2 2048 512 |
| 33 |
i 1 3 2 1024 256 |
| 34 |
e |
| 35 |
</CsScore> |
| 36 |
</CsoundSynthesizer> |