Debian Codegraph @

examples/gen01computed.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in
5 -odac -iadc ;;;RT audio I/O
6 ; For Non-realtime ouput leave only the line below:
7 ; -o gen01computed.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 kamp = 30000
20 kcps = 1
21 ifn = 1
22 ibas = 1
23
24 ; Play the audio sample stored in Table #1.
25 a1 loscil kamp, kcps, ifn, ibas
26 out a1
27 endin
28
29
30 </CsInstruments>
31 <CsScore>
32
33 ; Table #1: an audio file (using GEN01).
34 ; Since our table size is 0, Csound will compute it.
35 f 1 0 0 1 "drumsMlp.wav" 0 0 0
36
37 ; Play Instrument #1 for 2 seconds.
38 i 1 0 2
39 e
40
41
42 </CsScore>
43 </CsoundSynthesizer>