File: python3.csd

package info (click to toggle)
csound-plugins 1.0.2~dfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,960 kB
  • sloc: cpp: 16,586; ansic: 7,522; python: 458; sh: 94; makefile: 25
file content (35 lines) | stat: -rw-r--r-- 398 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<CsoundSynthesizer>
<CsOptions>
  -odac
</CsOptions>
<CsInstruments>

sr=44100
kr=100
nchnls=2

pyinit

pyruni "a = 0.0"

instr 1
    pyrun "a = a + 1" 
endin


instr 2
ival pyevali "a"
prints "a = %i\\n", ival
endin


</CsInstruments>
<CsScore>

i 1 0 1    ;Adds to a for 1 second
i 2 1 0.1  ;Prints a
i 1 2 1    ;Adds to a for another second
i 2 3 0.1  ;Prints a

</CsScore>
</CsoundSynthesizer>