Hi Dr. B, The conclusion to this was resolved a couple of days ago (I think it was on a different email thread). We found where the problem was and Istvan put in a fix, so nested if/then's are working out just fine now in CS5. steven On 5/27/05, Richard Boulanger wrote: > Steven, > > I haven't had anything to offer as far as a solution goes, but I do hope you > will share the finished/corrected version with me/us. > > Dr. B. > > on 5/23/05 3:32 AM, Steven Yi at stevenyi@gmail.com wrote: > > > Hi All, > > > > This is a bit of a strange error I'm having. In the attached CSD > > file, there is a UDO entitled yiEnvelope which I've been trying to > > convert to using if/then type statements. So far it almost works, > > except on the release note of set of tied notes. > > > > In the example CSD file I have enabled three places where there are > > printk statements, one within the UDO just before the xout output, one > > after the release envelope section of the UDO, and one within the > > calling instrument. When the last note of a set of tied notes is > > reached, the value within the release envelope section of the UDO is > > generating correctly, but the calling instrument does not receive the > > value generated by the UDO, instead receiving 0 value. > > > > I'm not sure what to make of this. It's strange to me that the printk > > statement within the UDO gives an instrument 203 for it's statement (I > > haven't checked how UDO's are implemented underneath the hood). It > > makes me think that's there some kind of strange issue with instrument > > number and processing order. Could it be possible that the UDO is > > processed after the instrument, but somehow on each kpass the value is > > initialized to 0, the instrument runs, then the UDO is computed? The > > print statments seem out of order some how too when in the release > > stage. > > > > Anyways, it's late; I hope it's a user-error and I'm simply missing > > something at this hour, but if not, any suggestions? > > > > Thanks, > > steven > > > > _______________________________________________________________________ > + Dr. Richard Boulanger, Professor > + Music Synthesis Department, Berklee College of Music > + 1140 Boylston Street - Boston, MA 02215-3693 > + Office Phone: (617) 747-2485 Office Fax: (617) 747-2564 > + eMail: rboulanger@berklee.edu or rboulanger@csounds.com > + WebPage: http://csounds.com/boulanger/ > ________________________________________________________________________ > + Almost Everything Csound @ http://csounds.com/ > + The Csound Instrument Catalog @ http://csounds.com/catalog/ > + The Csound Book @ http://csounds.com/book/ > + The Csound Magazine @ http://csounds.com/ezine/ > + The MacCsound, CsoundAV & CsoundVST Forums @ http://csounds.com/phpBB2/ > ________________________________________________________________________ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net