Csound Csound-dev Csound-tekno Search About

real-time s statement?

Date2006-01-09 00:21
FromJulian Peterson
Subjectreal-time s statement?
Friends.

I've been working on a real time work for csound, and I've got a few  
questions that hopefully you can answer for me.  The work is for  
saxophone and laptop, with the laptop controlled by joystick.  I'm  
using pure-data to listen to the joystick and send OSC messages to  
csound.  An instrument in csound is listening to the OSC port and  
activating other instruments, writing joystick data to gk_ variables,  
etc.  This all works very well (and indeed, I'm so pleased with this  
setup that I'd like to write several pieces with the same equipment).

I have been using ihold/turnoff combinations in the various  
instruments to control releases, etc.  I've noticed that as the work  
progresses and more instruments are used (and turned off) that my cpu  
headroom is rapidly disappearing.  Do allocated, inactive instruments  
burden the cpu?  I assumed that they would to a small degree, but as  
long as they were inactive it would be mostly insignificant.  Am I  
incorrect about this?

Is there a way to get csound to print a list of all active instances  
of an instrument or instruments (for debugging purposes, incase my  
instruments are not turning off)?

And lastly, is there a means of scheduling an s statement that can be  
called from within an instrument?  (like ' event "s", ...)?

Thanks, in advance, for your help.

Julian Peterson