Hi Istvan, Thanks for the tip with tigoto; I didn't think of it that way as the legato instruments I had put together need to know last note status for doing it's envelopes correctly and so I never really used tigoto and instead used tival. For this case though it seems quite handy! As for ftgentmp, I'm not sure what to do with non-automatic numbers. I've never used ftgen with a requested ftable number as I think it's usefulness lies in auto-generating an ftable number and referencing the returned table number from instruments by variable name, which is descriptive. Since I can't even imagine a reason to use requested ftable numbers, I'm not sure what one would want to do in this case. Maybe ftgentmp shouldn't take in a requested table number at all and use 0 in the underlying call to hfgens always? steven On 8/3/05, Istvan Varga wrote: > Steven Yi wrote: > > > I too very much enjoy the legato feature of csound (I learned a great > > deal from your Csound Book chapter when I first went to learn how to > > use it!), and since Istvan left in the ftfree, I think it will be no > > problem to only deallocate at the last note. I know with my > > instruments that use tied notes, it can detect if it's the first note > > of the sequence (tival == false and p3 < 0) so one could use ftgen > > with that note, and then check if tival == true and p3 > 0 to detect > > the end note of the sequence and call ftfree. If not a tied note at > > all, then could just use ftgentmp. > > You can also skip ftgentmp with tigoto - it will then create one table > at the beginning of the first note, and delete it when the last note in > the tied sequence is deactivated. Otherwise, it creates a new table on > every new tied note, and deletes all at once at the end of the last note. > > By the way, ftgentmp currently only deletes tables with an automatic > number (p1=0); should this be changed ? > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net