Low Level Programming for Midi port setup

Home Forums Products Rackmount Low Level Programming for Midi port setup

Viewing 4 reply threads
  • Author
    Posts
    • #184980
      jrichoux
      Participant

      Can anyone share any insight on how to configure ports to receive and send midi over USB? I mean aside from dedicated midi software like Max. My questions revolve around port selection & settings (baud, bits, etc)

      If you have access to any such routines in any programming language I can probably adapt it to my needs. Any OS, but Mac preferred.

      Any help will be appreciated

      Thanks

      JohnR

    • #184990
      tbskoglund
      Moderator
      Eventide Staff

      Can you be more specific with what product you are asking about?

      The H9000 can receive MIDI over USB (it does not transmit) but there are no configurable MIDI ports on the device.

    • #185005
      jrichoux
      Participant

      Certainly, thank you for your interest.

      I am using 4D database language on a current Mac, trying to receive and send sysex messages from within the database. My present tests involve my (beloved) H3000 D/SE. At the moment I use Max to communicate with the H3000, then copy the received text into the 4D database. But I am quite certain that I can somehow configure my Mac ports from within 4D to communicate directly.

      (see 4D manual items

      “Set Channel” https://doc.4d.com/4Dv20/4D/20.4/SET-CHANNEL.301-7026431.en.html

      “Receive Buffer” https://doc.4d.com/4Dv20/4D/20.4/RECEIVE-BUFFER.301-7026437.en.html )

      It is a matter of informing 4D which port to use and what settings to use (baud, bit, etc)

      JohnR

      P.S. When Eventide equips the H9000 with String Modeller or its equivalent, I will seriously consider picking one up.

    • #185008
      tsternfeld
      Moderator
      Eventide Staff

      I assume you are using a USB-MIDI adaptor to communicate from Max to the H3000? That device will show up on your Mac as a USB MIDI device, which won’t work the same (programmatically) as a serial port.  You will need to either find a 4D plugin that will work with MIDI natively or find a bridge that will allow your MIDI device to appear to your Mac as a USB Serial device (at which point you can use the serial parameters specified here: https://midi.org/midi-1-0-core-specifications

      Alternatively, if you can find a way to communicate into a Python script, we internally often use a Python package called Mido (https://mido.readthedocs.io/en/stable/) to do MIDI comms programmatically.

      Hope that helps!

    • #185142
      jrichoux
      Participant

      Thank you tstern for that info. I will check it out

      JohnR

Viewing 4 reply threads
  • You must be logged in to reply to this topic.