Debian Codegraph @

examples/p.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 p.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 ; by Menno Knevel - 2022
17
18 instr 1
19
20 ipr = p(4)
21 prints "\nrandom number is now %f\n", ipr ; find out the values of p4
22 aenv linen 1, 0, p3, .2
23 asig poscil .5, p4
24 outs asig * aenv, asig * aenv
25
26 endin
27
28 </CsInstruments>
29 <CsScore>
30
31 i1 0 1 [~ * 200] ; random between 0-200
32 i1 + 1 [~ * 200]
33 i1 + 2 [~ * 200]
34
35 e
36 </CsScore>
37 </CsoundSynthesizer>