setronic
Synthedit regular

Posts: 293
Posts: 293
|
Post by setronic on Feb 12, 2014 8:31:34 GMT 1
figured this out last night - now i know why the floatscaler has an 'add' pin ;-) everyone probably knows this already..(i don't know much about maths: what's this 'function' called?) (hey, this is why i love SynthEdit) i chucked some other float etc. sems in there for further experimentation (DH/DD/KDL) float invert and range limit prefab << link
|
|
max
New Member
Posts: 12
Posts: 12
|
Post by max on Feb 12, 2014 19:50:58 GMT 1
When I type in a value in the text box it's not limited. Why? The prefab says 'Limited range', but I can enter any value.
|
|
setronic
Synthedit regular

Posts: 293
Posts: 293
|
Post by setronic on Feb 12, 2014 20:44:21 GMT 1
ah it's really for the knob value display. should make it read-only to avoid confusion. a readout/input text would go with txt to float to the scaler input. float in x maximum value x -1 + offset it was a rate control i had that was operating fast to slow, so this was to reverse it, slow>fast. the range limit values are only examples. use add as the low limit, with float in x max.value x-1 but that's how you're supposed to do it, right ? it's like the velocity prefa.. No!>> ah! i wanted to find the solution to how to replace that level adjust for a *long* time. 
|
|
max
New Member
Posts: 12
Posts: 12
|
Post by max on Feb 12, 2014 21:12:34 GMT 1
I want to use a text box and I don't want the value to be able to jump over or below certain threshold.
|
|
setronic
Synthedit regular

Posts: 293
Posts: 293
|
Post by setronic on Feb 12, 2014 21:47:59 GMT 1
nb: if input is always 0 to 1.
i tried it with pots on the multiply and add to find out how to do it, then took them out, quicker than typing via text to float.
why limiter?
text to float+float limiter > more modules/module count just input your values in properties and lock the container?
look in the spare parts container, more toys in there.
summary:
(input is always 0 to 1 range)
input x (max.value x -1)+ max value = 'invert'
input + min.value x (max.value x -1) = range bounds/limits
|
|
max
New Member
Posts: 12
Posts: 12
|
Post by max on Feb 12, 2014 22:16:22 GMT 1
why limiter? Because I don't want the value to be able to jump over or below certain threshold. just input your values in properties and lock the container? This doesn't work.
|
|
setronic
Synthedit regular

Posts: 293
Posts: 293
|
Post by setronic on Feb 13, 2014 7:06:35 GMT 1
on the floatscaler? yeah, it does here.. this is just a demonstration of the principle above. you can just containerize the floatscaler or something and use it like that. i hadn't envisaged more at this stage. i'll have a look at it now. edit: ah yes, interesting: of course, the knob *always* wants to do 0 to 1 values. and can go out of the range: i had it showing a minus value just now. ? to be cont'd... >>question: - i'm unclear about this, actually: GUIFloat, what values can it have? i've added SL fixed GUIFloat, but that wouldn't let me enter a value while attached to the rest. here's a revision, just did a few things. see if you can find a way to stop 'illegal' input values from text: FloatScaler Invert and Range Limit 2 Feb2014.zipit is containerized now, with extra floatscalers to define x & + inputs, and knobs for this, with display, etc. 
|
|
max
New Member
Posts: 12
Posts: 12
|
Post by max on Feb 13, 2014 14:26:43 GMT 1
Tried it and still if I type a value over the knob range it's not reset.
|
|
setronic
Synthedit regular

Posts: 293
Posts: 293
|
Post by setronic on Feb 13, 2014 18:24:39 GMT 1
i know..sorry gotta paint a house exterior at the moment..  i don't know what the answer to that is yet, as it wasn't the original aim of the prefab, which was to demo that floatscaling. are we talking about limiting text, or find a way of excluding illegal value entries? it another issue, i'd be happy to find out about it. if you don't try text entry it operates within its range, i think. that isn't something i've been using on GUIs tbh. knobs for 'x' & '+' to set max and min reset to values specified. then the main knob operates with the range if you don't chuck some wrong value in via text.
|
|
setronic
Synthedit regular

Posts: 293
Posts: 293
|
Post by setronic on Feb 15, 2014 11:41:48 GMT 1
max, you'll find a practical application for the floatscale inverter in the 'parts' container in the prefab linked on this thread here: syntheditforum.boards.net/thread/84/project-bools-start-length-displaythe prefab has quite a few bit and pieces in it, including the boolsclock>RHstepcounter, which features a tempo/rate knob i had to invert - so that is how the floatscale thing emerged! ;-) (and i'm quite pleased with it hehe)
|
|