On Monday 15 May 2006 10:00, matt ingalls wrote: > i have used a simple opcode in the past that i called 'monitor' > that simply returns the spout frame - to be used for monitoring > the output signal-[ not processing! ] - i usually do something like: The opcode is now added: static int monitor_opcode(CSOUND *csound, MONITOR_OPCODE *p) { int i, j; if (csound->spoutactive) { int k = 0; i = 0; do { j = 0; do { p->ar[j][i] = csound->spout[k++]; } while (++j < csound->nchnls); } while (++i < csound->ksmps); } else { j = 0; do { i = 0; do { p->ar[j][i] = FL(0.0); } while (++i < csound->ksmps); } while (++j < csound->nchnls); } return OK; } ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net