Debian Codegraph @

examples/gainslider.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in Silent
5 -odac -iadc -d ;;;realtime output
6 </CsOptions>
7 <CsInstruments>
8
9 sr = 48000
10 ksmps = 100
11 nchnls = 2
12
13 instr 1 ; gainslider test
14
15 ; uncomment for realtime midi
16 ;kmod ctrl7 1, 1, 0, 127
17
18 ; uncomment for non realtime
19 km0d phasor 1/10
20 kmod scale km0d, 127, 0
21
22 kout gainslider kmod
23
24 printks "kmod = %f kout = %f\\n", 0.1, kmod, kout
25
26 aout diskin2 "fox.wav", 1, 0, 1
27
28 aout = aout*kout
29
30 outs aout, aout
31
32 endin
33
34 </CsInstruments>
35 <CsScore>
36 i1 0 30
37 e
38 </CsScore>
39 </CsoundSynthesizer>