Lossless event slew (particularly useful for VSTs)

    Mar 26 2010 | 3:37 am
    If you send a lot of data to a VST, it can crash. The object "speedlim" samples from a continuous stream of data; it reduces message volume by throwing away messages. What if you want to spread a burst of messages across time, without losing any?
    Attached is one solution. Hope you like it.

    • Aug 15 2010 | 10:46 am
      Very groovy! This is the perfect thing to throttle UDP output to TouchOSC. I cleaned up your patch and removed the third party external, I hope others stumble onto this.
      Cheers :)
    • Aug 20 2010 | 8:02 am
      I was finding the above to bog my system quite a bit. I wrote a similar process in js, it seems to handle things in a much better manner for me. Here it is:
      setinletassist(0, "buffered input");
      setinletassist(1, "event threshold, same as first argument");
      setinletassist(2, "event interval, same as second argument");
      setinletassist(3, "maximum buffer size, same as third argument");
      var event=0;
      var buffer=[];
      var thresh=Math.max(5, jsarguments[1]);
      var interval=Math.max(5,jsarguments[2]);
      var buffer_size=Math.max(20, jsarguments[3]);
      var timer=new Task(burst, this);
      function anything(args)
              case 0:
                  var buffer_temp=arrayfromargs(messagename, arguments);
    • Aug 20 2010 | 1:24 pm
      for bank dumps, good solution.
      but as for CC, wouldn´t slide and speedlim represent the intended controller movement
      better than delaying the incoming data?
    • Aug 21 2010 | 9:25 am
      thanks for sharing this js, very useful :-)
      it works fine when using arguments, but when I try to modify threshold or event interval with messages to 2nd or 3rd inlets, it seems to stop working (just pass thru incoming messages without delay).