How to 'peek' an inverted hanning window? (declicking buffer skipper)

Jul 16, 2012 at 6:49pm

How to 'peek' an inverted hanning window? (declicking buffer skipper)

I’m going back and declicking the bejesus out of my performance patch, and for this section I’d like to remove the [+~ 1] object, and just have the hanning window go from 1, to 0, and back to 1.

Originally I had “fill 1, apply hanning” and used a [!-~ 1] instead, but that’s still needlessly crunching msp numbers.

Here’s the main section of the patch (in my version I have the window time much smaller (8ms for line~ and 4ms for pipe), this is longer so it’s easier to see.

– Pasted Max Patch, click to expand. –
#34101
Jul 16, 2012 at 7:00pm

why don’t you record the hanning after inverting it, so the window is already right and doesn’t need to be processed?

#114589
Jul 16, 2012 at 7:11pm

Ah, maybe you meant that with the “peek” in the title, sorry. what about [poke~]

– Pasted Max Patch, click to expand. –
#114590
Jul 16, 2012 at 7:14pm

That’s perfect! For the life of me I couldn’t figure out how to write a buffer to a buffer with some math manipulation (I was trying some counter~ stuff, but couldn’t get it going).

#114591
Jul 16, 2012 at 7:20pm

Hmm, I guess that doesn’t work like I thought it would work?

I’ve succeeded in making a ‘click only’ playback engine!

– Pasted Max Patch, click to expand. –
#114592
Jul 16, 2012 at 7:42pm

way better

– Pasted Max Patch, click to expand. –
#114593
Jul 16, 2012 at 7:42pm

there was some offset, of 1.. sample 0 was value 0.
cheers!

#114594
Jul 16, 2012 at 7:58pm

That does it. Thanks!

#114595
Jul 16, 2012 at 8:27pm

This way you can generate the envelope with peek~.

– Pasted Max Patch, click to expand. –
#114596

You must be logged in to reply to this topic.