high resolution sah~

Aug 11, 2010 at 9:11pm

high resolution sah~

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

#51754
Aug 11, 2010 at 10:01pm

This seems to work well enough for now :)

– Pasted Max Patch, click to expand. –
#185698
Aug 11, 2010 at 10:30pm

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

#185699
Aug 11, 2010 at 10:37pm

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!

#185700
Aug 12, 2010 at 1:29am

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

#185701

You must be logged in to reply to this topic.