HISE Logo Forum
    • Categories
    • Register
    • Login

    Can I manually trigger a Callback function?

    Scheduled Pinned Locked Moved Scripting
    44 Posts 5 Posters 1.1k 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.
    • MorphoiceM
      Morphoice @d.healey
      last edited by

      @d-healey I'm glad I'm not the only benefiting away from from the mess I caused. Unless you want all buttons off radio groups seem to be fine to use.

      https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

      1 Reply Last reply Reply Quote 0
      • MorphoiceM
        Morphoice @Lindon
        last edited by

        @Lindon aye! the playing never worked on the button press though. only ever on the preset load. I'll have to revisit the way I fired the note

        https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

        1 Reply Last reply Reply Quote 0
        • MorphoiceM
          Morphoice @Lindon
          last edited by

          @Lindon this was the way I did it before

             		Bass.asSampler().loadSampleMap(bassMaps[bassProms.indexOf(control)]);
             		Bass.setLoadingCallback(Synth.playNote(36,127));
          

          and that only seems to fire on preset loading, not on the actual button use

          https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

          1 Reply Last reply Reply Quote 0
          • clevername27C
            clevername27 @Morphoice
            last edited by

            @Morphoice You can…

            1. Call it by function name (pass in the component as the first argument).

            2. If you want the callback after a component value change, call onChanged(). Except if it's during onInit. That won't work.

            3. Register the callback for use with a broadcaster. Then, trigger the broadcaster manually.

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

            20

            Online

            1.8k

            Users

            11.9k

            Topics

            103.9k

            Posts