Debian Codegraph @

examples/pvsfreeze.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in
5 -odac ;;;realtime audio out
6 ; For Non-realtime ouput leave only the line below:
7 ; -o pvsfreeze.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 0dbfs = 1
14 nchnls = 2
15
16 ;; example written by joachim heintz 2009
17
18 seed 0
19
20 instr 1
21
22 ifftsize = 1024
23 ioverlap = ifftsize / 4
24 iwinsize = ifftsize
25 iwinshape = 1 ; von-Hann window
26 Sfile1 = "fox.wav"
27 ain soundin Sfile1
28 kfreq randomh .7, 1.1, 3; probability of freezing freqs: 1/4
29 kamp randomh .7, 1.1, 3; idem for amplitudes
30 fftin pvsanal ain, ifftsize, ioverlap, iwinsize, iwinshape; fft-analysis of file
31 freeze pvsfreeze fftin, kamp, kfreq; freeze amps or freqs independently
32 aout pvsynth freeze; resynthesize
33 outs aout, aout
34 endin
35
36 </CsInstruments>
37 <CsScore>
38 r 10
39 i 1 0 2.757
40 e
41 </CsScore>
42 </CsoundSynthesizer>