[Solved] values 2-127 to read "50-300"

Home Forums General Programming [Solved] values 2-127 to read "50-300"

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #675
    msepsis
    Participant
      • Topics: 219
      • Replies: 732
      • Total: 951
      • ★★★

      I have a tempo knob who’s range is 1-127. NOT 00-127. Value 1=external sync, values 2-127 equate to 50-300 BPM.

      I have a toggle button that enables/disables external sync which is working fine. It sends a value of 1 to the message that sets tempo. That works fine. When this button is enabled, the tempo knob fades. If the user clicks the tempo knob the external sync button fades. (just set opacity to 40%)

      The only way I’ve been able to get the tempo knob to display the correct range between 50-300 is to set the min/max range of the modulator to 50 and 300 respectively and add an expression "modulatorValue/2-23" to calculate the midi message value from the modulator. However, when this is set to 50 it’s actually engaging external sync.. not what I want. I want 50 to = a value of 2; in other words, the knob should display values 50-300 but send MIDI values 2-127.

      I think I want to go about this the other way.. .set the min max range from 2-127 and use an expression in the second box (calculate modulator value from midi value) not the first??.. but I haven’t had any luck with the calculation.

      What do I need to do in order to get the knob to skip modulator value 1 of this tempo knob? It’s really close now but the calcluation of the expression is off a bpm or two in certain places within the range as it’s calculating on 1-127 (odd number) not 2-127 (even number), and obviously I don’t want the min value of this knob to engage external sync.. that’s what the button’s for..

      thanks in advance, that’s all my questions at the moment <img decoding=” title=”Smile” />

      (edited for clarity)

      Monstrum Media | Music, Sound & Software Design, Chicago / San Francisco listen

      #4686
      dasfaker
      Keymaster
        • Topics: 80
        • Replies: 793
        • Total: 873
        • ★★★

        Why don’t you set a fixed slider and enter in the slider content values from 50-300, and in min/max values you set 2-127?

        This way the modulator displays values 50-300 but sends 2-127.

        #4687
        msepsis
        Participant
          • Topics: 219
          • Replies: 732
          • Total: 951
          • ★★★
          "dasfaker":30ryc7vx wrote:
          Why don’t you set a fixed slider and enter in the slider content values from 50-300…[/quote:30ryc7vx]

          I could certainly try that.. seems a lot of work to "enter content values from 50-300" and was hoping there was a faster way using math in the expression fields.

          Monstrum Media | Music, Sound & Software Design, Chicago / San Francisco listen

          #4688
          dasfaker
          Keymaster
            • Topics: 80
            • Replies: 793
            • Total: 873
            • ★★★

            Yes, a lot of work. In the virus panel a lot of parameters have unique units (ms, dB….) and I copied each one value after value. In fact in the Virus synth this kind of labels are stored in lists, and I’ve found a handfull of mistakes and typos in the values displayed.

            #4689
            msepsis
            Participant
              • Topics: 219
              • Replies: 732
              • Total: 951
              • ★★★

              So maybe there’s a bug with the expression fields or something is not working right.. I even tried saving, closing and re-opening the panel <img decoding=” title=”Smile” />

              (127*2)+46=300
              (2*2)+46=50

              so midiValue*2+46=modulatorValue, right?

              this does not do anything at all to the modulator value when placed in the second expression field "expression to evaluate when calculating modulator value from the MIDI message".

              Monstrum Media | Music, Sound & Software Design, Chicago / San Francisco listen

              #4690
              msepsis
              Participant
                • Topics: 219
                • Replies: 732
                • Total: 951
                • ★★★

                Got this working, and i figured out why I thought it wasn’t before..

                Some of the numbers are not exactly precise (the knob says 149 but the synth says 148 but it’s because the synth only displays even numbers to get around a little bit of trickiness with the math. Germans. :roll:

                Monstrum Media | Music, Sound & Software Design, Chicago / San Francisco listen

              Viewing 6 posts - 1 through 6 (of 6 total)
              • The forum ‘Programming’ is closed to new topics and replies.
              There is currently 0 users and 66 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