HISE Logo Forum
    • Categories
    • Register
    • Login

    Getting the processor ID in a control callback

    Scheduled Pinned Locked Moved Scripting
    1 Posts 1 Posters 380 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.
    • d.healeyD
      d.healey
      last edited by d.healey

      This isn't working

          inline function myControlCallback(component, value)
          {
              local id = component.get("processorId");
              local processor = Synth.getChildSynth(id);  
          }
      

      In this case the processor is a container, I can Console.print the id variable just fine but I get a was not found message when trying to pull in the childSynth.

      Edit: Ooops, this might be a false alarm, I think I have possibly not set the processor id for all the controls... I shall check now :)
      Edit 2: Yes I was being dumb :p I'll leave this here as guidance to others

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

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

      41

      Online

      1.7k

      Users

      11.7k

      Topics

      101.9k

      Posts