Debian Codegraph @

examples/outletk.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 realtime audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o outletk.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 connect "bend", "bendout", "guitar", "bendin"
17
18 instr bend
19
20 kbend line p4, p3, p5
21 printk2 kbend
22 outletk "bendout", kbend
23
24 endin
25
26 instr guitar
27
28 kbend inletk "bendin"
29 kpch pow 2, kbend/12
30 asig oscili .4, p4*kpch, 1
31 outs asig, asig
32 endin
33
34 </CsInstruments>
35 <CsScore>
36 f1 0 1024 10 1 0 1 0 1 0 1
37
38 i"guitar" 0 5 440
39 i"bend" 2 1.2 -12 12
40 i"bend" 4 .2 -17 40
41 e
42 </CsScore>