Forum
    • Categories
    • Register
    • Login

    Is it possible to add parameters to a Control Callback?

    Scheduled Pinned Locked Moved Scripting
    4 Posts 2 Posters 126 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.
    • VirtualVirginV
      VirtualVirgin
      last edited by VirtualVirgin

      So a control callback normally has (component, value) for input parameters.
      Can I add parameters to pass more into the control callback? e.g.:

      inline function onMatrixLabelControl(component, value, labelPanelArray, panelArray, clickPanelArray)
      

      I'm trying to pass some arrays to the control callback without having to use const variables in the main script.

      You can listen to my orchestral mockups here:
      https://www.virtualvirgin.net/
      I have a Git repo here:
      https://github.com/craig-van-hise

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @VirtualVirgin
        last edited by

        @VirtualVirgin no, it only takes the two

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        VirtualVirginV 1 Reply Last reply Reply Quote 1
        • VirtualVirginV
          VirtualVirgin @David Healey
          last edited by

          @d-healey Thanks! I'll stop messing with it then. I wasn't getting any results from trying it out.

          You can listen to my orchestral mockups here:
          https://www.virtualvirgin.net/
          I have a Git repo here:
          https://github.com/craig-van-hise

          David HealeyD 1 Reply Last reply Reply Quote 0
          • David HealeyD
            David Healey @VirtualVirgin
            last edited by

            @VirtualVirgin a broadcaster might be more suitable, check out the latest video on Patreon if you haven't already

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

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

            33

            Online

            2.1k

            Users

            13.0k

            Topics

            113.0k

            Posts