Debian Codegraph @

examples/betarand.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 betarand.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 kbeta betarand 100, 1, 1
19 printk .2, kbeta ; look
20 aout oscili 0.8, 440+kbeta, 1 ; & listen
21 outs aout, aout
22 endin
23
24 instr 2 ; every run time different values
25
26 seed 0
27 kbeta betarand 100, 1, 1
28 printk .2, kbeta ; look
29 aout oscili 0.8, 440+kbeta, 1 ; & listen
30 outs aout, aout
31 endin
32
33 </CsInstruments>
34 <CsScore>
35 ; sine wave
36 f 1 0 16384 10 1
37
38 i 1 0 2
39 i 2 3 2
40 e
41
42 </CsScore>
43 </CsoundSynthesizer>