What's the correct way of using record inside the CsoundPerformanceThread?
I'm using this sequence but my wav file is always corrupted and I cannot figure out where I'm wrong.---
cs_return = cs.start()
pt = ctcsound.CsoundPerformanceThreadcs\.csound\()if cs_return == ctcsound.CSOUND_SUCCESS:
print'CSOUND is ON\!'filename = '/Users/j/Desktop/out.wav'
bits = 24
numbufs = 2print'Record ON'
pt.recordfilename, bits, numbufs
pt.play()while pt.status() == 0:
passpt.stopRecord()
print'Record OFF'
cs.cleanup()Csound mailing list
Csound@listserv.heanet.ie
LISTSERV 16.5 - CSOUND List at LISTSERV.HEANET.IE
Send bugs reports to
Issues · csound/csound · GitHub
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
Send bugs reports to
Issues · csound/csound · GitHub
Discussions of bugs and features can be posted here