HISE Logo Forum
    • Categories
    • Register
    • Login

    Update Function after DAW restore

    Scheduled Pinned Locked Moved Solved General Questions
    3 Posts 2 Posters 229 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.
    • bendursoB
      bendurso
      last edited by

      I have a function to auto colour the keyboard. It works ok after changing samplemap (with a LoadingCallback) and when you change a preset too (with a UserPresetHandler PostCallback).

      I also called the function on init.

      Everything works ok. But when I restore a DAW project with the plugin, the colours go back to the default preset. All other preset parameters are restored correctly.

      It's like it's not updating the function after DAW restore, or for some reason it shows the colors of the default preset.

      1 Reply Last reply Reply Quote 0
      • bendursoB
        bendurso
        last edited by

        @bendurso said in Update Function after DAW restore:

        (with a UserPresetHandler PostCallback).

        ohh wait, my bad. I thought I was calling the function in PostCallback of UserPresetHandler, but I wasn't. That was the fix :)

        clevername27C 1 Reply Last reply Reply Quote 0
        • bendursoB bendurso marked this topic as a question on
        • bendursoB bendurso has marked this topic as solved on
        • clevername27C
          clevername27 @bendurso
          last edited by

          @bendurso Remember not to use a callback to know when a SampleMap has finished loading — use a Broadcaster.

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

          17

          Online

          1.7k

          Users

          11.9k

          Topics

          103.6k

          Posts