read MIDI in/out devices combo list

Home Forums General Programming read MIDI in/out devices combo list

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #51550
    audiosync
    Participant
      • Topics: 5
      • Replies: 13
      • Total: 18

      I would like to offer a midi device selection directly on my panel so that the user does not need to navigate through menu.

      Is it possible to get the combo list behind MIDI input and MIDI output device and store it into my own combo?
      panelMidiInputDevice contains only the selected device…

      • This topic was modified 8 years, 10 months ago by audiosync.
      #54641
      Puppeteer
      Participant
        • Topics: 16
        • Replies: 185
        • Total: 201
        • ★★

        Using LUA you might be able to use util.getMidiOutputDevices and util.getMididInputDevices.

        Never tried it, but it might be somewhere to start.

        The Puppeteer
        http://godlike.com.au

        #54897
        audiosync
        Participant
          • Topics: 5
          • Replies: 13
          • Total: 18

          Thanks. Appreciate your help! Are these lua internal methods or variables? I searched a bit in combination with lua and in ctrlr source but did not find anything specific. Where does this syntax come from?

          • This reply was modified 8 years, 8 months ago by audiosync.
          #54901
          Puppeteer
          Participant
            • Topics: 16
            • Replies: 185
            • Total: 201
            • ★★

            It’s in the ctrlr source, in utils.cpp

            The Puppeteer
            http://godlike.com.au

            #54945
            audiosync
            Participant
              • Topics: 5
              • Replies: 13
              • Total: 18

              Found it in the file CtrlLuaUtils.cpp!
              It’s addressed by utils.getMidiOutputDevices

              Thanks for pointing out! Didn’t know these…

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