• Products
    • Isadora
    • Get It
    • ADD-ONS
    • IzzyCast
    • Get It
  • Forum
  • Help
  • Werkstatt
  • Newsletter
  • Impressum
  • Dsgvo
  • Press
  • Isadora
  • Get It
  • ADD-ONS
  • IzzyCast
  • Get It
  • Press
  • Dsgvo
  • Impressum

Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags

    Controlling moving light pan with Myo (joy and problems)

    How To... ?
    4
    10
    3593
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Armando
      Armando Beta Gold last edited by

      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.studiosit.ca
      MacBook Pro 16-inch, 2021 Apple M1 Max, RAM 64 GB, 4TB SSD, Mac OS Sonoma 14.4.1 (23E224)

      1 Reply Last reply Reply Quote 0
      • DusX
        DusX Tech Staff last edited by

        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

        • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
        • My Add-ons: https://troikatronix.com/add-ons/?u=dusx
        • Profession Services: https://support.troikatronix.com/support/solutions/articles/13000109444-professional-services

        Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

        1 Reply Last reply Reply Quote 0
        • dbini
          dbini last edited by

          @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

          John Collingswood
          taikabox.com
          2019 MBPT 2.6GHZ i7 OSX15.3.2 16GB
          plus an old iMac and assorted Mac Minis for installations

          1 Reply Last reply Reply Quote 0
          • dbini
            dbini last edited by

            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

            d21f52-ramping-myo-patch.jpg

            John Collingswood
            taikabox.com
            2019 MBPT 2.6GHZ i7 OSX15.3.2 16GB
            plus an old iMac and assorted Mac Minis for installations

            1 Reply Last reply Reply Quote 0
            • jhoepffner
              jhoepffner last edited by

              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 http://hoepffner.info
              GigaByte 550b / Ryzen 7 3800X / Ram 64 Go / RTX 3090 24 Go / SSD 2 To / raid0 32 To
              MBP 13' i5 2.6 Ghz 16 Go / Intel Iris / macOs 10.11.6 / izzy 2.6.1 + 3.0.3b2
              MBP 15' i7 2.6 Ghz 16 Go / GTX 650M 1Go/ MacOs10.13.3 / Izzy 2.6.1
              MSI GS65 i7 3.6 Ghz 32 Go / GTX 1070 8 Go / Windows 10 / Izzy 3.0.3b2

              1 Reply Last reply Reply Quote 0
              • jhoepffner
                jhoepffner last edited by

                @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

                1c2d0c-armandocounter.jpg 84d3c6-forarmando.izz

                Jacques Hoepffner http://hoepffner.info
                GigaByte 550b / Ryzen 7 3800X / Ram 64 Go / RTX 3090 24 Go / SSD 2 To / raid0 32 To
                MBP 13' i5 2.6 Ghz 16 Go / Intel Iris / macOs 10.11.6 / izzy 2.6.1 + 3.0.3b2
                MBP 15' i7 2.6 Ghz 16 Go / GTX 650M 1Go/ MacOs10.13.3 / Izzy 2.6.1
                MSI GS65 i7 3.6 Ghz 32 Go / GTX 1070 8 Go / Windows 10 / Izzy 3.0.3b2

                1 Reply Last reply Reply Quote 0
                • Armando
                  Armando Beta Gold last edited by

                  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.studiosit.ca
                  MacBook Pro 16-inch, 2021 Apple M1 Max, RAM 64 GB, 4TB SSD, Mac OS Sonoma 14.4.1 (23E224)

                  1 Reply Last reply Reply Quote 0
                  • dbini
                    dbini last edited by

                    I've been working on how to solve this problem and have come up with something I think may be useful to share. The Macro in here converts OSC from the MYO into joystick control that outputs a constant signal if the MYO is moving, but nothing if it is still. I've included a counter to be able to convert this signal back into numerical data, if that is necessary. It gives a nice, organic ramping to the data and can cope with the data thresholds.

                    John

                    John Collingswood
                    taikabox.com
                    2019 MBPT 2.6GHZ i7 OSX15.3.2 16GB
                    plus an old iMac and assorted Mac Minis for installations

                    Armando 1 Reply Last reply Reply Quote 1
                    • Armando
                      Armando Beta Gold @dbini last edited by

                      Hello @dbini

                      thanks for the hint. Is there a patch to understand well? Can't see it

                      Thanks

                      Armando Menicacci
                      www.studiosit.ca
                      MacBook Pro 16-inch, 2021 Apple M1 Max, RAM 64 GB, 4TB SSD, Mac OS Sonoma 14.4.1 (23E224)

                      dbini 1 Reply Last reply Reply Quote 0
                      • dbini
                        dbini @Armando last edited by

                        @Armando - Yes, yes, yes (i uploaded the patch when that feature of the new forum wasn't working)

                        here it is, let me know if it works for you,

                        all the best,

                        john

                        OSC joystick

                        John Collingswood
                        taikabox.com
                        2019 MBPT 2.6GHZ i7 OSX15.3.2 16GB
                        plus an old iMac and assorted Mac Minis for installations

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post