is circluar interpolation of pattrstorage presets possible?

Jun 27, 2011 at 10:21am

is circluar interpolation of pattrstorage presets possible?

Hello all, does anyone know if it’s possible or if it’s possible to do the following:

I’m storing the azimuth, so the position in 360 degree space of a number of sources. I want to have a number of preset positions that i can interpolate between so the sources move in space to a new set of positions. The problem is that when i want to interpolate from an azimuth position of say 350 to a position of say 10, the pattr system goes down from 350 to 10 so all the way back around the circle rather than forward through 0 to 10.

I understand that it makes sense for most application to have min and max, but does anyone if it’s possible and how to do it in a circular way.

Failing that, any suggested work arounds?

I’m stumped with with one,

Cheers

Gareth

#57787
Jun 27, 2011 at 4:58pm

One workaround is to have an azimuth control value that allows a greater range than the 360 degree space (ie 720 degrees or possibly more) and store this value to do the interpolations (ie 350 -> 370 rather than 350 -> 10 in your example). Check the attachment for an example.

– Pasted Max Patch, click to expand. –
#207322
Jun 27, 2011 at 5:21pm

i am not sure if i have understand your problem..
in the pattrstorage system you are the one who defines the movement between the presets ..

you can send to pattrstorage the message recall or recallmulti if you want to interpolate between two or more not-adjacent presets

#207323
Jun 27, 2011 at 7:55pm

Thanks for the suggestion spectro, seems the best way to go for now.

Hi Tada, I get that you can define the movement between two presets, the problem is that, as far as I’m aware, you move between an upper and lower limit. In my case I want to go trough the upper limit back to the minimum not back down to it.

e.g. in a range of 0 to 100 say and we want to interpolate from 90 to 10 we can only go down to it, 90, 89, 88, 87….12, 11, 10. I want to go up so 90, 91… 99, 100, 0, 1, 2 … to 10.

That seems really stupid I know, but it makes sense when thinking of movement in a 360 degree circle.

Cheers

#207324

You must be logged in to reply to this topic.