Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 2019 16:27:05 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Marcel Bonnet <marcelbonnet@gmail.com>, FreeBSD multimedia <freebsd-multimedia@freebsd.org>, multimedia@freebsd.org
Subject:   Re: [jack_umidi] baud rate when writing MIDI messages from USB to jack_umidi
Message-ID:  <3dc15748-39c2-49fe-f423-46d42a4b58d4@selasky.org>
In-Reply-To: <CAPe0dBmmLU8_umJYK9kRwukbc_GeHwuYfJLawP6=nB3gHyJMfA@mail.gmail.com>
References:  <CAPe0dBmmLU8_umJYK9kRwukbc_GeHwuYfJLawP6=nB3gHyJMfA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2019-05-29 16:15, Marcel Bonnet wrote:
> Hello.
> 
> I'm making a MIDI controller with Arduino UNO and I though somebody could
> help me on clarify if I should set a specific baud rate when writing MIDI
> messages from Arduino (from USB port) that are target to jack_umidi.
> 
> I realize that whem I'm writing chars (debug messages) they are interpreted
> as random MIDI notes. But when I turn debug off and write something like:
> 
>        Serial.write(0x90);
>        Serial.write(0x30);
>        Serial.write(0x7F);
>        Serial.flush();
> 
> no MIDI message is received (I used jack_midi_dump to check, it is empty) .
> 
> So I'm not asking about Arduino itself, but maybe it is something related
> to the baud rate?
> 

The USB protocol use a classification byte. Every USB MIDI command is 
always 4-bytes long.

Regular MIDI is using 64000 baud I think.

--HPS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3dc15748-39c2-49fe-f423-46d42a4b58d4>