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)
    • The forum ‘Development’ is closed to new topics and replies.
    There is currently 0 users and 58 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