| There are subtle issues I don't fully understand, but look at the Python GUI
example in the Csound examples section, which does work and is commented.
Regards,
Mike
----- Original Message -----
From: "Chuckk Hubbard"
To: "Csound List"
Sent: Tuesday, May 20, 2008 7:36 AM
Subject: [Csnd] Python API - threading Csound
> Hello.
> The GUI I'm building freezes whenever I run Csound from Python. I'm
> using:
> cs = csnd.CppSound()
> cs.setPythonMessageCallback()
> cs.setCSD(csdcsd)
> cs.exportForPerformance()
> # cs.perform()
> playing = thread.start_new_thread(cs.perform,())
> del(cs)
>
> Can anyone tell me why Csound doesn't appear to get its own thread?
> The GUI still freezes.
> I've been doing lots of reading on threads in Python and AFAICT this
> should be the way to do it. Perhaps the whole play() function should
> be its own thread?
>
> -Chuckk
>
>
> --
> http://www.badmuthahubbard.com
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
|