Loading...

Netduino Plus 2 --- Midi Player

753 views

Loading...

Loading...

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Feb 5, 2013

I've created a Midi Player for my Netduino Plus 2.

This is written in C#. You can find all of the code on CodePlex. ( see LINK below ).
In this version, all of the files are stored on the SD card. Midi files have a .mid extension. These should be converted to type 0, which is all the tracks in ONE-track. NOT multi-tracked. Other than that, this program parses standard midi files and then plays them back on a standard Netduino Plus 2.
I am using all 6 of the built in PWM channels.
Each channel outputs one note at a time, so you get up to 6-note Polyphony.
A song that is really busy, with LOTs of channels may not work well.

In this version, I added on a shield with a 6 channel audio mixer, utilizing an OP-AMP. It is a fairly basic circuit, schematic can be found on my CodePlex page.
( http://netduinop2midiplayer.codeplex.... )

The 1/8" jack can go to a line-level input or headphones work well, too.
A raw speaker does work, but would be better driven by an amplifier (IC or otherwise).

This may seem kinda silly, considering you can buy a MIDI shield add-on...
but... well... that wouldn't be any fun to code !!! :-)

I also have an older version on my video channel here that simply uses resistors to mix the PWM outputs. This is fairly CRUDE, but tested my coding.


ENJOY !!!!

-Ron

Loading...

When autoplay is enabled, a suggested video will automatically play next.

Up next


to add this to Watch Later

Add to

Loading playlists...