Forums > MaxMSP

high resolution sah~

August 11, 2010 | 9:11 pm

Hello all, I’m needing a high res equivalent of the [sah~ ] object for a patch, and there isn’t one in the hr.library.

However, I’m thinking there *might* be away of doing it mathematically using the hr objects that do exist?

There are no comparison objects (>, < , =, ) though which might be a problem.

I’m needing this because I need a way of synching a param change to a high resolution phasor~ object.

So………does anyone think it’s possible to create a sample and hold with normal math? I’m not too optimistic, but being as flakey at math as I am, I thought I would ask.

Failing that, does anyone have the know-how to compile a double-precision version of sah~ or Andrew Benson’s wait~ external?

Cheers for the help


August 11, 2010 | 10:01 pm

This seems to work well enough for now :)

– Pasted Max Patch, click to expand. –

August 11, 2010 | 10:30 pm

I would do the below – the hr bit of the phasor isn’t needed. You can use the same trigger for both. The 0.999 trigger threshold will potentially be off (by a constant amount for a set frequency) from the onset of your phasor), and this nasty hack isn’t necessary if you use the delta of the phasor, which can be thresholded easily and with total accuracy:

– Pasted Max Patch, click to expand. –

Alex


August 11, 2010 | 10:37 pm

Ahh very nice, I was aware than an argumented sah~ would be a problem in this scenario…..didn’t think to delta~ it.

Thanks muchly Alex!


August 12, 2010 | 1:29 am

indeed, an argumented object might be a problem for a "hr" circuit. :D exept expr~ mb.


Viewing 5 posts - 1 through 5 (of 5 total)