Debian Codegraph @

examples/flashtxt.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 flashtxt.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; Initialize the global variables.
12 sr = 44100
13 kr = 44100
14 ksmps = 1
15 nchnls = 1
16
17 instr 1
18 flashtxt 1, "Instr 1 live"
19 ao oscil 4000, 440, 1
20 out ao
21 endin
22
23
24 </CsInstruments>
25 <CsScore>
26
27 ; Table 1: an ordinary sine wave.
28 f 1 0 32768 10 1
29
30 ; Play Instrument #1 for three seconds.
31 i 1 0 3
32 e
33
34
35 </CsScore>
36 </CsoundSynthesizer>