Debian Codegraph @

examples/bexprnd.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;RT 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 bexprnd.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 instr 1 ; every run time same values
17
18 kexp bexprnd 100
19 printk .2, kexp ; look
20 aout oscili 0.8, 440+kexp, 1 ; & listen
21 outs aout, aout
22
23 endin
24
25 instr 2 ; every run time different values
26
27 seed 0
28 kexp bexprnd 100
29 printk .2, kexp ; look
30 aout oscili 0.8, 440+kexp, 1 ; & listen
31 outs aout, aout
32 endin
33
34 </CsInstruments>
35 <CsScore>
36 ; sine wave
37 f 1 0 16384 10 1
38
39 i 1 0 2
40 i 2 3 2
41 e
42
43 </CsScore>
44 </CsoundSynthesizer>