lua code for current panel transmit channel

Home Forums General Using Ctrlr lua code for current panel transmit channel

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #698
    layzer
    Participant
      • Topics: 6
      • Replies: 36
      • Total: 42

      quick question for lua gurus….

      how do you structure the sendmidimessagenow command to send a CC with the current panel midi channel?

      i i tried
      ch = panel:getcomponent(MidiOutputChannel)
      m = CtrlrMidiMessage({0xBch, 0x10, 0x00})
      panel:sendMidiMessageNow(m)

      but it doesnt work

      also, whats the code for assigning a modulators current value to a variable?

      thanks

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

        [code:2rycho79]
        ch = panel:getPropertyInt ("panelMidiOutputChannelDevice")
        [/code:2rycho79]
        or
        [code:2rycho79]
        ch = panel:getPropertyInt ("panelMidiOutputChannelHost")
        [/code:2rycho79]

        depending on witch channel you want.

        #4759
        layzer
        Participant
          • Topics: 6
          • Replies: 36
          • Total: 42

          ur my hero, Atom! the first code worked like a charm! panel moving right along now…..
          i may need your expertise again though :roll:

        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 102 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