HISE Logo Forum
    • Categories
    • Register
    • Login

    Keyboard (Floating Tile) move keys up and down horizontally

    Scheduled Pinned Locked Moved Scripting
    7 Posts 2 Posters 387 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.
    • A
      andioak
      last edited by

      I´m trying to move the keyboard on my instrument up and down. onInit it´s fine like this:

      const var KeyboardBottom = Content.getComponent("KeyboardBottom");
      
      KeyboardBottom.setContentData({"Type": "Keyboard", "Data": {"KeyWidth": 14.0, 
          "DisplayOctaveNumber": true, 
          "LowKey": 17, 
          "HiKey": 112, 
          "CustomGraphics": false, 
          "DefaultAppearance": true, 
          "BlackKeyRatio": 0.699999988079071, 
          "ToggleMode": false, 
          "MidiChannel": 1, 
          "UseVectorGraphics": true, 
          "UseFlatStyle": false, 
          "MPEKeyboard": false, 
          "MPEStartChannel": 2, 
          "MPEEndChannel": 16
      }});
      

      But when I try that in the onControl callback it doesn´t work at all. I guess most of the data has to be updated/recompiled. But then what´s the forkflow for the user on the finished instrument?

      Tried this:

      Engine.setLowestKeyToDisplay(20));
      

      Does not work, actually does not do anything at all.

      Also, this:

      Content.setPropertiesFromJSON({"KeyboardBottom": {"Data": {"LowKey": 20, "HiKey": 112}}});
      

      No dice. Any obvious foolishness here :) ?

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

        Use .set(x,pos);

        A 1 Reply Last reply Reply Quote 0
        • A
          andioak @d.healey
          last edited by

          @d-healey said in Keyboard (Floating Tile) move keys up and down horizontally:

          Use .set(x,pos);

          hmm, so I gotta keep something containing it then, so it will be hidden inside a container as I move the whole thing around.

          Okay, thanks.

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

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey
              last edited by

              Oh I just realised you're asking a totally different question to what I thought. Give me a minute and I'll make a snippet.

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

                There is definitely a bug here.

                @Christoph-Hart As you can see from the console output in my snippet the LowKey value is updated, however the floating tile does not get redrawn.

                HiseSnippet 1226.3ocsVssaaaCFVxIJX1aoaEX2r6H7M0FK0UJKMGVP1biOz40lDi5jrcQwJXjnsILMo.EcRMJBvvdR1iRueuL6MH6mhxVRttAsFX5F6+i7i+GYWovmDEIjV1EOeZHwx9qb5MkqF1XHlxs5zzx9ANmfiTDIxv53og3nHRfks8ZOWyvt35Vwe+6OeLlg49jTVVVWJn9jWRGSUob6V+ETFqMNfbNcbFs2odGeAugfIl.3YMGWqPr+H7.xoXsZEbrr2nU.UIj8TXEIBz4XQvzdCE2vM5eIMhdEinI7r5ANxv1pwPJKn6r6Zjkk85cSu4qYt4eqyIz.5b9oQfuIV.J0hrw.6B4gz54fj2GCRsEr.sC9HvyNC7V2.uG5zyWRCUoRzX6Kc5vgjSeLD1yBKitVEd4ZNMDfFbUsw3Qj1RfXtEU100cKzSccqd3lk1rDD7iTnqwRTal.qn7AmSYDOzQnYtX.Q0PLNTvAhJkyoUYsOjjAHl3FRj5EjofcGD6WJmQ4DT+IbeEUvQB9wSTJA2S6VofUwelO2BNc1DR0MK8tMKgfOZeTkXVniNB4U0vLQl9iI7wLDDKMm27y9vTUR+m1YIp9SH2poBx3PiSSuAI5+Xj2gnm7jKBCfrbhBnQjo5qWdS03ATBC1lK9nicUJ2DjDGoxZTh55epIIgLcl4Qkeo3F3jec4eD8Hz2mfisPKxeNVWzoPrMRvH0BkTHWcepEmYiH5BqPhTQIQPUx3es2YmtXJdqXLl0E2Z9K7yswo5kWnjjtKWUeLII8FXF6Jn8txhUCUOLSgxoBE4LdkpkdWohktsDZQQ86uTYIthQjKUrdri79LrBex3qHxYkiyTD5Ey2ruwmVytuIpjQQAuCmpNKjjPmNNvaIiCrRBqv+tnitDROgHgWZVC30jbMLt0LunnSSRzHkHDlbNOW.y2UIC6LSHxlfsn.B9Zmb4bq2lcZ9z4Du+752PCTCSY7W0GRnCFBGgi8qAFWMX1j7haDDDbmVIphLNk6c2c22km61IriUVQdqJU4+48FtwW+BirchaZKCkz+lFGP6f2N0b2JlYSZDzEM8LeE9ZxowoRPtRNgXjaZg.VGXn+Epgza68LLZLIRIF+bINbH0OBjzGyhRLtIoOdBS8rvPBVpW2ky0GCcui.u8JHDJ.It018f3u822cuCb2yyn14hACXjSDAj7NWunAV7v4DlFOFlWDQtj3CkcY.T5IBRayvpdporEcV2V.RtRfkAef.nBVpROosmKnEOHC.1EZrmU8YJqJ4Lym5xx4kUaXJqdPRYkokNtfpnSR+clRo+7OpmVJ82h5znSDiA+fk.a6BQPZqCuqj.iKzKyr9vsgvNYQvD3dmeQs9EIIBfF5baD0a83QT0zruX4yX6s6R2duz10OQ39PmtTk+vki2BKAuPa++23M4sPa5zpeenlKErq6z92W0G97Y.kWIlnm8bBVIoP8hCz81Cl.3SRJJiziWJnGIZnc0z5HSOBOHlPO9HQnml1NQn2LgViw9Rwa7Mi50u15Kh4.XhG+PyhvKdAZjmU73evNG2ZtVigdy236qCEOFv9xsY6UvleXErYmUvlmtB1r6JXydqfM6eu1nGK9rIvHYSaBvnaq3EA11s3XnJKthz5+vEL.lE
                

                Another bug is FloatingTile1.setPropertiesFromJSON() gives a function not found error. Also using FloatingTile1.setContentData() makes the floating tile go blank.

                A 1 Reply Last reply Reply Quote 0
                • A
                  andioak @d.healey
                  last edited by andioak

                  @d-healey said in [Keyboard (Floating Tile) move keys up and down horizontally]

                  Another bug is FloatingTile1.setPropertiesFromJSON() gives a function not found error. Also using FloatingTile1.setContentData() makes the floating tile go blank.

                  True, my experience was the same with both of those ones. I think you nailed it initially, actually. The moving of the x and y using .set() is the way to go, then create a panel to put the tile inside.

                  Another question, is there a way to increase the text size of the note numbers on the keyboard tile? It´s rediculously small now and no pixel size seems to change that if I change the font size in the json in the keyboard tile settings, even after an F5 refresh... any ideas?

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

                  47

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  102.1k

                  Posts