Debian Codegraph @

examples/tabw.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 tabw.wav -W ;;; for file output any platform
8
9 ;By Stefano Cucchi 2024
10 </CsOptions>
11 <CsInstruments>
12
13 sr = 44100
14 ksmps = 32
15 nchnls = 2
16 0dbfs = 1
17
18 instr 1
19
20 tabw p4, 0, 2 ; write content of function number "2"
21 tabw p5, 1, 2
22 tabw p6, 2, 2
23 tabw p7, 3, 2
24 tabw p8, 4, 2
25
26 kamp oscili 1, 1/p3, 2 ;use f2 as envelope
27 asig poscil kamp, 440, 1
28 outs asig, asig
29
30 endin
31
32 </CsInstruments>
33 <CsScore>
34 f 1 0 8192 10 1 0.6 0 0.4 0.6
35 f2 0 5 2 0 0 0 0 0
36
37 i1 0 3 0 0.9 0 0.2 0.9 ; every note has different envelope
38 i1 4 3 1 0.01 1 0.5 0
39 i1 8 3 1 1 0 0.5 0
40 e
41 </CsScore>
42 </CsoundSynthesizer>