BUG: luaModulatorGetValueFromMIDI

Home Forums Development BUG: luaModulatorGetValueFromMIDI

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #74132
    m.tarenskeen
    Participant
    • Topics: 30
    • Replies: 109
    • Total: 139
    • ★★

    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

    #116727
    aladanhaladanh
    Participant
    • Topics: 0
    • Replies: 1
    • Total: 1

    very nice information you share with us. thanks for this.
    hotmail login

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
There is currently 1 user and 22 guests online
talhak13
Forum Statistics
Threads: 2,278, Posts: 15,932, Members: 58,254
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!