HISE Logo Forum
    • Categories
    • Register
    • Login

    Vertical slider to control delay time - how to set parameters?

    Scheduled Pinned Locked Moved General Questions
    14 Posts 5 Posters 763 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.
    • lalalandsynthL
      lalalandsynth @musictop
      last edited by

      @musictop How do you deal with it jumping in values when you switch between sync and unsynced ?

      https://lalalandaudio.com/

      https://lalalandsynth.com/

      https://www.facebook.com/lalalandsynth

      https://www.facebook.com/lalalandsynth

      musictopM 1 Reply Last reply Reply Quote 0
      • musictopM
        musictop @lalalandsynth
        last edited by

        @lalalandsynth i just live with it - until a solution is found! :)

        what bugs me is that LFO time/frequency is not loaded correctly on some user presets, it is not random, it happens to a specific one constantly and even resave does not help... can't figure out why!

        my website: https://musictop69.wixsite.com/ilirbajri
        https://musictop69.wixsite.com/creatools
        https://musictop69.wixsite.com/orchestools

        lalalandsynthL 2 Replies Last reply Reply Quote 1
        • lalalandsynthL
          lalalandsynth @musictop
          last edited by

          @musictop i see..lol.
          Not really acceptable on a released plugin.
          Guess i will have to choose either synced or not for my plugin.

          Do you know if its possible to script what parameters get saved in a preset ? If so i might have a solution.

          https://lalalandaudio.com/

          https://lalalandsynth.com/

          https://www.facebook.com/lalalandsynth

          https://www.facebook.com/lalalandsynth

          musictopM 1 Reply Last reply Reply Quote 0
          • musictopM
            musictop @lalalandsynth
            last edited by musictop

            @lalalandsynth i do not know. My knowledge of scripting is very basic.

            my website: https://musictop69.wixsite.com/ilirbajri
            https://musictop69.wixsite.com/creatools
            https://musictop69.wixsite.com/orchestools

            lalalandsynthL 1 Reply Last reply Reply Quote 1
            • lalalandsynthL
              lalalandsynth @musictop
              last edited by

              @musictop I guess this is a known problem then ? I have been fighting this all day ! :P

              https://lalalandaudio.com/

              https://lalalandsynth.com/

              https://www.facebook.com/lalalandsynth

              https://www.facebook.com/lalalandsynth

              1 Reply Last reply Reply Quote 0
              • lalalandsynthL
                lalalandsynth @musictop
                last edited by

                @musictop With the preset that is weird , is there a preset next to it with unsynced ?
                I have noticed that when you go from a sync preset to an unsynced preset . everything gets messed up .

                https://lalalandaudio.com/

                https://lalalandsynth.com/

                https://www.facebook.com/lalalandsynth

                https://www.facebook.com/lalalandsynth

                musictopM 2 Replies Last reply Reply Quote 0
                • musictopM
                  musictop @lalalandsynth
                  last edited by

                  @lalalandsynth Yes, i think so, ...and sometimes also when you reload/click the preset one more time the correct values are loaded from the preset.

                  my website: https://musictop69.wixsite.com/ilirbajri
                  https://musictop69.wixsite.com/creatools
                  https://musictop69.wixsite.com/orchestools

                  1 Reply Last reply Reply Quote 0
                  • musictopM
                    musictop @lalalandsynth
                    last edited by

                    @lalalandsynth noticed that when doubleckliking the preset in the library, or loading the same preset twice, the correct LFO values get loaded when you switch from synced LFO preset to nonsynced and vice versa...

                    my website: https://musictop69.wixsite.com/ilirbajri
                    https://musictop69.wixsite.com/creatools
                    https://musictop69.wixsite.com/orchestools

                    lalalandsynthL 1 Reply Last reply Reply Quote 0
                    • lalalandsynthL
                      lalalandsynth @musictop
                      last edited by

                      @musictop I think the solution for this is to have 4 sliders , 2 for synced and 2 for unsynced.

                      Try this.

                      Left and right delay times are named SyncSldr and UnSyncSldr.

                      const var Sync = Content.getComponent("Sync");
                      const var SyncSldr = Content.getComponent("SyncSldr");
                      const var UnSyncSldr = Content.getComponent("UnSyncSldr");
                      const var SyncSldr1 = Content.getComponent("SyncSldr1");
                      const var UnSyncSldr1 = Content.getComponent("UnSyncSldr1");
                      const var lftFeedback = Content.getComponent("lftFeedback");
                      const var RghtFeedback1 = Content.getComponent("RghtFeedback1");
                      const var delayMix = Content.getComponent("delayMix");
                      const var delOnOff = Content.getComponent("delOnOff");
                      
                      
                      
                      
                      
                      
                      
                      const var Delay1 = Synth.getEffect("Delay1");
                      
                      
                      
                      
                      
                      
                      inline function onSyncControl(component, value)
                      {
                      
                      	Delay1.setAttribute(Delay1.TempoSync,value);
                      	if(value)
                      	{
                              UnSyncSldr.showControl(false);
                              UnSyncSldr1.showControl(false);
                              SyncSldr.showControl(true);
                              SyncSldr1.showControl(true);
                              SyncSldr.changed();
                              SyncSldr1.changed();
                      
                      	}else{
                              UnSyncSldr.showControl(true);
                              UnSyncSldr1.showControl(true);
                              SyncSldr.showControl(false);
                              SyncSldr1.showControl(false);
                              UnSyncSldr.changed();
                              UnSyncSldr1.changed();
                      		
                      	}
                      
                      	
                      };
                      
                      Content.getComponent("Sync").setControlCallback(onSyncControl);
                      
                      
                      
                      
                      inline function onUnsyncSldrControl(component, value)
                      {
                      
                          if (Sync.getValue() == 0)
                          {
                      	   // Delay1.setAttribute(Delay1.DelayTimeLeft,value);
                      	    Delay1.setAttribute(Delay1.DelayTimeRight,value);
                          }
                      };
                      
                      Content.getComponent("UnSyncSldr").setControlCallback(onUnsyncSldrControl);
                      
                      
                      
                      inline function onUnsyncSldr1Control(component, value)
                      {
                      
                          if (Sync.getValue() == 0)
                          {
                      	    Delay1.setAttribute(Delay1.DelayTimeLeft,value);
                      	   // Delay1.setAttribute(Delay1.DelayTimeRight,value);
                          }
                      };
                      
                      Content.getComponent("UnSyncSldr1").setControlCallback(onUnsyncSldr1Control);
                      
                      
                      
                      
                      
                      
                      
                      inline function onSyncSldrControl(component, value)
                      {
                      	if (Sync.getValue() == 1)
                          {
                      	    //Delay1.setAttribute(Delay1.DelayTimeLeft,value);
                      	    Delay1.setAttribute(Delay1.DelayTimeRight,value);
                          }
                      };
                      
                      Content.getComponent("SyncSldr").setControlCallback(onSyncSldrControl);
                      
                      
                      inline function onSyncSldr1Control(component, value)
                      {
                      	if (Sync.getValue() == 1)
                          {
                      	    Delay1.setAttribute(Delay1.DelayTimeLeft,value);
                      	    //Delay1.setAttribute(Delay1.DelayTimeRight,value);
                          }
                      };
                      
                      Content.getComponent("SyncSldr1").setControlCallback(onSyncSldr1Control);
                      
                      
                      
                      inline function onlftFeedbackControl(component, value)
                      {
                      	Delay1.setAttribute(Delay1.FeedbackLeft, value);
                      };
                      
                      Content.getComponent("lftFeedback").setControlCallback(onlftFeedbackControl);
                      
                      
                      
                      
                      inline function onRghtFeedback1Control(component, value)
                      {
                      	Delay1.setAttribute(Delay1.FeedbackRight, value);
                      };
                      
                      Content.getComponent("RghtFeedback1").setControlCallback(onRghtFeedback1Control);
                      
                      
                      
                      
                      inline function ondelayMixControl(component, value)
                      {
                      	Delay1.setAttribute(Delay1.Mix, value);
                      };
                      
                      Content.getComponent("delayMix").setControlCallback(ondelayMixControl);
                      
                      
                      inline function ondelOnOffControl(component, value)
                      {
                      	Delay1.setBypassed(1- value );
                      };
                      
                      Content.getComponent("delOnOff").setControlCallback(ondelOnOffControl);
                      

                      https://lalalandaudio.com/

                      https://lalalandsynth.com/

                      https://www.facebook.com/lalalandsynth

                      https://www.facebook.com/lalalandsynth

                      musictopM 1 Reply Last reply Reply Quote 1
                      • musictopM
                        musictop @lalalandsynth
                        last edited by

                        @lalalandsynth cool, i will give it a try. Thnx!

                        my website: https://musictop69.wixsite.com/ilirbajri
                        https://musictop69.wixsite.com/creatools
                        https://musictop69.wixsite.com/orchestools

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

                        19

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        103.2k

                        Posts