Friday, July 21, 2017

ex3A01. Initialization pass

# ex3A01.py
# Initialization pass

from moduleCsound import *

tags(1)

header(ksmps=32)

# global

add("giGlobal   =          1/2")

# instruments

add("""
instr 1
iLocal     =          1/4
           print      giGlobal, iLocal
endin

instr 2
iLocal     =          1/5
           print      giGlobal, iLocal
endin
""")

tags(2)

# Only Initialization of instr 1 and instr 2

add("""
i 1 0 0
i 2 0 0
""")

tags(3)

writeRun(__file__)

No comments:

Post a Comment

ex3A05. Audio Vector