Debian Codegraph @

examples/rewindscore.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 rewindscore.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 kenv expon 1, p3, 0.0001
19 aout poscil .5*kenv, cpspch(p4), 1
20 outs aout, aout
21 endin
22
23 instr 100
24
25 rewindscore
26
27 endin
28 </CsInstruments>
29 <CsScore>
30 f1 0 4096 10 1 ;sine wave
31
32 i1 0 1 8.00
33 i1 + 1 8.03
34 i1 + 1 8.04
35 i1 + 1 8.07
36 i1 + 1 8.09
37 i1 + 1 8.10
38 i1 + 1 8.09
39 i1 + 1 8.07
40 i1 + 1 8.03
41
42 i100 9 1 ;rewind from 9th second
43 e
44 </CsScore>
45 </CsoundSynthesizer>
46