using groove~ sync output to generate envelop

    May 10 2006 | 12:15 pm
    Hello list,
    I am new to max so apologies for the newbie question.
    I am trying to add an envelope to the output of groove (in loop mode) so that it does not produce clicks during the playback. I know that the sync output ramps to 1 at the end of the selected (playback) portion of the buffer but I cannot figure out how to use it to trigger a line object for fading in and out the signal. Any helps will be very much appreciated.
    Thanks in advance Peiman

    • May 10 2006 | 1:35 pm
      fill a buffer~ with the wanted window lookup table.
      don't use line, use a wave~ reffering to the buffer~ with the lookup table.
      hook the sync output from groove~ to wave~.
      multiply the output from groove~ with the output from wave~
      that is it... ------------------------------------------ you should also take a look at the grooveduck example patch ;)
    • May 10 2006 | 5:14 pm
      You might just want to run the groove~ through a trapezoid~ object and then multiply (*~) it to the signal. Here you have an envelope you can easily adjust to get rid of the clicks and still preserve the attack in the loop.
    • May 13 2006 | 11:46 am
      Easiest solution I've seen so far some days ago (not my idea): a trapezoid~:
      You might want to adjust the parameters with some info about the length of you buffer~, use info~ for that.
      If you want to crossfade a loop I'd look int xgroove~ from Thomas Grill. (search at
      -- Stefan Tiedje------------x------- --_____-----------|-------------- --(_|_ ----|-----|-----()------- -- _|_)----|-----()-------------- ----------()
    • May 18 2006 | 10:03 pm
      Hello again,
      I would just like to thank everyone for their replies it has been most helpful.
      Thanks again Peiman