Dial with 0 value in middle?

Home Forums General Using Ctrlr Dial with 0 value in middle?

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #340
    dnigrin
    Participant
      • Topics: 9
      • Replies: 57
      • Total: 66

      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…

      #2658
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★

        yeah 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]

        #2659
        dnigrin
        Participant
          • Topics: 9
          • Replies: 57
          • Total: 66

          Great, 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?

          #2662
          omutumo
          Participant
            • Topics: 3
            • Replies: 4
            • Total: 7

            I’m also interested in this. Just for basics like panning sliders. Quite confusing when you pan from 0-127.

            #2663
            minimalist
            Participant
              • Topics: 10
              • Replies: 141
              • Total: 151
              • ★★

              For 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).

              #2664
              omutumo
              Participant
                • Topics: 3
                • Replies: 4
                • Total: 7

                Please 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 :/

                #2665
                Filch
                Participant
                  • Topics: 22
                  • Replies: 173
                  • Total: 195
                  • ★★

                  you 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.

                  #2661
                  atom
                  Keymaster
                    • Topics: 159
                    • Replies: 2945
                    • Total: 3104
                    • ★★★★★

                    yeah 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 = 13

                    with normal sliders the value range is linear with a step of 1 from minimum to maximum value.

                    #2669
                    omutumo
                    Participant
                      • Topics: 3
                      • Replies: 4
                      • Total: 7

                      Thanks, I’ve got the fixed sliders thing sorted now. Seems blindingly obvious now I know <img decoding=” title=”Smile” />

                      Nice choice of labels btw!

                      #2668
                      dnigrin
                      Participant
                        • Topics: 9
                        • Replies: 57
                        • Total: 66

                        Thanks 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?

                        #2667
                        atom
                        Keymaster
                          • Topics: 159
                          • Replies: 2945
                          • Total: 3104
                          • ★★★★★

                          well 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.

                          #2666
                          minimalist
                          Participant
                            • Topics: 10
                            • Replies: 141
                            • Total: 151
                            • ★★

                            But 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 -64

                            edit: too late

                            #2660
                            dnigrin
                            Participant
                              • Topics: 9
                              • Replies: 57
                              • Total: 66

                              Thanks 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.

                            Viewing 13 posts - 1 through 13 (of 13 total)
                            • The forum ‘Using Ctrlr’ is closed to new topics and replies.
                            There is currently 0 users and 73 guests online
                            No users are currently active
                            Forum Statistics
                            Threads: 2,495, Posts: 17,374, Members: 77,605
                            Most users ever online was 12 on January 22, 2019 3:47 pm
                            Ctrlr