Debian Codegraph @

examples/pow.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;realtime audio out
5 ;-iadc ;;;uncomment -iadc if RT audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ;-o pow.wav ; output to audio file
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 nchnls = 2
14 0dbfs = 1
15
16 instr 1 ; Lo-Fi sound
17
18 kpow = 10 ;exponent
19 kbase line 1, p3, 1.4 ;vary the base
20 kQuantize pow kbase, kpow
21 kQuantize = kQuantize*0.5 ;half the number of steps for each side of a bipolar signal
22 printk2 kQuantize
23 asig diskin2 "fox.wav", 1, 0, 1 ;loop the fox
24 asig = round(asig * kQuantize) / kQuantize ;quantize and scale audio signal
25 outs asig, asig
26
27 endin
28 </CsInstruments>
29 <CsScore>
30
31 i1 0 19.2
32
33 e
34 </CsScore>
35 </CsoundSynthesizer>
36