Change Modulator Display Values

Home Forums General Programming Change Modulator Display Values

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #118288
    spiffo
    Participant
      • Topics: 12
      • Replies: 38
      • Total: 50

      I might very well be missing the obvious here but I cannot work out what seems like it should be quite simple?

      I have a Modulator that has values 0-6, but on the Synth it is a Detune Knob that starts at 0 and goes either to -3 or +3, so:

      Midi Value 0 = Display Value -3
      Midi Value 1 = Display Value -2
      Midi Value 2 = Display Value -1
      Midi Value 3 = Display Value -0
      Midi Value 4 = Display Value +1
      Midi Value 5 = Display Value +2
      Midi Value 6 = Display Value +3

      How do I change or offset just the Displayed Values so they match what is displays on the Synth LCD?

      #118289
      dnaldoog
      Participant
        • Topics: 4
        • Replies: 480
        • Total: 484
        • ★★

        You will notice some choices when you create a modulator; uiSlider and uiFixedSlider. You want uiFixedSlider

        Create a uiFixedSlider and in the slider contents box enter in what you want the user to see.

        
        -3
        -2
        -1
        0
        +1
        +2
        +3
        

        -3 will send MIDI 0
        +3 will send MIDI 6

        #118290
        spiffo
        Participant
          • Topics: 12
          • Replies: 38
          • Total: 50

          It needed to be a uiFixedSlider or a uiFixedImageSlider!

          I knew it would be something easy, thanks dnaldoog, I’ll crack on!

          #118292
          goodweather
          Participant
            • Topics: 45
            • Replies: 550
            • Total: 595
            • ★★★

            It works as well with uiSlider but is a bit more tricky:
            – min Value = -3
            – max Value = 3
            – expression to evaluate when calculating the midi message: modulatorValue+3
            – expression to evaluate when calculating the modulator value: midiValue-3

            The advantage is that you don’t need to type all the single values
            You will understand the advantage when you will have a mod -128 to +128 😉

            From my part, I prefer using a separate display of the value label but then you need to code a Lua function that is triggered when the mod value changes.

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