HISE Logo Forum
    • Categories
    • Register
    • Login

    Switch between LAF sliders?

    Scheduled Pinned Locked Moved Scripting
    3 Posts 2 Posters 141 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.
    • P
      paper_lung
      last edited by

      Hi all, I'm wondering if it's possible to switch between 2 different LAF knobs using a button? I've tried it but it's not working how I'd expect, so maybe I'm doing something wrong. For example:

      inline function onsyncControl(component, value)
      {
      	// tempo sync
      
      	if (value == 1)
      {
      	delaytime.setLocalLookAndFeel(LAF_RateKnob);
      
      	}
      	
      	else 
      	
      	{
      		
      	delaytime.setLocalLookAndFeel(LAF_StandardKnob);
      	
      	}
      };
      
      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @paper_lung
        last edited by

        @paper_lung no, you can't reassign laf. Use an if statement in your laf or use two knobs

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

        P 1 Reply Last reply Reply Quote 0
        • P
          paper_lung @d.healey
          last edited by

          @d-healey will do in that case, thanks!

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

          31

          Online

          1.7k

          Users

          11.7k

          Topics

          101.9k

          Posts