Csound Csound-dev Csound-tekno Search About

[Csnd] How do I unsubscribe successfully to this mailing list?

Date2023-01-09 09:42
FromGerard Power
Subject[Csnd] How do I unsubscribe successfully to this mailing list?
Sent from my iPad

> On 9 Jan 2023, at 09:06, Cordelia <00000c641a512f08-dmarc-request@listserv.heanet.ie> wrote:
> 
> ´╗┐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.CsoundPerformanceThread(cs.csound())
> 
> if cs_return == ctcsound.CSOUND_SUCCESS:
>        print('CSOUND is ON!')
> 
>        filename = '/Users/j/Desktop/out.wav'
>        bits = 24
>        numbufs = 2
> 
>        print('Record ON') 
>        pt.record(filename, bits, numbufs)
>        
>        pt.play()
> 
>        while pt.status() == 0:
>            pass
> 
>        pt.stopRecord()
>        print('Record OFF') 
>        cs.cleanup()
> 
> 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

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