Home › Forums › General › Using Ctrlr › Dial with 0 value in middle?
- This topic has 12 replies, 5 voices, and was last updated 12 years, 12 months ago by omutumo.
-
AuthorPosts
-
April 29, 2011 at 2:49 pm #340
Is there currently a way to have a dial who’s zero value is "in the middle" (like a pan dial for example), and when deviating to either right or left, then the rotary fill color is applied? Hope that makes sense…
April 29, 2011 at 2:52 pm #2658yeah i wrote about it (have a look at the changelog)
[code:2sjkrpc3]
[DONE]: Added an Expression evaluator for quick handling of component value->midi value mapping (useful for negative numbers and stuff)
3 variables can be used "modulatorValue" "modulatorMax" "vstIndex", ex: "modulatorValue + 127" will send values 0-255 if
the component has minimu at -127 and maximum at 127
[/code:2sjkrpc3]April 29, 2011 at 3:32 pm #2659Great, thanks – but I’m not sure if this does what I want it to do for the UI of the dial. My dial is sending NRPN values, from -24 to 24. Works fine (I think, haven’t tested it with my hardware yet), with range set to min of -24, max to 24. But I want the UI to show no "rotary fill" color when the dial is vertical (at a value of 0), but to show the fill color as the dial is moving right or left. Does the approach you mention above allow me to do that?
May 10, 2011 at 2:53 pm #2662I’m also interested in this. Just for basics like panning sliders. Quite confusing when you pan from 0-127.
May 10, 2011 at 3:02 pm #2663For a "-64/+63" slider set minimum value to "0" and maximum value to "127". Then type directly behind modulatorValue "+64" and type directly behind midiValue "-64". If I remember it right it should work.
Or just take an uiFixedSlider (that’s what I prefer). It seems to be a lot of work to type every value seperatly – but then you can copy/paste and do some other funny discription things (e.g. for an EQ the Hz and dB values, or the semitones of the osc frequence).May 10, 2011 at 4:08 pm #2664Please excuse my ignorance, but where exactly do you type these figures? I’ve tried entering them before/after modulatorValue and midiValue in the boxes at the top of the edit modulator window. but can’t get it to work. I keep getting ‘Syntax Error’, whatever that means.
Also how do the fixed sliders differ to regular sliders? I can’t see any difference in the edit options or visual apperance.
I have very little knowledge of programming so a lot of this is very hard to understand, sorry! It’s taken me weeks to get a working panel
May 10, 2011 at 4:39 pm #2665you should have it like the following :
modulatorValue+64
midiValue-64
I believe the difference with Fixed slider is that the slider has Fixed values based on what you enter for it’s values, say 1,2,3,4 instead of range of values. This is something I’m pulling out of the air here, don’t quote me as fact on this.
May 10, 2011 at 5:10 pm #2661yeah well fixed means it’s fixed
you can assign any arbitary number of values and displayed labels like
Cat = 0
Mouse = 23
Dog = 44
Mother = 127
Father = 1
Incest = 13with normal sliders the value range is linear with a step of 1 from minimum to maximum value.
May 10, 2011 at 5:23 pm #2669Thanks, I’ve got the fixed sliders thing sorted now. Seems blindingly obvious now I know ” title=”Smile” />
Nice choice of labels btw!
May 10, 2011 at 7:30 pm #2668Thanks for the further feedback. I’m aware of the fixed sliders, and have them working well, but they still don’t meet the need of what I’m trying to accomplish. I’ve since found what I think is the "official" name of what I’m looking for – a bipolar knob. Here’s a movie of what I’m after (sorry about the resolution, not sure what happened):
http://www.youtube.com/watch?v=teaWGEJQ6v4
Is there a way to do this with non-custom graphics components within ctrlr?
May 10, 2011 at 8:37 pm #2667well like someone wrote, add a normal slider give it a minimum of -63 and a maximum of 127 and set the two expressions in the modulator properties like someone wrote above, that’s it it will work.
May 10, 2011 at 8:39 pm #2666But a slider with values from -64 to +63 is a bipolar knob. Or do want just this graphic stuff? Then knobman is an great app.
If it’s ok when there are no graphics, try to type the wanted value range in the values of an FixedSlider OR take an normal Slider and do what is written above.minimum value: 0
maximum value: 127
modulatorValue +64
midiValue -64edit: too late
May 11, 2011 at 12:33 pm #2660Thanks guys. However I want both to send the -XX to +XX values, but I *also* want the graphical representation as in the little movie above. As I mentioned early on in the thread, I have no problem getting the correct values sent over MIDI and displayed in Ctrlr, but I cannot seem to get the graphical stuff right (when just using the built in sliders). I know I can use Knobman to create the custom graphics with an image slider, but the rest of my panel just has built in components so was looking to use those…
Using the directions you each gave above, the graphical representation is still not like in the movie.
-
AuthorPosts
- The forum ‘Using Ctrlr’ is closed to new topics and replies.