Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

Play some Super Arduino Bros. tunes with percussion

Play some Super Arduino Bros. tunes with percussion

Have you ever wished your Arduino project could play tunes, or even just note-based sound effects? Connor Nishijima has, and that’s why over the last three years he has been hard at work developing Miduino—a free web service that enables Makers to automatically convert their MIDI music into ready-made sketches.

Unlike any built-in Arduino noisemaking functions such as tone(), Miduino’s output is polyphonic–meaning you can play up to six notes at once. Most recently, he has added two major updates to the service: percussion tracking and switch to software-based timing.

Now the only thing setting your Arduino apart from an NES is a proper triangle wave! While it’s not fully featured yet for the whole MIDI percussion spectrum, your basic snares, kicks and hi-hats will be joining the music!

Originally I collaborated with Len Shustek to tie his Playtune library into the service, but his library requires a hardware timer for each active note–which has its ups and downs.

With a hardware timer you’ll get extremely crisp sound every time, but an Arduino Uno can only play up to three notes at once and the original code didn’t know what to do with MIDI percussion channels.

Instead, Nishijima is polling for new notes and their expirations at about 22,050Hz using Timer 1 and generating different types of percussion with some RNG tricks. Admittedly it hasn’t been perfected yet, as some songs need the polling frequency turned down to avoid crashes. (Cut the Arduino some slack, it’s not supposed to be good at this!)

To demonstrate his latest upgrades, Nishijima performs the Super Mario Bros. theme song with LEDs blinking to the iconic tunes. Although some would argue that this could be faked rather easily, the Maker has gone ahead and shared the code along with a couple other examples for any doubters–these include Van Halen’s “Eruption” and Mozart’s “Rondo Alla Turca.”

 

Read more Here







Related Pins

Play beautiful music on an Arduino thumb piano
Play beautiful music on an Arduino thumb piano
A multimeter heads-up display with Arduino glasses
A multimeter heads-up display with Arduino glasses
Robotic fish swims under Arduino control
Robotic fish swims under Arduino control
ESLOV is the amazing new IoT invention kit from Arduino
ESLOV is the amazing new IoT invention kit from Arduino
Building a sweet plastic MIDI controller
Building a sweet plastic MIDI controller
A DIY interactive book that uses digital gestures
A DIY interactive book that uses digital gestures
HAL 9000 reimagined as a useless machine
HAL 9000 reimagined as a useless machine
An Arduino VU meter for classrooms
An Arduino VU meter for classrooms
Build your own robotic vacuum from scratch
Build your own robotic vacuum from scratch
An animatronic talking takeout container
An animatronic talking takeout container
IDE 1.6.12 released with Sierra support and more
IDE 1.6.12 released with Sierra support and more
PIXIE is an Arduino-based NeoPixel watch
PIXIE is an Arduino-based NeoPixel watch
Capture time-lapses with a steel and aluminum camera slider
Capture time-lapses with a steel and aluminum camera slider
The MR-808 is a robotic drum “synthesizer”
The MR-808 is a robotic drum “synthesizer”
Analyze your world with the WiSci portable spectrometer
Analyze your world with the WiSci portable spectrometer
Capcom CPS2 security programming guide
Capcom CPS2 security programming guide
A community-made, Arduino-powered interactive town map
A community-made, Arduino-powered interactive town map
PyroGraph is a plotter that burns images on paper
PyroGraph is a plotter that burns images on paper
Build your own robotic arm out of cardboard
Build your own robotic arm out of cardboard
Play the guitar on a guitar bag
Play the guitar on a guitar bag

Top


Shares