HISE Logo Forum
    • Categories
    • Register
    • Login

    Initialise automatic keyboard colouring

    Scheduled Pinned Locked Moved Scripting
    6 Posts 3 Posters 316 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.
    • B
      bfaudio
      last edited by bfaudio

      Hi All,

      Pardon me if someone has asked this before, I searched and couldn't see.

      Followed @d-healey's video to automatically colour my keyboard which is working great, however when I'm using the exported instrument, the keyboard doesn't colour in until I change a sample map, even though the plugin instantiates with samples loaded and makes sound.

      Is there a way to have the plugin run this check and colour in when instantiating?

      Thanks,

      Chris.

      B 1 Reply Last reply Reply Quote 0
      • B
        bfaudio @bfaudio
        last edited by

        @bfaudio Anybody?
        To give more info, I followed the autocolor keyboard video and its worked great on my previous instrument, which was simpler and had no SampleMap menu, just a single set.
        This instrument has 6 different maps, with 2 menus to access these, and a preset browser.
        The samples load straight away, but the keyboard doesn't colour.
        If I change to a different preset, it colours.
        Is there anyway to get this to colour when the plugin is instantiated?
        Has anyone else had this?

        Thanks

        Chris

        ulrikU LindonL 2 Replies Last reply Reply Quote 0
        • ulrikU
          ulrik @bfaudio
          last edited by

          @bfaudio is your "PaintKeyboard" an independent function you could just call it on init delayed with a timer maybe?

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

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

            @bfaudio so guessing what is happening is on first load your "keyboard colouring" is happening before the samples are loaded, so no sample data = no colouring.

            Try running your keyboard colouring code in the post-sample load callback.

            HISE Development for hire.
            www.channelrobot.com

            1 Reply Last reply Reply Quote 1
            • B
              bfaudio @ulrik
              last edited by

              @ulrik maybe... I haven't played with timers yet.

              1 Reply Last reply Reply Quote 0
              • B
                bfaudio
                last edited by

                Solved.

                Simply copied 'setKeyColour();' out of the 'inline function' keyboard part of the script and put it on its own line.

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

                12

                Online

                1.7k

                Users

                11.8k

                Topics

                102.7k

                Posts