HISE Logo Forum
    • Categories
    • Register
    • Login

    1 on/of button controlling 2 effects

    Scheduled Pinned Locked Moved Scripting
    11 Posts 4 Posters 218 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.
    • T
      tiesvdam
      last edited by

      I want the on/off button to disable the 'RC20' effect I’ve created, as well as the vinylON effect. This is to ensure that the vinylON effect cannot play unless the 'RC20' effect is active. I’ve asked our good friend David Healey about this before, and I heard there’s a workaround due to a bug. However, I don’t understand how to implement it. Can someone help me? See the attachments for what I’ve tried to connect and an image of the effect.

      inline function onVintageControl(component, value)
      {
      	ButtonVintageON.setAttribute(ButtonVintageON.Bypass);
      	VinylON.setValue(Bypass);
      };
      
      Content.getComponent("VinylON").setControlCallback(onVintageControl);
      

      Scherm­afbeelding 2025-01-22 om 11.12.21.png

      T Oli UllmannO 2 Replies Last reply Reply Quote 0
      • T
        treynterrio @tiesvdam
        last edited by

        @tiesvdam use setValue(0); when the effect should be bypassed and setValue(1); when it should be active

        1 Reply Last reply Reply Quote 0
        • Oli UllmannO
          Oli Ullmann @tiesvdam
          last edited by

          @tiesvdam
          I don't really understand what you want to do, but if you want to control two effects with one button, you can do it this way. You could also script the values of the buttons (setValue), but you don't have to if you put them in a RadioGroup like in my snippet. If you do want to script them, don't forget to use the changed() function after setting the value.

          Also set the buttons to “save in preset”.

          Here is the snippet:

          HiseSnippet 1048.3oc0V0yaabCFlmrYZN0OPMPGxTwAiNHWDXHYIGqffBoZIqTiFaKX45joFPwixhv2QdfGOmpT3w9iHa8uQ25Zm6XG6T15+f1Wd7juS1xtJBsEnZvvu78qG9vG9xquRRYwwRExo7IShXHmO.OXhPOtyXBWf1uKx4A3iDLucSzZovS+JoGazHFUGi1cRDINl4ibbV4olncbWEk96OZsKIfHnr7kPnSkbJ6Y7PtNe09s+ZdPPOhO6DdXgnazdepTzQFHS.jsBtJJhPOmbF6PhIrRXzWQ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q+xDsLzN8FgNn+doOI63rmf.p7z6gn+BGfWmK.
          

          All the best
          Oli

          T 1 Reply Last reply Reply Quote 0
          • T
            tiesvdam @Oli Ullmann
            last edited by

            @Oli-Ullmann Okay thanks! thats look like something i can use. 1 of the effects is maked true a LFO can i adjust the code to Synth.getLFO? of is it not working then?

            const RC20 = Synth.getLFO("RC20");
            const Vinyl = Synth.getEffect("Vinyl Crack");
            
            //knob connect
            inline function onVintageControl(component, value)
            {
            	if(value)
            	{
            		RC20.setBypassed(false);
            		Vinyl.setBypassed(false);
            	}
            	else
            	{
            		RC20.setBypassed(true);
            		Vinyl.setBypassed(true);
            	}
            };
            
            Content.getComp
            
            Oli UllmannO MorphoiceM 2 Replies Last reply Reply Quote 0
            • Oli UllmannO
              Oli Ullmann @tiesvdam
              last edited by

              @tiesvdam
              With this command you get the reference to a LFO:

              const LFOModulator1 = Synth.getModulator("LFO Modulator1");
              

              All the best
              Oli

              T 1 Reply Last reply Reply Quote 0
              • T
                tiesvdam @Oli Ullmann
                last edited by

                @Oli-Ullmann Legend! it worked. Struggled days with this

                Oli UllmannO 1 Reply Last reply Reply Quote 0
                • Oli UllmannO
                  Oli Ullmann @tiesvdam
                  last edited by

                  @tiesvdam
                  I'm happy to hear, that it worked! :-)

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

                    @tiesvdam Came across your thread. Curious how you facilitated the RC-20 effects. Would you care to share some details on your dsp? I've been trying something myself years ago but failed miserably. Especially the peculiar saturation curve RC-20 offers.

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

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      tiesvdam @Morphoice
                      last edited by

                      @Morphoice
                      Hi, the effect I call RC20 is a very simple LFO. I still want to expand it using ScriptFX, but I'll keep 2 buttons: one for the effect amount and one for vinyl crackle. Other than that, it's not very exciting, but connecting the buttons was quite a challenge.

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

                        @tiesvdam ah so it's basically a wow and flutter

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

                        T 1 Reply Last reply Reply Quote 0
                        • T
                          tiesvdam @Morphoice
                          last edited by

                          @Morphoice Yeah

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

                          14

                          Online

                          1.7k

                          Users

                          11.8k

                          Topics

                          102.6k

                          Posts