Ambilight for your Piano (Hero)

That old upright piano still sounds great, and now it can easily have its own special effects. [DangerousTim] added LED strips which change color when he tickles the ivories. The strips are applied along the perimeter of the rear side of the upright causing the light to reflect off of the wall behind the instrument. This is a familiar orientation which is often seen in ambilight clone builds and will surely give you the thrill of Guitar Hero’s brightly changing graphics while you rock the [Jerry Lee Lewis].

Key to this build is the electret microphone and opamp which feed an Arduino. This allows the sound from the piano to be processed in order to affect the color and intensity of the LED strips. These are not addressable, but use a transistor to switch power to the three colors of all pixels simultaneously.

We think there’s room for some clever derivative builds, but we’re still scratching our heads as to how we’d use addressable pixels. Does anyone know a relatively easy way to take the mic input and reliably establish which keys are being played? If so, we can’t wait to see your ambilight-piano-clone build. Don’t forget to tip us off when you finish the hack!

Making a Player Piano Talk MIDI

[Ramon] was always fascinated with pianos, and when he came across a few player piano rolls in an antique shop, a small kernel of a project idea was formed. He wondered if anyone had ever tried to convert a player piano into a full MIDI instrument, with a computer tickling the ivories with a few commands. This led to one of the best builds we’ve ever seen: a player piano connected to a computer.

[Ramon] found an old piano in Craigslist for a few hundred dollars, and once it made its way into the workshop the teardown began. Player pianos work via a vacuum, where air is sucked through a few pin points in a piano roll with a bellows. A series of pipes leading to each key translate these small holes into notes. Replicating this system for a MIDI device would be impossible, but there are a few companies that make electronic adapters for player pianos. All [Ramon] would have to do is replicate that.

The lead pipes were torn out and replaced with 88 separate solenoid valves. These valves are controlled via a shift register, and the shift registers controlled by an ATMega. There’s an astonishing amount of electronic and mechanical work invested in this build, and the finished product shows that.

As if turning an ancient player piano into something that can understand and play MIDI music wasn’t enough, [Ramon] decided to add a few visuals to the mix. He found a display with a ratio of 16:4.5 – yes, half as tall as 16:9 – and turned the front of the piano into a giant display. The ten different styles of visualization were whipped up in Processing.

display

The piano has so far been shown at an interactive art exhibit in Oakland, and hopefully it’ll make it to one of the Maker Faires next year. There are also plans to have this piano output MIDI with a key scanner underneath all the keys. Very impressive work.

Video below.

Continue reading “Making a Player Piano Talk MIDI”

Laser Piano Worthy Of The Band ‘Wyld Stallyns’

Laser Piano uses Arduino

[Robi] and [Kathy] from elecfreaks have put together a how-to article about a Laser Piano they just built. Instead of keys, the user breaks beams of laser light to trigger the sounds.

Several laser pointer diodes are wired in parallel and mounted in a box, cardboard in this case. The laser diodes are aimed at photocells that reside on the other side of the box. Each photocellis connected to a digital input pin on an Arduino. When the Arduino senses a state change from one of the photocell, meaning the beam of light has been interrupted, it plays the appropriate wave file stored on an external JQ6500 sound module.

[Robi] admits that there are some improvements to be made, specifically the trigger response time and the piano sounding too monotonous. If you have any ideas, please leave them in the comments section.

Continue reading “Laser Piano Worthy Of The Band ‘Wyld Stallyns’”

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”

Piano Repurposed as a Resonant Synth Speaker

piano-synth

[Richard] recently rediscovered some files from a hack he did back in 2004. He was experimenting with exciting piano strings via electromagnetic fields. The idea shares some elements with the self tuning piano we saw back in 2012. Piano strings, much like guitar strings, are made of steel alloys. This means they create electricity when vibrated in a magnetic field. This is the basic principle upon which electric guitar pickups are built. The idea also works in reverse. The strings will vibrate in response to a modulated electromagnetic field. Anyone who has seen an E-bow knows how this can be applied to the guitar. What about the piano?

[Richard] started with the Casio CZ-101, a classic synth in its own right. The Casio’s output was run through a Peavy 100 watt amplifier. The amplified output was then used to drive custom coils mounted on a piano. The coils had to be custom wound to ensure they would be compatible with the 4 – 8 ohm impedance expected by the amplifier. [Richard] ended up winding the coils to 28 ohms. Six of these coils in parallel put him just over the 4 ohm mark. The coils effectively turned the piano into a giant speaker for the synth. In [Richard’s] write-up (word doc link) he mentions that the strings basically act as a giant comb filter, each resonating strongly in response to frequencies in its harmonic series.

The results are rather interesting. The slow attack of the magnetic fields coupled with the synth’s patch results in a surprising variety of sound. The three examples on [Richard’s] blog vary from sounding like a power chord on a guitar to something we’d expect to find in an early horror movie. We would love to see this idea expanded upon. More efficient coils, and more coils in general would add to the effect. The coils on various string groups could also be switched in and out of the system using MIDI control, allowing for even more flexibility. Continue reading “Piano Repurposed as a Resonant Synth Speaker”

LED-Guided Piano Instruction

LEDpianoGuide

[Kay Choe] can’t play the piano. Rather, he couldn’t, until he converted his keyboard to include LED-guided instruction. [Kay] is a microbial engineering graduate student, and the last thing a grad student can afford is private music lessons. With $70 in components and a cell phone, however, he may have found a temporary alternative.

The build works like a slimmed-down, real-world Guitar Hero, lighting up each note in turn. We’ve seen a project like this before, with the LEDs mounted above the keys. [Kay]’s design, however, is much easier to interpret. He embedded the LEDs directly into the keys, including ones above each black key to indicate the sharps/flats. An Android app takes a MIDI file of your choice and parses the data, sending the resulting bits into an IOIO board via USB OTG. A collection of shift registers then drives the LEDs.

For a complete novice, [Kay] seems to benefit from these lights. We are unsure whether the LEDs give any indication of which note to anticipate, however, as it seems he is pressing the keys after each one lights up. Take a look at his video demonstration below and help us speculate as to what the red lights signify. If you’re an electronics savant who wants to make music without practicing a day in your life, we recommend that you check out [Vladimir’s] Robot Guitar.

Continue reading “LED-Guided Piano Instruction”

Hackaday Links: September 22, 2013

hackaday-links-chain

First we start with some protection… for your USB charged devices. Here’s a USB Condom which acts as a pass-through for the power rails but not the data lines. This prevents untrusted charger security exploits. [Thanks Markus]

[OutKastz] seems to think he’s uncovered a price matching conspiracy at Best Buy. His post references an HDTV video wall he has built. But he also discovered that there are two different version of the same television sold as the same SKU. His theory is that this prevents the big box from matching prices on half of their inventory.

When you’re in need of some breadboarding action with your Raspberry Pi and want to make it as painless as possible you need to build your own Pi Cobbler. This is the diy version of an Adafruit product, built using a couple of pin headers, stripboard, and an IDE cable.

Speaking of Adafruit, did you see Ladyada’s teardown of an ICEdot crash sensor?

[Phineas] is showing off a really really small hexacopter. Check out the maiden flight, as well as first indoor and first outdoor tests.

Perhaps this coded entry system will inspire a future project for you. It uses piezo elements to enter a code which unlocks the back door to the company. The glass door already had a series of large dots painted on it. This turns out to be a nice interface for a four button code system.

Many projects use a Raspberry Pi as a web server. But there is more than just one flavor available. [Jeremy Morgan] performed a variety of Pi server benchmarks using Nginx, Monkey, Lighttpd, and Apache. [Thanks Walter]

Can an old TV antenna reflector be used to boost the range of a WiFi dongle? We’re a bit skeptical. Let us know what you think in the comments.

And finally, we do wish there was more information on this upright piano used to play Doom [Thanks Itay].