• tibor

    a number which varies between 0 and 2pi is controlled by an endless enconder, in this case, the rotation of a tuio object.

    if the rotation of the encoder is clockwise and over 360º (2pi) then the value begins at 0 again and increases towards 2pi again. conversely, if the rotation is counter-clockwise and under 0º then the value begins at 2pi and decreases towards 0 again.

    what would be the best practice for keeping the value at 2pi (ie, maximum) if the rotation is clockwise and keeping it at 0 (ie minimum) if the rotation is counter-clockwise? i can imagine that with conditionals and/or loops this shouldn't be that difficult to do, but maybe there is already an object in PD for this sort of task?

    any input welcome, thanks for reading,
    bernardo

    posted in technical issues read more
  • tibor

    hello, first post :)

    i'm looking for an object or abstraction that will render same results as the slide object in max, which doesn't seem to be documented online and whose help file looks like the attached file.

    it's been most useful to me, and if it's not available i'll maybe get my head around to doing it myself, but hey...

    it seems to be as simple as y (n) = y (n-1) + ((x (n) - y (n-1))/slide) but i'm having a hard time figuring out which variable goe$ where. :s

    much appreciated for reading and any input, cheers,
    bernardo

    [edited, legibility]

    http://www.pdpatchrepo.info/hurleur/Screen_shot_2010-06-29_at_5.38.05_AM.png

    posted in technical issues read more
  • tibor

    works great, thank you!

    posted in technical issues read more
  • tibor

    in this case, it's actually a value which cycles between 0.0 and 1.0, which i divided by 6.28 and multiplied by 360 to get degrees, and wraps around.

    the idea is to only allow for one rotation... once it reaches 360 (ie 1.0), it stays at that value, instead of starting at 0 again.

    posted in technical issues read more
  • tibor

    yes, that's it.

    thanks! i'll be sure to post a patch pretty soon, where this is put to good use :)

    cheers

    posted in technical issues read more

Internal error.

Oops! Looks like something went wrong!