Itty Bitty MIDI Piano Sings With Solenoids

Toy pianos are fun to plink around on for a minute, but their small keyboards and even smaller sound make them musically uninteresting pretty quickly. [Måns Jonasson] found a way to jazz up a two-octave toy piano almost beyond recognition. All it took was thirty solenoids, a few Arduinos, a MIDI shield, and a lot of time and patience.

This particular piano’s keys use lever action to strike thin steel tines. These tines are spaced just wide enough for tiny 5V solenoids to fit over them. Once [Måns] got a single solenoid striking away via MIDI input, he began designing 3D printed holders to affix them to the soundboard.

Everything worked with all thirty solenoids in place, but the wiring was a bird’s nest of spaghetti until he upgraded to motor driver shields. Then he designed a new bracket to hold eight solenoids at once, with a channel for each pair of wires. Every eight solenoids, there’s an Arduino and a motor shield.

The resulting junior player piano sounds like someone playing wind chimes like a xylophone, or a tiny Caribbean steel drum. Check out the build video after the break.

Hate the sound of toy pianos, but dig the convenient form factor? Turn one into a synth.

Continue reading “Itty Bitty MIDI Piano Sings With Solenoids”

Raspberry Pi AI Plays Piano

[Zack] watched a video of [Dan Tepfer] using a computer with a MIDI keyboard to do some automatic fills when playing. He decided he wanted to do better and set out to create an AI that would learn–in real time–how to insert style-appropriate tunes in the gap between the human performance.

If you want the code, you can find it on GitHub. However, the really interesting part is the log of his experiences, successes, and failures. If you want to see the result, check out the video below where he riffs for about 30 seconds and the AI starts taking over for the melody when the performer stops.

Continue reading “Raspberry Pi AI Plays Piano”

FabricKeyboard

FabricKeyboard Is Piano, Theremin And More

Two researchers of Responsive Environments, MIT Media Lab, have put to together a device that is an amazing array of musical instruments squeezed into one flexible package. Made using seven layers of fabrics with different electrical properties, the result can be played using touch, proximity, pressure, stretch, or with combinations of them. Using a fabric-based keyboard, ribbon-controller, and trackpad, it can be played as a one-octave keyboard, a theremin, and in ways that have no words, such as stretching while pressing keys. It can also be folded up and stuffed into a case along with your laptop, and care has even been taken to make it washable.

The FabricKeyboard layers
The FabricKeyboard layers

Layer one, the top layer, is a conductive fabric for detecting proximity and touch. The twelve keys can work independently with a MPR121 proximity touch controller or the controller can treat them all as one, extending the distance the hand can be and have it still work. Layer two is just a knit fabric but layers three to six detect pressure, consisting to two conductive layers with a mesh fabric and a piezo-resistive fabric in between. The piezo-resistive fabric is LTT-SPLA from eeonyx, a knit fabric coated with the conductive polymer, polypyrrole (PPy). Layer seven consists of two strips of knitted spandex fabric, also coated with PPy, and detects stretching. Two strips of this are sewn on the bottom, one horizontal and one vertical. You can see and hear the amazing sound this all produces in the video below.

Continue reading “FabricKeyboard Is Piano, Theremin And More”

MIDI Drawings Paint With Piano Keyboards

Musician [Mari Lesteberg] is making music that paints pictures. Or maybe she’s making pictures that paint music. It’s complicated. Check out the video (embedded below) and you’ll see what we mean. The result is half Chinese scroll painting, and half musical score, and they go great together.

Lots of MIDI recorders/players use the piano roll as a model for input — time scrolls off to the side, and a few illuminated pixels represent a note played. She’s using the pixels to paint pictures as well: waves on a cartoon river make an up-and-down arpeggio. That’s a (musical) hack. And she’s not the only person making MIDI drawings. You’ll find a lot more on reddit.

Of course, one could do the same thing with silent pixels — just set a note to play with a volume of zero — but that’s cheating and no fun at all. As far as we can tell, you can hear every note that’s part of the scrolling image. The same can not be said for music of the black MIDI variety, which aims to pack as many notes into a short period of time as possible. To our ears, it’s not as beautiful, but there’s no accounting for taste.

It’s amazing what variations we’re seeing in the last few years on the ancient piano roll technology. Of course, since piano rolls are essentially punch-cards for musical instruments, we shouldn’t be too surprised that this is all possible. Indeed, we’re a little bit surprised that new artistic possibilities are still around. Has anyone seen punch-card drawings that are executable code? Or physical piano rolls with playable images embedded in them?

Continue reading “MIDI Drawings Paint With Piano Keyboards”

Retrotechtacular: Piano Rolls, Made By Apple ][

Piano rolls are the world’s longest-lasting recording medium, and its first digital one. They were mass-produced from 1896 to 2008, and you can still get some made today, although they’re a specialty item. The technology behind them, both on the player and the recorder side, is simply wonderful.

[lwalkera] sent us in this marvelous video (embedded below) that provides a late-80s peek inside the works of QRS Records, and the presenter seems to be loving every minute of it.

Player pianos are cool enough, with their “draw bar” pulling air through the holes in the paper roll as it goes by, and pneumatically activating the keys. But did you ever think of how the rolls are made?

Continue reading “Retrotechtacular: Piano Rolls, Made By Apple ][“

It’s An Upright Piano, It’s A Looper, It’s A Pi Project

We don’t really get out much, but we have noticed that there are brightly painted upright pianos in public places these days. Research indicates that these pianos are being placed by small, independent local organizations, most of which aim to spread the joy of music and encourage a sense of community.

[Sean and Mike] took this idea a couple of steps further with Quaver, their analog looping piano. Both of them are maker/musicians based in Lancaster, Pennsylvania, which happens to be a hot spot for public pianos. [Sean and Mike] often stop to play them and wanted a good way to capture their impromptu masterpieces. Quaver is an antique upright that has been modified to record, save, loop, and upload music to the internet. It does all of this through a simple and intuitive user interface and a Raspi 2. Quaver works a lot like a 4-track recorder, so up to four people can potentially contribute to a song.

The player sits down, cracks their knuckles, and presses our personal favorite part of the interface: the giant, irresistible record button. A friendly scrolling LED matrix display tells them to start playing. Once they are satisfied, they press the button again to stop the recording, and the notes they played immediately play back in a loop through a pair of salvaged Bose speakers from the 1980s. This is just the beginning of the fun as you play along with your looping recording, building up several voices worth of song!

Continue reading “It’s An Upright Piano, It’s A Looper, It’s A Pi Project”

Transcribing Piano Rolls With Python

Piano Roll

 

Perforated rolls of paper, called piano rolls, are used to input songs into player pianos. The image above was taken from a YouTube video showing a player piano playing a Gershwin tune called Limehouse Nights. There’s no published sheet music for the song, so [Zulko] decided to use Python to transcribe it.

First off the video was downloaded from YouTube. This video was processed with MoviePy library to create a single image plotting the notes. Using a Fourier Transform, the horizontal spacing between notes was found. This allowed the image to be reduced so that one pixel corresponded with one key.

With that done, each column could be assigned to a specific note on the piano. That takes care of the pitches, but the note duration requires more processing. The Fourier Transform is applied again to determine the length of a quarter note. With this known, the notes can be quantized, and a note duration can be applied to each.

Once the duration and notes are known, it’s time to export sheet music. LilyPond, an open source language for music notation, was used. This converts ASCII text into a sheet music PDF. The final result is a playable score of the piece, which you can watch after the break.

Continue reading “Transcribing Piano Rolls With Python”