| This is what I did in Orbifold.py. It worked, but performance was not optimal and GUI response time could be slow. But again, this was with Visual Python running its own CPU-hogging thread at the same time.
Regards,
Mike
-----Original Message-----
From: Victor Lazzarini
Sent: Dec 15, 2005 9:03 AM
To: csound-devel@lists.sourceforge.net
Subject: Re: [Cs-dev] (no subject)
what about calling csound::PerformKsmps() in a loop in the
csound thread? Would that allow the other threads to work in tandem?
In a single thread, could csoundYield() be used to give the GUI some
life?
Victor
At 13:40 15/12/2005, you wrote:
>Using threads in Python is somewhat limited, as there is a global
>interpreter lock that basically prevents other Python statements from
>being called while for example a Csound API function is used through
>the wrapper interface. This means that if you start Csound::Perform(),
> the other threads will probably freeze until the entire score is
>performed (at least that is what I found while experimenting with the
>interface).
Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |