| Dear all (sorry if I am reposting, my first message didn't seem to get
through)
I really need some help to get started with SetInputChannelCallback() on
Csound API, using Python - I couldn't find any examples so I'm trying the
following little test, which doesn't work.
import csnd6
def foo(a, b, c, d):
c[0] = 440.0
print "hello"
c = csnd6.Csound()
c.SetOption("-odac")
c.CompileOrc("""
sr=44100
ksmps=32
nchnls=2
0dbfs=1
instr 1
kfreq invalue "freq"
kenv linsegr 0, .05, 1, .05, 0
aout vco2 kenv, kfreq
outs aout, aout
endin
""")
c.SetInputChannelCallback(foo)
c.ReadScore("i1 0 0.2 \n i1 0.5 0.2")
c.Start()
while (c.PerformKsmps() == 0):
pass
c.Stop()
--
View this message in context: http://csound.1045644.n5.nabble.com/Csound-API-Python-SetInputChannelCallback-tp5749084.html
Sent from the Csound - General mailing list archive at Nabble.com.
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |