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: 11
    • Replies: 28
    • Total: 39

    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
    dnaldoogdnaldoog
    Participant
    • Topics: 3
    • Replies: 377
    • Total: 380
    • ★★

    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: 11
    • Replies: 28
    • Total: 39

    It needed to be a uiFixedSlider or a uiFixedImageSlider!

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

    #118292
    goodweathergoodweather
    Participant
    • Topics: 41
    • Replies: 499
    • Total: 540
    • ★★★

    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)
  • You must be logged in to reply to this topic.
There is currently 0 users and 25 guests online
No users are currently active
Forum Statistics
Threads: 2,394, Posts: 16,752, Members: 59,355
Most users ever online was 12 on January 22, 2019 3:47 pm
Do NOT follow this link or you will be banned from the site!