Debian Codegraph @

examples/pinkish.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in No messages
5 -odac -iadc -d ;;;RT audio I/O
6 ; For Non-realtime ouput leave only the line below:
7 ; -o pinkish.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; Initialize the global variables.
12 sr = 44100
13 kr = 4410
14 ksmps = 10
15 nchnls = 1
16
17 ; Instrument #1.
18 instr 1
19 awhite unirand 2.0
20
21 ; Normalize to +/-1.0
22 awhite = awhite - 1.0
23
24 apink pinkish awhite, 1, 0, 0, 1
25
26 out apink * 30000
27 endin
28
29
30 </CsInstruments>
31 <CsScore>
32
33 ; Play Instrument #1 for one second.
34 i 1 0 1
35 e
36
37
38 </CsScore>
39 </CsoundSynthesizer>