HISE Logo Forum
    • Categories
    • Register
    • Login

    How to make a button control the keyboard press?

    Scheduled Pinned Locked Moved General Questions
    11 Posts 4 Posters 288 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.
    • d.healeyD
      d.healey @CatABC
      last edited by

      @CatABC I believe the keyboard only responds to incoming MIDI so you'd need to create an entirely custom keyboard using a panel - or you might be able to fudge it somehow using laf.

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

      CatABCC 1 Reply Last reply Reply Quote 0
      • CatABCC
        CatABC @d.healey
        last edited by

        @d-healey fine, it seems I have something to do again.😹 Thank you very much.

        //I am a new student at HISE._
        //Windows11 & MacOS Ventura 13.6.7_

        1 Reply Last reply Reply Quote 0
        • A
          aaronventure
          last edited by

          Try the playNoteFromUI or whatever it's called. It will spawn the on note event in that processor.

          d.healeyD ulrikU 2 Replies Last reply Reply Quote 0
          • d.healeyD
            d.healey @aaronventure
            last edited by d.healey

            @aaronventure Oh nice!

            Edit: Doesn't seem to work unfortunately

            HiseSnippet 1113.3ocsV0raaaDDdoroQEaaZCPO0SD9jbgg.oprjb5gJa8ShPhsEhbb6klf0KWJtvK2kfbocDBLPel5SVeCbmkjRjx1vIQ.U.Rfye67wY+lYzzXIgljHiQFVmuHhhL9NyYKDpfAAXl.MYHx3YlmfSTzX6bUGuHBmjP8PFFa8RsBi5aix97u+9wXNVPnkpPnKjLB8MrPlpT6z9ulw4iwdzyYgU7tc+IDoXfjKSA7rkoCJBStBOmdJV6VMSzqvIAHiewzyssqeOBtSO21sHjV8515vtDJ12m1w8fts6421GSbZgL1YjGSIimovJZBbnGK8VLKPdiHOAWvRXWxoZAWzLHy4pQCBXbuoKKNIHjw1SKKUakWp9IySXdrU5KKY+XlA6xHpVzLp8TPx8q.RFUfz14P54lyHwrHUoEMd9VyIB3FDJIz0fRtunZ+ig4.I3gP0LDeEcbLHrJhFcbb12F9YueyxZjXNSPalPUultH+lBruuc9iIMugoBNhGEfarTSL0aeamlGrmNblfCga6mJHJlTXKEGmpTRgqN8wRdChLLRJ.fru80XdJcOqOYUm4a2nPpd8L1YyHNdwoRkFpguaRCWM.gusgjTut0sPpV9BMmpFr7ParaQ51cO8qPQRGf47KAhVi6iF3vpfTc5NSzHCQV2ZYeeS99OpshyhSieTy5Nf3mJvFhzvKowUqGZGga70oQ67kQiH4kkJNJESDL0YQzB4wRtmldne9gjNTQcEd5cSFhUXMOrPG3WDMVwzvwXH8ZnyOmUV2bHM4JkLBZhWcY.iZTEsQ47vwbIVwDyOmAvlAH3GLqpxE8wpCVVrRnOseA.xylkIvMuThi8PWNe4zj56344cm1clhFVp8t6t6mWWaqB0YNqneTU57xbm8dW6uLL+jks8tP19ClmJX2WX61toy9ZcCYIZJ5YDE9Z5oY2ffYeLOglY+Mxafv.UGlI9JVtjaqtYxCRSTxvWFiiBXjj0hbH0GmxUGEEQww5osfUUbZtwi4.OFNp2BUMIXvoYmCy9zqmS2Cc55l404x4y4zSjdz0NY8LKXFlPP4Znjo6cIzKnDflUAKqxFXbLGqloVvu2IMczxqf6qGnqwpxrzZo9QBuJ4ti0snaz0TjgowKpgPAT17.kVxCkQBWQh1ImD8rBRTdGbF8otYQ6bUhy66WRb96K5yRNQFBmCNFTaTKAtslHlFSgoC5AjnGNgElsK8RgW60G3qWEVX.ZeWaJqdRpHgoVTcU4WwV.mmbKvWJDet4TlhD73Xr1ifQnw9+CLVr676MGAKqIpR.ts43+bSWT9YR+ako5oHmfUwLfKXBMjyfVZBsfxknIV0z7pbYGsrtBLiJ7xDzyCJL5pkMJL5tzHJDShkefjOzVuc9axz.XRj8uWpC+MJP11EkMHuZcNDZ79.gr9Q8f.asoA9qaZfs2z.OXSCrylFX2MMvde9.0yEOJElGm21fPv3prM.FFiDXfAlwVQ+GUTjRz
            

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

            1 Reply Last reply Reply Quote 0
            • ulrikU
              ulrik @aaronventure
              last edited by

              @aaronventure unfortunately it will not work
              @CatABC you can at least colour the played key on note on and remove the colour on note off

              HiseSnippet 1406.3oc4X0saaTDEdV6rErKTnnBBwUqr3BWTTjWiqsCHTch+oMp0og3zVtAplL6X6Qc7LK6NNslpHg3IiGAdD3QnuAgyL65r6ltM0Xn8BHWTk4727Mm867S5AARBMLTFfrJezBeJx5CrGsPnl1cJlIP60CYcM6g3PEMvIRztK7wggTOjkUw6nEXUZCj4mWd6cwbrfPSDgPORxHz6ylwTIROny8Xb9.rG8H1rTV2nydDonqjKmC3oncMjOl7T7D59XsYErQ2EGNEY8U1dtMbG2lfa11sQcBod6V02tEghGOl1z8VsZzdbiwXRs5Hqqz2iojAiTXEMDYswtRuEilJelH5BdDKjcLmpO3hFA2bj3ARtm9Ip+cT2oLt2AKSTgHjk8AIoshQosaXOj4wNWdR56iMJbR7HcBzpPV3ULC7becvKGHYkBRaDAoqaOhDv7UIZz34p16IfulP5glAJQ1hJTofcWIXgPs0L7SoCBfCm6Q0l0psoC7O27aKWNfNwg447cN0fCLAmInNimKHJlT3HEQAb24JkT3pCYfjWkHm4KEPv2z4DLeN8lkeQ4RbIAycDBHTM0wpDarS0X0k.8kL2hgVtE1yaeoh9.QU2MAW1zYa.PZ3TpTewD.BaERU2itHhEUUaQzuFtEAHbpi0QEr9zxkJWhxCoQ2PTvE5HOd7tK5eB.w87px7tzHWoRTnNE.8xj1Dpp6xGY0JYRBUtoNDwohtXN+XfdWM+LED3T4x3mrIaU9zxNWT03w4pKNVbZPtp0UeAWliUEymcLMH82Jsg.CKKs8JqFskDkhRYnTrmfodfOM9bRcmaNjbTbNVS2iQHXpxP1ulc5rHhAA4ixHxEYdDo6Mgd3d8vJ7xvAQFtMeZfhoeTV8nm.8thpkJY2iF9TkzGZCc9mWnYoJt3O5lFvkXESL4HF730P3SyQgK54oAwhyO7m+Rmmw7TSOWvu+aclRYSllz57W+9NwHMBVksAB4wRbfG53IKabV5JdddmoMmonyRjd1Ym8EYkVOVrwXE84pDiWBOSBpvOZY+hxNNUfa6wZHV4abbarUsM0x5wB843EOfnvmP22PX.0iwPskQ+8kOCbCDss43cYQmbq2xbt67Pkb1cBv9SYjvLd1iNFOmq1w2mhCzCV.spf4QJ2kCEOPnNDRrRPQssZts4m1sq0Z6ZsbMVcjbxDNcnzilIx5VxPKZgfx0PwH6ggzGQI.qNEVN+1.kC3X0H0B9EhzA8W9I3hxgpi.UxsTeo79BuT2cyxmpI1mSoduUlOmhF0qSBMBs+EnQne5hzHvdV3P4L3BwAfmVEPu53CXvkzaN7nyNMSOyOVAzqHyHD8XBQHSsH8NAWbD2Fu9dE0xcBbtcBVQ3dc6CXJxz7wagbvKzK3sMdiWX3Cs6CaqPTIfcC6A+vktcv+5P4ZQP4p1ifwalQfFf7YlyNOFpmctCUPCzIU2KYyu+XU27yek27KpcxQPYenuLLSfGQmwNBpVBSKTWfFP+YS2fzx6BUl4p5k2d.7Hy0mQX07.CcYmYx4BUF5QwU9aR5QeYqZRYeNqxswaqsKemV58OuSQwUCtugkgKsDiiXy74z9hSnbXHuAiehc7HlkRyRxGJER+oRAijlAbHUEvlLgFjF649f1QofYTIRtQmCobJNMa9K6befEhCzSnVybwe++vfb+d841Qv0QWY57eiN7E++YG9Cky0KaNDCDUXIAaXorQPiUBMdsC3hrgQ9ZWMmqoOG0YU3YNn2ILVoq9rUrR2kJembGyvj.4SHQa5q4xuuQB7tEl+CAJYOTe1ImU6mAcEeBgjMTuhi0WWG+500wFqqi2Zccr455Xq00w1uYG0Cs1YNr2eTIKBAqEa9KMrr5Kv.i2Tcf9KXwqRHH
              

              Hise Develop branch
              MacOs 15.3.1, Xcode 16.2
              http://musikboden.se

              CatABCC 1 Reply Last reply Reply Quote 0
              • A
                aaronventure
                last edited by

                i does however trigger the note on callback so if you have a custom keyboard, you can change your graphic there.

                shame about the tile keyboard not working with this, it really looks like low hanging fruit.

                ulrikU 1 Reply Last reply Reply Quote 0
                • ulrikU
                  ulrik @aaronventure
                  last edited by

                  @aaronventure said in How to make a button control the keyboard press?:

                  i does however trigger the note on callback so if you have a custom keyboard, you can change your graphic there.

                  Yes I usually do that as well, however it will not work in the main script processor, you have to put the function in another script processor lower down in the tree

                  Hise Develop branch
                  MacOs 15.3.1, Xcode 16.2
                  http://musikboden.se

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    aaronventure @ulrik
                    last edited by

                    @ulrik playNoteFromUI works in the same processor where you call it, other methods don't and will only be triggered after the one they were called from.

                    you can add a print call to the on note callback in David's example and it'll appear in the log when you click the button.

                    ulrikU 1 Reply Last reply Reply Quote 1
                    • ulrikU
                      ulrik @aaronventure
                      last edited by

                      @aaronventure Ok, yes I see that now, thanks!

                      Hise Develop branch
                      MacOs 15.3.1, Xcode 16.2
                      http://musikboden.se

                      1 Reply Last reply Reply Quote 0
                      • CatABCC
                        CatABC @ulrik
                        last edited by

                        @ulrik Ahaha, that's a great idea!👍

                        //I am a new student at HISE._
                        //Windows11 & MacOS Ventura 13.6.7_

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

                        17

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        102.8k

                        Posts