HISE Logo Forum
    • Categories
    • Register
    • Login

    Making button flash upon mouseclick AND midi note

    Scheduled Pinned Locked Moved General Questions
    24 Posts 5 Posters 617 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.
    • MorphoiceM
      Morphoice @ulrik
      last edited by

      @ulrik brilliant. I swear I tried the same approach before but hadn't set up everything right so it didnt work. Now it does. Thanks so much!

      https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

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

        @Morphoice said in Making button flash upon mouseclick AND midi note:

        @Lindon so you mean Content.getComponentUnderMouse should work?

        Sorry I was assuming you were using a single panel and drawing the "button" on to it - seems you are using multiple panels...

        HISE Development for hire.
        www.channelrobot.com

        MorphoiceM 1 Reply Last reply Reply Quote 0
        • MorphoiceM
          Morphoice @Lindon
          last edited by Morphoice

          @Lindon yes sir but the x/y might actually be a useful tip for calculating the click position on the panel and from there maybe get a velocity value

          https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

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

            @Morphoice said in Making button flash upon mouseclick AND midi note:

            @Lindon yes sir but the x/y might actually be a useful tip for calculating the click position on the panel and from there maybe get a velocity value

            yes that would work - remember the Y value increases the further down the screen you go, so you velocity calc might be:

            (panel height - y position)/(panel height/127)

            for a full range solution...

            HISE Development for hire.
            www.channelrobot.com

            1 Reply Last reply Reply Quote 1
            • rglidesR rglides referenced this topic
            • First post
              Last post

            16

            Online

            1.8k

            Users

            12.1k

            Topics

            105.5k

            Posts