Debian Codegraph @

examples/scoreline.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 scoreline.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
17
18 ktrig metro 3 ;trigger 3 times a second
19 scoreline {{ ;so it sounds like an echo
20 i 2 0 3 "flute.aiff"
21 i 2 1 3 "drumsMlp.wav"
22 }}, ktrig
23 ktrig = 0
24
25 endin
26
27 instr 2
28
29 asig soundin p4
30 outs asig*.3, asig*.3
31
32 endin
33 </CsInstruments>
34 <CsScore>
35
36 i1 0 2 ;play for 2 seconds, so the samples are played 6 times
37 e
38 </CsScore>
39 </CsoundSynthesizer>