How to mark a readout box in the gui to type in Value?
Archive · 200812 old posts
From the original SynthMaker forum (2004–2014), with its members’ names and dates.
Vegetal ·
Me and a friend is currently working on a additive synth with 16 harmonics the problem we have now is that we want to be able to highlight the readout window and input a value from the keyboard which then adjust the knob to corrct value.
Anyone that has managed to do something similar in SM? Is possible to achieve?
oddson ·
Two levels into a knob or slider control you should find the interaction module. Just hook up an external input as above and you get remote control.
Then hook an edit box to that...
Vegetal ·
Thanks man, appreciate the help 🙂
ChrisHooker ·
I need to do this also, but I was hoping to use an animated knob, and when I tried the above suggestion, I see that there is no "Set" input on the Knob module. I found the wireless receiver for "send" (within the Control module of the knob) and connected the edit box to that point with a Float Switch (uses last changed input). (Attached is a schematic)
All it does is make the knob disappear, sets its value to full, and it won't update any green data downstream from the knob, until you click on the knob.
Has anyone successfully accomplished this? ..And could provide a schematic?
Thanks,
Chris.
infuzion ·
Connect a Float Label to the output of the knob's MinMax.
ChrisHooker ·
There's already a Float Label connected. It may be outside the module, but it's reading the same thing.
...But how would that help, anyway?
oddson ·
Hey Chris...
The problem is that the above suggestion assumes you're feeding back a normalized value (i.e. in the range [0,1]).
If you feed it 3 and there are say 64 animated cells for the knob it goes looking for the 192nd cell... which doesn't exist and so the image disappears.
So you have to rescale with an inverse function of the scaling that takes place in the knob's MinMax module.
oddson ·
Looking into it further you've altered the knob significantly already in a manner different that the suggestion I made above. It seems you've threaded your external input into the guts of the control.
I'm not really keen on diagnosing what you were trying to do... I think it would be easier to start over.
oddson ·
There's also a difference between this knob and the one above in that the preset is handled slightly differently.
Here's what I think you're looking for (but you'll have to alter the properties again still as I did start over):
ChrisHooker ·
Thanks, Oddson. Much appreciated. You probably know this already, but I didn't realize that the knob was scaled by the min/max, and that those weren't the actual values. I got it working using my first version, with the edit box's value scaled. ...Then I saw your version.
What you did was really interesting, and while it isn't as deep in the module hierarchy as mine, it did use the Preset module's wireless "Set" value to tie into the exact same point as I did. (I haven't exactly figured out how the preset stuff works, so I didn't want to mess with it, but if you say it'll work, I'll take it!) I really like the math you used to get the edit box's value to be usable when in the range of the knob's min/max. I never would have thought of it that way.
Thanks again!!
ChrisHooker ·
Here's a module of the finished knob that can accept numerical input... I've also added a Float Min and Float Max to prevent the user-input from causing display errors. (So if the knob max is 10, and you input 20... the knob just goes to 10, and won't disappear.)
Hope it's useful.
-Chris.
XoechZ ·
Hello!
I needed this type of control for a current project. So I decided to implement this technique to the stock knobs and sliders. Maybe it´s helpful for someone.
Greetings,
XoechZ
Wrote something here? To have a post removed or your name hidden, write to [email protected].