Debian Codegraph @

examples/setscorepos.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 setscorepos.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 giSine ftgen 0, 0, 8192, 10, 1
17
18 instr 1
19
20 asig poscil 0.5, p4, giSine ;play something
21 outs asig, asig
22 endin
23
24 instr 11
25
26 setscorepos 8.5
27 endin
28
29 </CsInstruments>
30 <CsScore>
31
32 i1 0 2 220 ;this one will be played
33 i11 2.5 1 ;start setscorepos now
34 i1 3 2 330 ;skip this note
35 i1 6 2 440 ;and this one
36 i1 9 2 550 ;play this one
37
38 </CsScore>
39 </CsoundSynthesizer>