HISE Logo Forum
    • Categories
    • Register
    • Login

    Computer keyboard input

    Scheduled Pinned Locked Moved Scripting
    15 Posts 4 Posters 2.4k 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.
    • Christoph HartC
      Christoph Hart
      last edited by Christoph Hart

      This is a reasonable request. You'll need to roll your own widget from a Panel then, because the other widgets have already some hardcoded modifiers (eg. dragging sliders with Ctrl enables fine tune mode)

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

        I think I'm getting the hang of the panel now so that shouldn't be an issue

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart
          last edited by

          Alright, I added the modifier keys:

          event.isShiftDown
          event.isAltDown
          event.isCmdDown
          event.itCtrlDown
          

          BTW, if you call setValue() with a Panel, the controlCallback isn't executed automatically (to prevent recursive loops). You need to call Panel.changed() to execute the control callback.

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

            That was quick! just trying out the new build now.

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            1 Reply Last reply Reply Quote 0
            • Alex ParadisA
              Alex Paradis
              last edited by

              Hi guys,

              I'm trying to make it work but it still doens't work using a panel.

              Here's a snippet:

              HiseSnippet 1160.3oc6X01aaaCDlxNpHwadqsXec.Z9St.YFxourh8BVRrSJ71RhQcV6FJFLXjnrHLEo.EsyLBx+s8SZ+C1Np2csZlqAZwBPDPrEOd2wmi73ycwCkBGRTjPhL147EgDjwmZNZAW42yGS4nA8QFeo4d16Ya209oiUjH03ojEiCDtTOJQFgNbQHNJh3hLLp+BsIF6rEJ94u+wCwLL2gTHBgdkf5P9EZ.UUHc39+LkwNF6RNmFTR6mr+.GAumfIlAvqtoMJD6LEOgbJVqVMSjw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imND.pbnBQjttPMcosjw1Y0IFQ3twC9G3Icxt5wFoS1MaRzZvE7Yk4B16FHCPn6HCtiL3NxfasjAeLVi.riTL1IoCb8Uysik.wMO92CZGySzis5l02soocGaT.0kN1wQ2jzWC6OUaydafMOdCr4IafMOcCr4YafMeyFXyyuQaz+zXGLSIBRx+AACOJ9++wv3HNFxjiuJf9WvY7+4C
              

              I get this :

              Interface:! API call with undefined parameter 0 {SW50ZXJmYWNlfHw1NTR8Mjh8MjI=}
              :			function() - Line 28, column 22	{SW50ZXJmYWNlfHw1NTR8Mjh8MjI=}
              

              Any ideas?
              Thanks again for the help!

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @Alex Paradis
                last edited by d.healey

                e999e32a-ba3d-4ff7-92a6-4081a0d3fa82-image.png

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                Alex ParadisA 1 Reply Last reply Reply Quote 1
                • Alex ParadisA
                  Alex Paradis @d.healey
                  last edited by

                  @d-healey

                  Thanks a lot, It works!

                  1 Reply Last reply Reply Quote 1
                  • SimonS
                    Simon
                    last edited by

                    I'll bring this topic back from the grave and ask the compliment of David's question. Is it possible to get normal keypresses? Specifically, letters A-Z, maybe characters too.

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

                      @Zorpley https://docs.hise.audio/scripting/scripting-api/content/index.html#setkeypresscallback

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      SimonS 1 Reply Last reply Reply Quote 0
                      • SimonS
                        Simon @d.healey
                        last edited by

                        @d-healey As usual I found it right after asking. Thanks David!

                        SimonS 1 Reply Last reply Reply Quote 0
                        • SimonS
                          Simon @Simon
                          last edited by Simon

                          To implement keyboard playing like you find in DAWs, might there be a way to get the current keyboard layout as well? I'll specify that I want to use the (PC) keyboard to set the current chord in a plugin, not play a MIDI note directly.

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

                            @Zorpley said in Computer keyboard input:

                            might there be a way to get the current keyboard layout as well?

                            Not that I'm aware of, but you could setup some predefined ones and let the user pick.

                            Libre Wave - Freedom respecting instruments and effects
                            My Patreon - HISE tutorials
                            YouTube Channel - Public HISE tutorials

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

                            55

                            Online

                            1.7k

                            Users

                            11.7k

                            Topics

                            101.9k

                            Posts