interpolation between 2 consecutive samples (gen~)

    Sep 20 2012 | 3:08 pm
    How would you make an optimized 4 sample interpolation between 2 consecutive values ?
    Thanks !
    ps : Long time I have not posted something ! :)

    • Sep 20 2012 | 5:00 pm
      /Max 6/examples/gen/gen~.interpolation.maxpat
      p.s. - we missed you!
    • Sep 21 2012 | 11:06 am
      Ohh thanks! If I understand well, there is no already prepared "line" external. :) Here is a piece of code that interpolates from one sample to the next within a minimum amount of time. The interpolation starts as soon as a new signal value arrives. Also, it works like a line for new incoming values when interpolation has not ended yet. I have noticed History does not work when it is outside of a function.
    • Oct 01 2012 | 6:02 am
      It's probably less sophisticated that what you're looking for, but here's a pseudo-line~ for gen~:
    • Oct 01 2012 | 6:03 am
      Whoops, loadmess was firing to soon. Try this:
    • Oct 04 2012 | 8:47 am
      i thought it would be very simple to turn this into a reusable function. but it isn't. why will this not compile? the errors are cryptic. (and i think 'step' was superfluous?).
    • Oct 05 2012 | 4:24 am
      You're right, step was superfluous -- a bit of code that wasn't being used anymore.
      Why it doesn't compile is being looked into, flagged as ticket #3633.