Simple Hack Completely Changes The Sound Of This Piano

We’re partial to musical instrument hacks around here, mainly because we find instruments to be fascinating machines. Few are more complex than the piano, and, as it turns out, few are quite so hackable. Still, we have to admit that this ragtime piano hack took us by surprise.

We always thought that the rich variety of tones that can be coaxed from a piano, from the tinny sound of an Old West saloon piano to the rich tones of a concert grand, were due mainly to the construction of the instrument and the way it’s played. Not so, apparently, as [Measured Workshop] demonstrated by installing a “mandolin rail” in a small upright piano. The instrument had seen better days, so step one was disassembly and cleaning. A wooden rail spanning the entire width of the string board was added, with a curtain of fabric draping down to the level of the hammers. The curtain was cut into a fringe in the same spacing as the hammers – marking the hammer locations with cornstarch was a nice trick – and metal clips were crimped to each fringe. The completed mandolin rail can be raised and lowered using a new foot pedal, completely changing the tone as the hammers hit the strings with the metal clips rather than their soft felt heads. It makes the piano sound a little like a harpsichord, or the aforementioned saloon instrument, and at the touch of a foot, it’s back to its original tone.

Most of the piano hacks we offer tend toward the electronic variety, so it’s nice to see a purely mechanical piano hack for a change. And if the hacked piano doesn’t work out as an instrument, you can always turn it into a workbench.

Continue reading “Simple Hack Completely Changes The Sound Of This Piano”

Recycled Piano Becomes Upcycled Workbench

Pianos are free, in case you’re not hip to the exciting world of musical instrument salvage. Yes, the home piano, once the pinnacle of upper middle class appreciation of the arts, is no longer. The piano your great aunt bought in 1963 is just taking up space, and it’s not like the guy on Craigslist giving away a free piano has a Bösendorfer.

It’s out of this reality of a surplus of cheap used pianos that [luke] built a new desk. He got it a while ago, but after getting it into his house, he realized it was too old to be tuned anymore. Or at least it was uneconomical to do so. This piano became a workbench, but after a while [luke] wanted something with a little more storage.

The process of converting this piano to a desk began with taking a few photos and putting them into Fusion 360. A series of panels and brackets were modeled in box jointed plywood, and the entire thing was cut out of 6mm Baltic birch plywood at the Vancouver Hack Space.

There are a few nice features that make this desk a little better than an Ikea special. There’s a Raspberry Pi mounted to the shelves, because the Pi still makes a great workbench computer. There’s a power supply, and hookups for 12 V, 5 V, and 3.3 V from an ATX power supply. This is controlled with an awesome antique power switch mounted to the side of the piano. Slap a few coats of black paint on that, and [luke] has an awesome, functional workbench that also has out-of-tune sympathetic strings. Not bad.

You can check out the entire build video below. Thanks [Jarrett] for sending this one in.

Continue reading “Recycled Piano Becomes Upcycled Workbench”

Google's Piano Genie

Piano Genie Trained A Neural Net To Play 88-Key Piano With 8 Arcade Buttons

Want to sound great on a Piano using only your coding skills? Enter Piano Genie, the result of a research project from Google AI and DeepMind. You press any of eight buttons while a neural network makes sure the piano plays something cool — compensating in real time for what’s already been played.

Almost anyone new to playing music who sits down at a piano will produce a sound similar to that of a cat chasing a mouse through a tangle of kitchen pots. Who can blame them, given the sea of 88 inexplicable keys sitting before them? But they’ll quickly realize that playing keys in succession in one direction will produce sounds with consistently increasing or decreasing pitch. They’ll also learn that pressing keys for different lengths of times can improve the melody. But there’s still 88 of them and plenty more to learn, such as which keys will sound harmonious when played together.

Piano Genie training architectureWith Pinao Genie, gone are the daunting 88 keys, replaced with a 3D-printed box of eight arcade-style buttons which they made by following this Adafruit tutorial. A neural network maps those eight buttons to something meaningful on the 88-key piano keyboard. Being a neural network, the mapping isn’t a fixed one-to-one or even one-to-many. Instead, it’s trained to play something which should sound good taking into account what was play previously and won`t necessarily be the same each time.

To train it they use data from the approximately 1400 performances of the International Piano e-Competition. The result can be quite good as you can see and hear in the video below. The buttons feed into a computer but the computer plays the result on an actual piano.

For training, the neural network really consists of two networks. One is an encoder, in this case a recurrent neural network (RNN) which takes piano sequences and learns to output a vector. In the diagram, the vector is in the middle and has one element for each of the eight buttons. The second network is the decoder, also an RNN. It’s trained to turn that eight-element vector back into the same music which was fed into the encoder.

Once trained, only the decoder is used. The eight-button keyboard feeds into the vector, and the decoder outputs suitable notes. The fact that they’re RNNs means that rather than learning a fixed one-to-many mapping, the network takes into account what was previously played in order to come up with something which hopefully sounds pleasing. To give the user a little more creative control, they also trained it to realize when the user is playing a rising or falling melody and to output the same. See their paper for how the turned polyphonic sound into monophonic and back again.

If you prefer a different style of music you can train it on a MIDI collection of your own choosing using their open-sourced model. Or you can try it out as is right now through their web interface. I’ll admit, I started out just banging on it, producing the same noise I would get if I just hammered away randomly on a piano. Then I switched to thinking of making melodies and the result started sounding better. So some music background and practice still helps. For the video below, the researcher admits to having already played for a few hours.

This isn’t the first project we’ve covered by these Google researchers. Another was this music synthesizer again using neural networks but this time with a Raspberry Pi. And if our discussion of recurrent neural networks went a bit over your head, check out our overview of neural networks.

Continue reading “Piano Genie Trained A Neural Net To Play 88-Key Piano With 8 Arcade Buttons”

Listen To A Song Made From Custom Nintendo LABO Waveform Cards

[Hunter Irving] has been busy with the Nintendo LABO’s piano for the Nintendo Switch. In particular he’s been very busy creating his own custom waveform cards, which greatly expands the capabilities of the hackable cardboard contraption. If this sounds familiar, it’s because we covered his original method of creating 3D printed waveform cards that are compatible with the piano, but he’s taken his work further since then. Not only has he created new and more complex cards by sampling instruments from Super Nintendo games, he’s even experimented with cards based on vowel sounds in an effort to see just how far things can go. By layering the right vowel sounds just so, he was able to make the (barely identifiable) phrases I-LIKE-YOU, YOU-LIKE-ME, and LET’S-A-GO.

Those three phrases make up the (vaguely recognizable) lyrics of a song he composed using his custom waveform cards for the Nintendo LABO’s piano, appropriately titled I Like You. The song is at the 6:26 mark in the video embedded below, but the whole video is worth a watch to catch up on [Hunter]’s work. The song is also hosted on soundcloud.

Continue reading “Listen To A Song Made From Custom Nintendo LABO Waveform Cards”

Pulling Music Out Of Thin Air With A Raspberry Pi

Pianos are great instruments, but being rather heavy and requiring a fair amount of space they are certainly not known for their convenience. Sure, there are more portable varieties available, but they rarely resemble the elegance and classiness of a grand piano. One option is of course to build a downscaled version yourself — and since you’re already customizing the instrument, why stop at the way you play it. [2fishy] didn’t stop there either and ended up with a wooden, space friendly, light controlled piano housing a Raspberry Pi.

Inspired by the concept of a laser harp, [2fishy] followed the same principle but chose a simpler and safer alternative by using LEDs instead. For each playable tone, a LED is mounted opposite a light dependent resistor, creating an array of switches that is then connected to the Raspberry Pi’s GPIO pins. A Python script is handling the rest, polling the GPIO states and — with a little help from pygame, triggering MIDI playback whenever the light stream is interrupted.

There are enough LED/LDR pairs to play one full octave and have some additional control inputs for menu and octave shifting. This concept will naturally require some adjustments to your playing — you can get an idea of it in the demonstration video after the break. And if this design is still not the right size for you, or if you prefer to play in total darkness, this similar MIDI instrument using ultrasonic distance sensors could be of interest.

Continue reading “Pulling Music Out Of Thin Air With A Raspberry Pi”

Flexiphone Rises From The Ashes Of Broken Instruments

The mechanics of an old Rhodes Piano, and a set of chromatic saucer bells rescued from a reed organ. What do these two things have to do with each other? If you’re [Measured Workshop], they are the makings of a new instrument. The Flexiphone is a transposable instrument with a piano keyboard and interchangeable sound source.

The Rhodes is a great stage instrument. Unlike a piano with strings, it uses tines mounted above the key mechanism. It is also relatively compact for an analog instrument. This made it perfect as a donor for the Flexiphone’s keyboard. [Measured Workshop] cut they mechanism down to 30 keys, just under 2 octaves. The key mechanism was also cleaned up and restored with new felt.

The sounding portion of the Flexiphone is a set of chromatic saucer bells. The bells are mounted on a felt covered threaded rod, which itself sits in a wood frame. The bell frame sits on top of the base in one of three slots. Each slot is a halftone transposed from the last. Simply moving the bells allows the player to transpose the entire instrument. The bells and their rod frame can also be completely removed and replaced with any other sound source.

The Flexiphone sounds great — sometimes. As [Measured Workshop] says, bells contain many harmonics. playing single or double notes sounds rather sweet, but chords can sometimes become a shrill assault on the ears. Still, it’s an awesome hack with plenty of potential for future mods.

Continue reading “Flexiphone Rises From The Ashes Of Broken Instruments”

Putting The Pi In Piano

Working on a PhD in composition, [Stephen Coyle] spends a fair bit of time at his electric keyboard. Setting himself up to work can be a bit of a task, so he felt he could improve the process and make it easy as Pi.

Finding it an odious task indeed to use notation software, connecting his laptop to his keyboard is a must — avoiding a warren of wires in the move is a similar priority. And, what if he could take advantage of the iPad’s unique offerings too? Well, a Raspberry Pi Zero W running Ravelox — an RTP MIDI protocol — makes  his music available on his network to record on whichever device he pleases.

Continue reading “Putting The Pi In Piano”