Debian Codegraph @

examples/peak.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in
5 -odac ;;;RT audio out
6 ; For Non-realtime ouput leave only the line below:
7 ; -o peak.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 ; Capture the highest amplitude in the "drumsMlp.wav" file.
17
18 asig soundin "drumsMlp.wav"
19 kp peak asig
20 printk .5, kp ; Print out the peak value once per second.
21 outs asig, asig
22 endin
23
24 </CsInstruments>
25 <CsScore>
26 i 1 0 3
27 e
28 </CsScore>
29 </CsoundSynthesizer>