Combobox will not send last item in combo list

Home Forums General Using Ctrlr Combobox will not send last item in combo list

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12128
    lfo2vco
    Participant
      • Topics: 26
      • Replies: 162
      • Total: 188
      • ★★

      I have a Combobox “DCO 1 Range” with three items in the Combo contents:

      16=00
      8=01
      4=10

      A Lua Method “dcoOneRangeMessage” is called when the modulator value changes:

      dcoOneRangeMessage = function(mod, value)
      
      	comboValue = panel:getModulatorByName("DCO 1 Range"):getModulatorValue()
      
      	if comboValue == 00 then
      	mySysex = CtrlrMidiMessage({0xF0, 0x7F, 0x7F, 0x7F, 0x60, 0x01, 0x00, 0xb0, 0x08, 0x00, 0xF7})
      	panel:sendMidiMessageNow(mySysex)
      
      	elseif comboValue == 01 then
      	mySysex = CtrlrMidiMessage({0xF0, 0x7F, 0x7F, 0x7F, 0x60, 0x01, 0x00, 0xb0, 0x08, 0x20, 0xF7})
      	panel:sendMidiMessageNow(mySysex)
      
      	elseif comboValue == 10 then
      	mySysex = CtrlrMidiMessage({0xF0, 0x7F, 0x7F, 0x7F, 0x60, 0x01, 0x00, 0xb0, 0x08, 0x40, 0xF7})
      	panel:sendMidiMessageNow(mySysex)
      
      	end
      
      end

      I use 00, 01 & 10 as this is the format my Tone Edit Buffer Dump uses to send these particular instructions.

      However the last value / message in the Combo contents / method does not get sent, there is no sign of it in the MIDI Monitor.

      Any suggestions welcome.

      Here is some noise I organised into an acceptable format:
      https://soundcloud.com/lfo2vco/a-dark-crystal

      #12129
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★

        Try using 02, that’s the index of the value 10, lua gets the index of the values, remember that modulators are linear, there are no holes in them, if you have three values in a modulator they are always indexed 0-n, where n is the amount of values on the list.

        #12130
        lfo2vco
        Participant
          • Topics: 26
          • Replies: 162
          • Total: 188
          • ★★

          Many thanks Atom, that has resolved the problem.

          Here is some noise I organised into an acceptable format:
          https://soundcloud.com/lfo2vco/a-dark-crystal

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