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

  • I'm trying to use a vertical slider to control the L / R delay times of the delay, and I can't get it to work smoothly, either in tempo sync mode or not.

    Tempo unsync'd: the sliders work, but are heavily weighted to > 1000ms, meaning, the first 5% of the slider controls from 0ms - 1000ms, and the other 95% of the slider controls 1000ms-20000ms.

    Tempo sync'd: the sliders don't really work... they just move between 1/1 and 1/2D.

    1. is there a way to make a single slider that will work in both sync'd and unsync'd mode?

    2. if so, how? if not, I really only care about sync'd; how should I set the parameters?

    Thank you!

  • @tk_tmm if the center value is not good for you, you can adjust it in the property editor

    Now for the sync, you need either a second hidden slider or to change dynamically the properties of this one
    The tempo sync values are going from 0 to 18 with a linear setting and stepSize set to 1

  • @tk_tmm said in Vertical slider to control delay time - how to set parameters?:

    Tempo unsync'd: the sliders work, but are heavily weighted to > 1000ms, meaning, the first 5% of the slider controls from 0ms - 1000ms, and the other 95% of the slider controls 1000ms-20000ms.

    Sounds to me like you want to look under the sliders Component Specific Property and set your middlePosition to 10000 and then under suffix put ms. This will set the middle position of the slider (straight up) to 10000 ms.

    If you're only interested in synched, under Component Specific Properties set the min to 1 and the max to 18. Set mode to TempoSynch. Set the step size to 1, and middle position to 9.

  • This is how i setup LFO for my projects.


    Time/Tempo slider change modes according to Sync button. For the frequency mode you can set the mid point of the slider with the value set in this line

    LFO1FREQ.set("middlePosition", 5);

    found this solution by searching posts on the forum!

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

  • @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!

  • @musictop i
    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.

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

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

  • @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 .

  • @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.

  • @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...

  • @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)
    inline function onUnsyncSldrControl(component, value)
        if (Sync.getValue() == 0)
    	   // Delay1.setAttribute(Delay1.DelayTimeLeft,value);
    inline function onUnsyncSldr1Control(component, value)
        if (Sync.getValue() == 0)
    	   // Delay1.setAttribute(Delay1.DelayTimeRight,value);
    inline function onSyncSldrControl(component, value)
    	if (Sync.getValue() == 1)
    inline function onSyncSldr1Control(component, value)
    	if (Sync.getValue() == 1)
    inline function onlftFeedbackControl(component, value)
    	Delay1.setAttribute(Delay1.FeedbackLeft, value);
    inline function onRghtFeedback1Control(component, value)
    	Delay1.setAttribute(Delay1.FeedbackRight, value);
    inline function ondelayMixControl(component, value)
    	Delay1.setAttribute(Delay1.Mix, value);
    inline function ondelOnOffControl(component, value)
    	Delay1.setBypassed(1- value );

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

Log in to reply