Page 1 of 1
Knobs Reset on Project Load
Posted: Wed Jan 22, 2014 12:16 am
by Perfect Human Interface
I have a problem in my current project where some of the knobs reset after a project is saved and reloaded. I know why it's doing this but I'm asking for any ideas how I might be able to work around it.
Here's what's going on. My knobs have a function where they can have their values set via an external input. Most knobs in this project can be linked to an LFO via this module:

- KnobSet1.PNG (24.3 KiB) Viewed 17079 times
The topmost value of the selector is empty; that's the "no LFO" setting.
Now, some of my knobs are bipolar, meaning their default value is at 0.5. Those knobs use this:

- KnobSet2.PNG (26.44 KiB) Viewed 17079 times
Notice the value at the top connector. That's so that the "no LFO" setting resets it to the proper default setting rather than full left.
So what seems to be happening is that when the project is loaded, that 0.5 value is being sent to the knob, defaulting it, whereas when nothing is connected there, the knobs stay set to their previous values.
I haven't a clue how to work around this right now so if anyone has any ideas please let me know.

Thanks.
Re: Knobs Reset on Project Load
Posted: Wed Jan 22, 2014 2:43 am
by Frad
I'm relatively new at this...
But here's an idea:
pass your 0.5f through a Sample & Hold module before sending it to your Selector, and for the trigger use the AfterLoad module...
this is untested and dont have enough time as of now to test this
Re: Knobs Reset on Project Load
Posted: Thu Jan 23, 2014 2:06 am
by nix
If it's going to be for a VST,
you will have to make it behave with a preset parameter.
But if it's just going to be loaded in FS,
since the one with the blank in works,
u could use a second selector before the lfo one on the .5 .
leave the first connector blank,
and trigger it to move to the .5 if 'no LFO' is input by u after load.
You can return it to blank with the 'close' primitive.
Re: Knobs Reset on Project Load
Posted: Thu Jan 23, 2014 2:19 am
by nix
Welcome Frad!
Hope u like our hang-out 8D
edit- i'm not sure if my thought works-
because it will read zero on close and send that value maybe
Re: Knobs Reset on Project Load
Posted: Thu Jan 23, 2014 6:33 am
by Perfect Human Interface
Stared at this for hours. Gave up. The LFO's are just going to feed the "off" value. It's not possible like this.
Re: Knobs Reset on Project Load
Posted: Thu Jan 23, 2014 12:13 pm
by Nubeat7
send a trigger (with boolt to trigger) if selector is set to no lfo to a sample and hold with the value 0.5 into a last primitive before the set-in of the knob, like this 0.5 is only triggered when you set the lfo to off, else it is always the last setting value
if i understood your problem right
Re: Knobs Reset on Project Load
Posted: Thu Jan 23, 2014 2:04 pm
by Perfect Human Interface
Nubeat7 wrote:Bool to trigger > Sample and Hold > Last Switch
Oh that's good... How did you come up with that?
Re: Knobs Reset on Project Load
Posted: Thu Jan 23, 2014 3:32 pm
by Nubeat7
you also could get rid of the s&h and feed a fix value into the last and trigger it when needed, the best place for external setting knobvalues is in the presetmanager before the preset parameter prim so also the output is updated (and not only the knob drawing) , here is an example look for the "external value settings" module inside the preset module
Re: Knobs Reset on Project Load
Posted: Fri Jan 31, 2014 6:01 pm
by Perfect Human Interface
Nubeat7 wrote:you also could get rid of the s&h and feed a fix value into the last and trigger it when needed
Yes that works fine as well. Thank you very much. I wish you had showed up before I spent that entire day pulling my hair out over this though.

I swore I had tried everything.