Smoothing out between two successive numbers (peakamp~ and scale)


    Feb 19 2007 | 11:58 pm
    I'm using peakamp~ to drive a display and unfortunately the numbers have to be scaled to be of any use to me. As such the sudden jump from one value to the next 50ms value from peakamp~ is quite noticable so I have tried smoothing the jump between the successive outputs using line.
    The problem is that it doesnt seem to work so well and I was wondering if anyone has any advice?
    Thanks,
    Rhys

    • Feb 20 2007 | 12:03 am
      instead of interpolating every n ms, try using a signal filter such as slide~ or biquad~.
    • Feb 20 2007 | 12:15 am
      Forgive me for being ignorant but I'm not sure I follow you. I've not used slide~ before neither.
      ...I'll have a look at the help files though.
    • Feb 20 2007 | 1:12 am
    • Feb 20 2007 | 6:32 am
      Rhys Perkins wrote: > I'm using peakamp~ to drive a display and unfortunately the numbers > have to be scaled to be of any use to me. As such the sudden jump > from one value to the next 50ms value from peakamp~ is quite > noticable so I have tried smoothing the jump between the successive > outputs using line.
      Its not clear what you want to do with the amplitude value, when I read your question I thought you're controling audio, but all after peakamp~ is just plain Max. What does make it noticable? Maybe you want to atodb the output instead of scaling?
      Stefan
      -- Stefan Tiedje------------x------- --_____-----------|-------------- --(_|_ ----|-----|-----()------- -- _|_)----|-----()-------------- ----------()--------www.ccmix.com
    • Feb 20 2007 | 11:06 am
      On 20-Feb-2007, at 0:58, Rhys Perkins wrote:
      > I'm using peakamp~ to drive a display and unfortunately the numbers > have to be scaled to be of any use to me. As such the sudden jump > from one value to the next 50ms value from peakamp~ is quite > noticable so I have tried smoothing the jump between the successive > outputs using line.
      Your patch is too complicated by half. See the right half of the enclosed.
      For long-term smoothing, I generally use lp.stacey from the Litter Starter Pack (free download from the URI below). I've included use of this in the following patch, too.
      -------------- http://www.bek.no/~pcastine/Litter/ ------------- Peter Castine +--> Litter Power & Litter Bundle for Jitter Universal Binaries on the way iCE: Sequencing, Recording & Interface Building for |home | chez nous| Max/MSP Extremely cool |bei uns | i nostri| http://www.dspaudio.com/ http://www.castine.de