HISE Logo Forum
    • Categories
    • Register
    • Login

    script compinling OK but not working

    Scheduled Pinned Locked Moved Scripting
    6 Posts 3 Posters 296 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.
    • virtuscapeaudioV
      virtuscapeaudio
      last edited by

      Hello devs!

      does this script look correct? if it is, then the button I have for mulitple fx bypass is not working...

      // Vibe Enable

      const var Vibe = Synth.getModulator("Vibe");
      const var LFOModulator2VIBE = Synth.getModulator("LFOModulator2VIBE");
      const var PhaseFX2 = Synth.getEffect("Phase FX2");

      const var btnVibeEnable = Content.getComponent("btnVibeEnable");

      inline function onbtnVibeEnableControl(component, value)
      {
      Vibe.setBypassed(1-value);
      LFOModulator2VIBE.setBypassed(1-value);
      PhaseFX2.setBypassed(1-value);
      };

      Content.getComponent("btnVibeEnable").setControlCallback(onbtnVibeEnable);

      d.healeyD ulrikU 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @virtuscapeaudio
        last edited by

        @virtuscapeaudio The code looks ok. Have you also assigned the button to a processor/parameter ID in the property editor?

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

        virtuscapeaudioV 1 Reply Last reply Reply Quote 0
        • virtuscapeaudioV
          virtuscapeaudio @d.healey
          last edited by

          @d-healey I removed JSON properties when I used the script

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @virtuscapeaudio
            last edited by

            @virtuscapeaudio Does your callback get triggered when you click the button?

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

            1 Reply Last reply Reply Quote 0
            • ulrikU
              ulrik @virtuscapeaudio
              last edited by

              @virtuscapeaudio there is a misspelling in you code

              inline function onbtnVibeEnableControl(component, value)
              { 
              Vibe.setBypassed(1-value);
              LFOModulator2VIBE.setBypassed(1-value);
              PhaseFX2.setBypassed(1-value); 
              };
              
              Content.getComponent("btnVibeEnable").setControlCallback(onbtnVibeEnable);
              
              //    this line, the function name is onbtnVibeEnableControl, the "Control" is missing
              //    Content.getComponent("btnVibeEnable").setControlCallback(onbtnVibeEnable);
              

              Hise Develop branch
              MacOs 15.3.1, Xcode 16.2
              http://musikboden.se

              virtuscapeaudioV 1 Reply Last reply Reply Quote 1
              • virtuscapeaudioV
                virtuscapeaudio @ulrik
                last edited by

                @ulrik Brilliant!! Solved and thanks so much!!

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

                13

                Online

                1.7k

                Users

                11.8k

                Topics

                103.2k

                Posts