You are viewing an archive of the TroikaTronix/Isadora Forum.
The active forum can be found at this link

Controlling moving light pan with Myo (joy and problems)

Dear collective wisdom,

I am trying to control a moving light with Myo through a max patch that transforms a dancer movement into light movement. When the dancer starts rotating th light does it too. Everything is fine but I have a problem that also happens with a infinite rotation potentiometer. When the dancer slowly turns Myo orientation values go from 0 to 127 (a full tour on himself) and the light does the same. But if the dancer wants to go on rotating in the same directions values go back to 0 and the light.... also comes back quickly to the initial position.
Any idea on how to solve this?
Thanks


Armando Menicacci www.danse.uqam.ca www.digitalflesh.org www.emdl.eu

15' i7 2,7 Ghz Macbook pro Retina Display 16 GB OSX 10.12.1 Latest Isadora version

Comments

  • 6 Comments sorted by Votes Date Added
  • you are mapping an up ramp, but no down ramp.

    You need to map range X to the Up (0 to 127) and range Y to Down(127 to 0)
    Setup so that X and Y ranges alternate at the thresholds.

    [Troikatronix Technical Support Staff] Bug Report/Feature Request FORM
    aka: Ryan Webber | http://www.dusxproductions.com | Win 8.1/10 64bit, i7-4810mq, 16gb, nVidia GTX 870m | located in Ontario Canada.

  • @DusX - this problem has also been confusing me for a while now. with your advice, I think I can build a solution. Thanks Ryan.

    John

    dbini.com MBP 2.53GHZ Core2Duo OSX10.11.3 4GB & MBP Retina 2.3GHZ Quad-Core 16GB OSX10.11.3

  • Hi @DusX and @Armando:

    I found a solution, using Ryan's ramping idea - this gives a particular outcome that is smooth, but half the time, the output doesn't correlate with the input.
    is there a way of patching something so that an increasing input gives an increasing output, ignoring the jump back to zero, and a decreasing input gives a decreasing output, ignoring the jump back to 127? I can't get my head around it. ;)
    John

    ramping-myo-patch.jpg
    1920 x 1122 - 385K

    dbini.com MBP 2.53GHZ Core2Duo OSX10.11.3 4GB & MBP Retina 2.3GHZ Quad-Core 16GB OSX10.11.3

  • Armando,

    I cannot understand exactly where is your problem? Can you give what is the Myo output and what do you need for numbers?
    Jacques

    Jacques Hoepffner website http://hoepffner.info MBP i7 2.6Ghz 16Go / MacOs10.11.6 / Izzy 2.5

  • @Armando, @dbini @ DusX

    I think I understand your problem. The problem is you have to increment the output with 100 when you pass 0 in positive way and decrease it by 100 when you pass 0 in negative way to avoid the gap, so you need to know the instant speed.
    I made a quick (working) proposition, it would be much easier in Python :-) less in javascript because you cannot easily manage real time inside the script.
    Here is the patch and the screen capture.
    PS that's the reason because I use encoders instead of infinite potentiometer, you know instantly in which side you are rotating.
    Hope that helps,
    Jacques

    ArmandoCounter.jpg
    1619 x 791 - 195K
    izz
    izz
    forArmando.izz
    14K

    Jacques Hoepffner website http://hoepffner.info MBP i7 2.6Ghz 16Go / MacOs10.11.6 / Izzy 2.5

  • Thanks a lot folks. I think that Jacques has a solution but I don't have the light any more now. As soon as I have it again. What encoders are you referring too Jacques?

    Armando Menicacci www.danse.uqam.ca www.digitalflesh.org www.emdl.eu

    15' i7 2,7 Ghz Macbook pro Retina Display 16 GB OSX 10.12.1 Latest Isadora version

Sign In or Register to comment.