How to test that the selected Midi device is active?

Home Forums General Programming How to test that the selected Midi device is active?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #69127
    goodweather
    Participant
      • Topics: 45
      • Replies: 550
      • Total: 595
      • ★★★

      Hi,
      it is possible to check that the selected input/output Midi device is in the list of available devices BUT is there a way to test that the selected input/output Midi device is active (same as smiling smiley in the menu)?

      #69150
      Puppeteer
      Participant
        • Topics: 16
        • Replies: 185
        • Total: 201
        • ★★

        Probably the easiest way is to send a universal SYSEX ID request

        0xF0 SysEx
        0x7E Non-Realtime
        0x7F The SysEx channel. Could be from 0x00 to 0x7F.
        Here we set it to “disregard channel”.
        0x06 Sub-ID — General Information
        0x01 Sub-ID2 — Identity Request
        0xF7 End of SysEx

        Ref: http://www.blitter.com/~russtopia/MIDI/~jglatt/tech/midispec/identity.htm

        All synths (with sysex) should return a response to this that features the manufacturer ID and the Product ID. If the response matches the module you are expecting, then you know the inputs and outputs are set correctly.

        edit: accidentally posted the PC3’s response to the universal request, instead of the request itself. Now fixed.

        • This reply was modified 7 years, 12 months ago by Puppeteer.

        The Puppeteer
        http://godlike.com.au

        #69152
        goodweather
        Participant
          • Topics: 45
          • Replies: 550
          • Total: 595
          • ★★★

          Thx. I’ll try that.

          For the moment, I did something similar by requesting a Global parameters dump of 55 bytes but using your method will be better as I can test that any time.

          I was indeed looking for something more robust as one can have different cases:

          • synth not switched on when Ctrlr is started
          • synth switched on after ctrlr is started
          • synth switched off while panel is still open

          The list of devices is a source of info but the best way to secure good communication would be to test your universal sysex exchange before each program/bank communication with the synth (I will not do this at param level).

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

            There is a property that should say if the device is currently open, i’ll post the location of it in Lua asap.

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