Real-Time midi w/ VS1053B

Writing software that controls the system and peripherals such as displays, SD cards, Buttons, LEDs, Serial Ports etc.
Post Reply
CorneliusBrowns
User
Posts: 2
Joined: Wed 2017-02-01 3:27

Real-Time midi w/ VS1053B

Post by CorneliusBrowns » Wed 2017-02-01 3:40

I bought an adafruit music maker shield which uses the VS1053B. They have no instructions for using real time midi, only a small music player demo that sends midi data over uart.

I'm curious, with gpio1 high the shield puts the VS1053B into midi mode and the rx pin accepts midi data from a software serial pin on the arduino.

Could I simply use the VS1053B shield by itself without the arduino given power, gnd and standard midi data sent to the shield's rx pin?

User avatar
pasi
VLSI Staff
Posts: 1416
Joined: Thu 2010-07-15 16:04

Re: Real-Time midi w/ VS1053B

Post by pasi » Wed 2017-02-01 13:31

Yes, when the vs1053b boots into real-time MIDI mode it accepts MIDI input (31250bps) from RX and generates the audio output.

However, the UART buffer is not quite large enough for all occasions in the RTMIDI mode, so if you send a lot of notes in succession while a lot of notes are On at the same time, it can get messed up. The RTMIDI application ( http://www.vlsi.fi/en/support/software/ ... tions.html ) contains code (loadable through SCI) to increase the UART FIFO size and I think a couple of additional features.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

CorneliusBrowns
User
Posts: 2
Joined: Wed 2017-02-01 3:27

Re: Real-Time midi w/ VS1053B

Post by CorneliusBrowns » Thu 2017-02-02 6:11

Thanks. I think there's an example with the basic contents of rtmidi1053b.c formatted to use with arduino out there so i'll be looking for it.

Post Reply