HISE Logo Forum
    • Categories
    • Register
    • Login

    Trapezoid XY Pad

    Scheduled Pinned Locked Moved Scripting
    7 Posts 4 Posters 354 Views
    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.
    • Evan SplashE
      Evan Splash
      last edited by

      Hi there! Maybe someone has some ideas on how to make a trapezoid XY Pad?
      I don't understand where to start. Drawing a trapezoid on the panel is not a problem, but how to make the indicator move exactly inside the drawn path?
      Thanks in advance to everyone who responds! :)

      Oli UllmannO 1 Reply Last reply Reply Quote 0
      • Oli UllmannO
        Oli Ullmann @Evan Splash
        last edited by

        @Evan-Splash
        Check the YouTube channel of @d-healey
        He made a video about it. :-)

        Evan SplashE 1 Reply Last reply Reply Quote 0
        • Evan SplashE
          Evan Splash @Oli Ullmann
          last edited by

          @Oli-Ullmann Thanks, I'll definitely check it out!
          I've already tried to find it in his videos, but I only found a rectangular XY pad. I'll try again :)

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @Evan Splash
            last edited by

            @Evan-Splash said in Trapezoid XY Pad:

            I only found a rectangular XY pad. I'll try again :)

            That's all you'll find. But any shape is basically the same principle, you'll just need some fancy maths to make sure you remain in your shape's boundary.

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

            Evan SplashE 1 Reply Last reply Reply Quote 0
            • Evan SplashE
              Evan Splash @d.healey
              last edited by

              @d-healey I have a problem with math, I was hoping someone had a ready-made solution :)

              LindonL 1 Reply Last reply Reply Quote 0
              • LindonL
                Lindon @Evan Splash
                last edited by Lindon

                @Evan-Splash its pretty simple trigonometry - you just need to make sure the angle of your selected point(x) is within the angle of the bottom left and bottom right angles of your containing triangle:

                Link Preview Image
                Calculating an angle - Trigonometry - Edexcel - GCSE Maths Revision - Edexcel - BBC Bitesize

                Revise trigonometric ratios of sine, cosine and tangent and calculate angles in right-angled triangles with this Bitesize GCSE Maths Edexcel guide.

                favicon

                BBC Bitesize (www.bbc.co.uk)

                HISE Development for hire.
                www.channelrobot.com

                Evan SplashE 1 Reply Last reply Reply Quote 1
                • Evan SplashE
                  Evan Splash @Lindon
                  last edited by

                  @Lindon Thanks for the advice! I'll start with that.

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

                  21

                  Online

                  2.0k

                  Users

                  12.6k

                  Topics

                  109.6k

                  Posts