Friday, July 21, 2017

ex3A05. Audio Vector

# ex3A05.py
# Audio vector

from moduleCsound import *

tags(1)

header(ksmps=5)

add(r"""
instr 1
aSine      oscils     1, 2205, 0
kVec1      vaget      0, aSine
kVec2      vaget      1, aSine
kVec3      vaget      2, aSine
kVec4      vaget      3, aSine
kVec5      vaget      4, aSine
           printks    "kVec1 = %f, kVec2 = %f, kVec3 = %f, kVec4 = %f, kVec5 = %f\n",\
                      0, kVec1, kVec2, kVec3, kVec4, kVec5
endin
""")

tags(2)

add("i 1 0 [1/2205]")

tags(3)

writeRun(__file__)

No comments:

Post a Comment

ex3A05. Audio Vector