Debian Codegraph @

examples/invalue.csd

raw
1
2 <CsoundSynthesizer>
3 <CsOptions>
4 </CsOptions>
5 <CsInstruments>
6 ;run this example in CsoundQt, a Csound editor that provides widgets
7 ;make the Widgets-panel visible, by clicking the Widgets symbol in the menu or pressing (Alt+1).
8
9 sr = 44100
10 ksmps = 32
11 nchnls = 2
12 0dbfs = 1
13 ; written by Andres Cabrera
14 instr 1
15
16 kfreq invalue "freq" ; Quotes are needed here
17 asig oscil 0.1, kfreq, 1
18 outs asig, asig
19
20 endin
21 </CsInstruments>
22 <CsScore>
23 f 1 0 1024 10 1 ;sine
24 i 1 0 300 ;play for 300 seconds
25 e
26 </CsScore>
27 </CsoundSynthesizer>
28