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,
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.
----------begin_max5_patcher---------- 479.3ocuUssSiCCD84juBKKsuAn5bsk236XEZkaxPqQI1UIS1s6h3eesmDKR AJIsE3E6lwyb7YN4LoOEFvWa1Csb1srexBBdJLHfB4BDL7b.uVtunR1RowKL 00fF4W0eFB6QJt1fLbqpk8aYUG3O9AiFaU+CboHVbyhgv6ZfVKHRTYz+pAJv dFDKxrovDKycaKFVX2OTktqVoq.jHhvCkDK1pzaFAiHNkfQPa448XdHPlNzi jmTpRpQLqe757w7WKqI9yuqQIq3tCdNLzsb0EpYcs.yxerggFlRiPyNSkDA1 Hkj4qpRogBSmlJM9i02YqTQjDkPR8pkzuEmhPk84JTkt5FPz2VwYSzWkvlFn 2Day83Ma1JxHjPaKS7qGoYEusYS8TqOM7u6fdj4OTYj1a49ynks25ZnYh4Ea Ep5tZWz7nIFhhREzayUWzLT1xWLFoKlXBJxSSk1Sy2wqj7AdkiIrJ2TCiuVp 2blxK7G6c+lIue3rJ7SXHJZJoJmLTwqlPpdGaU7YpKec1sYaR561HwI4RF05 QelVB5ZoOS9p+PiXtK9g5Rqoqovi5.aXuP9RnEUZZ5ZTNoGjyVUYInG62qUk 6LVJNPgi7NZtLJdFLJ5akQIyfQwW.irO7b3+ADdV9KF -----------end_max5_patcher-----------
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
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.
Forums > MaxMSP