Sorry everyone, this was my fault. madsr works perfectly fine, I was hurrying through testing MIDI stuff and didn't realize I had an extra linseg generator in the test file generating at krate and overwriting the madsr value. Things are perfectly fine, it's just me that was broken! =P Thanks! steven On 11/2/06, Steven Yi wrote: > Hi All, > > I was testing some MIDI things out today and I think i found a bug > with madsr. When using madsr with a-rate output, it seems to function > correctly, but using madsr with k-rate output, it seems to do the > attack and then decay to zero (no sustain). I'm looking at the code > but have not yet seen what the problem is. > > I've attached a test CSD file. If you switch to program 2 with your > keyboard to use instrument 2, you will hear the envelope not working. > > BTW: I've also just checked in changes to the keyboard. There is now > a spinner box to change midi channels and programs. > > Thanks! > steven > > > ------------------------------------------------------------------------- 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