I guess this can be done either with an always on instrument or with a UDO. I have done a similar thing before using a midi note on as a trigger, I will look for the CSD. Victor ----- Original Message ----- From: Jim Aikin Date: Wednesday, November 10, 2010 5:12 am Subject: [Csnd] Modeling an Analog Envelope To: csound@lists.bath.ac.uk > > The other night I started musing about how one might model an > analog modular > synth in Csound. In trying to model an envelope generator, I > find myself > puzzled. I'm sure there must be an easy way to do it, using > reinit or > something.... > > The desiderata: > > 1) The "envelope generator module" is an instrument unto itself. > It sends > its output via a global k-rate variable. > > 2) This instrument is "always on" while the score is playing. It > doesn'tstart and stop in response to i statements. > > 3) The envelope starts each time a global trigger signal goes > from 0 to 1. > (Maybe later it will be gated rather than triggered. That's a > refinement I'm > not yet ready to tackle.) If a new trigger is received before it > finishesmoving through its segments, it starts over from the > beginning. > 4) The envelope does not loop. It cycles through once, reaches > its end > value, and stays at the end value unless and until a new trigger is > received. > > The thing is, the only envelope generator I've been able to find > in Csound > that accepts a trigger input is looptseg ... and I don't want a > loopingenvelope. > > I've tried using reinit, but I can't figure out how to make a > reinit pass > restart a linseg again from the beginning of its defined contour. > > Am I approaching it all wrong? How would the experts do this? > Thanks in > advance! > > --Jim Aikin > -- > View this message in context: > http://csound.1045644.n5.nabble.com/Modeling-an-Analog-Envelope- > tp3258152p3258152.htmlSent from the Csound - General mailing > list archive at Nabble.com. > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body > "unsubscribe csound" > Dr Victor Lazzarini, Senior Lecturer, Dept. of Music, National University of Ireland, Maynooth Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"