BUG: luaModulatorGetValueFromMIDI

Home Forums Development BUG: luaModulatorGetValueFromMIDI

Tagged: 

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #74132
    m.tarenskeen
    Participant
    • Topics: 30
    • Replies: 113
    • Total: 143
    • ★★

    Hi, I found (I think) a little bug in the behaviour of luaModulatorGetValueFromMIDI (“called to calculate new modulator value from a MIDI value”).

    function(modulator, midiMessage, numericMidiValue) will pass the correct numericMidiValue from my modulators, except if I use a uiFixedImageSlider. In that case numericMidiValue gives me a value of 0 all the time. The issue disappears if I replace the uiFixedImageSlider with uiImageSlider or another slidertype.

    I also found a workaround:
    If the incoming midiMessage is a CC message the numericMidiValue can also be extracted from that:

    numericMidiValue = midiMessage:getData():getByte(2)

    This way it works for also for all slidertypes including uiFixedImageSlider

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
There is currently 0 users and 22 guests online
No users are currently active
Forum Statistics
Threads: 2,423, Posts: 17,090, Members: 56,845
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!