Debian Codegraph @

examples/push.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 push.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 0dbfs = 1
14 nchnls = 2
15
16 stack 100000
17
18 instr 1
19
20 a1 oscils 0.7, 220, 0
21 k1 line 0, p3, 1
22 push "blah", 123.45, a1, k1
23 push rnd(k1)
24
25 k_rnd pop
26 S01, i01, a01, k01 pop
27 printf_i "S01 = '%s', i01 = %g\n", 1, S01, i01
28 ktrig metro 5.0
29 printf "k01 = %.3f, k_rnd = %.3f\n", ktrig, k01, k_rnd
30 outs a01, a01
31
32 endin
33 </CsInstruments>
34 <CsScore>
35
36 i 1 0 5
37 e
38 </CsScore>
39 </CsoundSynthesizer>