Arduino Forum

Development => Other Software Development => Topic started by: Rafikli on Jan 29, 2019, 02:48 pm

Title: Receive Midi Machine Control (MMC) Signals via USB MIDI
Post by: Rafikli on Jan 29, 2019, 02:48 pm
Hello,

I am trying to trigger a digital pin on My arduino atmeg32u4, when i receive a Midi Machine Control(MMC) Message from a recording softare (DAW) on my computer. I have researchead and i need to use the recording signal and the stop signal. I havent foun any good documentation on the arduino USB Midi library, so i dont know what function to use to read such a  MMC message.

The structure of the signal is like this:

Midi F0 7F deviceID 06 command F7

01 Stop
06 Record Strobe (Punch In)
07 Record Exit (Punch out)

This is the library i am usign: https://github.com/arduino-libraries/MIDIUSB

I cant find a good reference for this library, so if anyone's got a link to one i'll apreciate very much.

Thanks!
Title: Re: Receive Midi Machine Control (MMC) Signals via USB MIDI
Post by: gbafamily on Jan 30, 2019, 12:56 am
The message starts with 0xF0 and ends with 0xF7 so it is a sysex message. Setup a callback function for sysex messages.

https://github.com/FortySevenEffects/arduino_midi_library/wiki/Using-Callbacks
Title: Re: Receive Midi Machine Control (MMC) Signals via USB MIDI
Post by: Rafikli on Jan 30, 2019, 05:29 am
Thanks!! I will try that out. Great Help!