Stanislaw playing notes on his MIDI keyboard, with the LEDs on the LED strip lighting up right above the note he's playing, driven by the Raspberry Pi that runs a script based on the Pianolizer toolkit

Pianolizer Helps Your Musical Projects Distinguish Notes

[Stanislaw Pusep] has gifted us with the Pianolizer project – an easy-to-use toolkit for music exploration and visualization, an audio spectrum analyzer helping you turn sounds into piano notes. You can run his toolkit on a variety of different devices, from Raspberry Pi and PCs, to any browser-equipped device including smartphones, and use its note output however your heart desires. To show off his toolkit in action, he set it up on a Raspberry Pi, with Python code taking the note data and sending color information to the LED strip, displaying the notes in real time as he plays them on a MIDI keyboard! He also created a browser version that you can use with a microphone input or an audio file of your choosing, so you only need to open a webpage to play with this toolkit’s capabilities.

He took time to make sure you can build your projects with this toolkit’s help, providing usage instructions with command-line and Python examples, and even shared all the code used in the making of the demonstration video. Thanks to everything that he’s shared, now you can add piano note recognition to any project of yours! Pianolizer is a self-contained library implemented in JavaScript and C++ (which in turn compiles into WebAssembly), and the examples show how it can be used from Python or some other language.

[Stanislaw] also documented the principles behind the code, explaining how the note recognition does its magic in simple terms, yet giving many insights. We are used to Fast Fourier Transform (FFT) being our go-to approach for spectral analysis, aka, recognizing different frequencies in a stream of data. However, a general-purpose FFT algorithm is not as good for musical notes, since intervals between note frequencies become wider as frequency increases, and you need to do more work to distinguish the notes. In this toolkit, he used a Sliding Discrete Fourier Transform (SDFT) algorithm, and explains to us how he derived the parameters for it from musical note frequencies. In the end of the documentation, he also gives you a lot of useful references if you would like to explore this topic further!

What are you going to build with this? Maybe, a box that records you playing the flute and instantly turns it into sheet music? Or, perhaps, an AI that continues the song for you when you stop?

Continue reading “Pianolizer Helps Your Musical Projects Distinguish Notes”

Bare Metal Gives This Pi Some Classic Synths

We’re used to seeing the Raspberry Pi crop up in a wide range of the projects we show you here, but it’s fair to say that they usually feature some sort of operating system. There’s another way to use a Pi, more akin to using a microcontroller such as the Arduino: by programming it directly, so-called bare-metal programming. MiniDexed is an example, and it copies a classic Yamaha professional synthesiser of the 1980s, by emulating the equivalent of eight of the company’s famous DX7 synthesisers in one unit. It takes almost any Pi, and with the addition of an audio board, a rotary encoder, and an LCD display, makes a ready-to-go unit. Below the break is a video of it in operation.

It’s fair to say that we’re not experts in Raspberry Pi bare metal programming, but it’s worth a diversion into the world of 1980s synthesisers to explore the DX7. This instrument was a staple of popular music throughout the 1980s and was a major commercial success for Yamaha as an affordable FM synthesiser. This was a process patented at Stanford University in the 1970s and subsequently licensed by the company, unlike other synths of the day it generated sound entirely digitally. It’s difficult to overestimate the influence of the DX7 as its sound can be heard everywhere, and it’s not impossible that you own a Yamaha FM synth even today if you have in your possession a sound card.

Curious about the DX7? Master chip-reverse-engineer [Ken Shirriff] exposed its secrets late last year.

Continue reading “Bare Metal Gives This Pi Some Classic Synths”

Bungee-Corded Bass Zither Really Slaps

Surely we’ve all played some bass riffs on a stretched-out rubber band before, right? [Nicolas Bras] found that the ultimate musical rubber bands are bungee cords, and used seven of them to build a double-bass zither that can be plucked or struck with drumsticks. Be sure to check it out in the build/demo video after the break.

[Nicolas] is what you might call a hardware store hacker. This is not his first instrumental rodeo by far; in fact, he has spent the last 15 years building instruments from stuff like PVC and other commonly-available items.

One thing in this build that’s not so commonly available is the large sound box [Nicolas] built to strap the bungee cords across. He also made custom bridges for the bungees that are topped with triangular wood, which makes them look like little row houses.

In order to actually play the thing, [Nicolas] arranged the row houses in a 2-point bridge system for dual-note strings, which sound good between the bridges and the bungee hooks, but not so much between the bridges themselves. Overall, the zither has a great, mellow sound no matter how he plays it, and we just might have to string one of these up ourselves.

Not a strings person? Then you might be sated by [Nicolas]’ PVC pipes, which play “Popcorn” perfectly.

Continue reading “Bungee-Corded Bass Zither Really Slaps”

3D Printing A Guitar Neck

A lot of first-time guitar builders focus on making the body and skip the neck, which has lots of tricky dimensions to get right to if you want a nicely playable instrument. However, [Jón Schone] of Proper Printing wanted to start with the hard part on his guitar building journey, and set about 3D printing a guitar neck in one piece.

Designing a neck might sound difficult on the surface of it, but the Marz Guitar Designer plugin for FreeCAD helps make whipping one up a cinch. Once imported into Fusion 360, the geometry is tweaked for 3D printing, particularly to fit the truss rod inside. Printed on a Creality CF30 belt printer (which interestingly enough, has been mounted to the wall) in green PLA, the resulting neck can be spotted as a non-traditional design from a mile away. With a truss rod hammered in, frets installed, and hardware attached, it’s mounted up to a cheap kit guitar for testing.

The printed neck works, and it’s given a proper shakedown with some appropriate riffs to put it through its paces. It’s reportedly a bit on the flexible side, but remains playable and is surprisingly normal in its performance. [Jón] now plans to continue the project by 3D printing the rest of the guitar.

Meanwhile, if you’re sick of tuning your own guitar, consider building a robot tuner to help out. Video after the break.

Continue reading “3D Printing A Guitar Neck”

Making Windshield Wipers Rock To The Beat

When you’re driving around, you might occasionally notice your indicators or windscreen wipers sync up fortuitously with the music. [Cranktown City] wanted to ensure his wipers would always match the beat, however, and set about making it so. 

After disassembling the wiper motor, The original controller PCB is ripped up, used solely for its home position contacts that help determine the position of the wipers. The battered board is then drilled out to fit a rotary encoder to track the wipers throughout their full motion.

An Arduino is used to read the signal coming from the wiper stalk in order to know what mode the wipers should be in, and uses a motor controller to drive the wipers thusly. It also reads the encoder and home position contacts to track the wiper movement, and uses a proportional controller to control the wiper position. An MSGEQ7 spectrum analyzer is used to track the bass of the music to determine the beat to sync up to.

The final build does work, though in a different way to other designs we’ve seen. Rather than measuring BPM and syncing on a four-to-the-floor pulse, it simply tracks the lower band output and thus is more reactive to funky drum beats.

It’s a fun way to modify your car, even if it did require cutting a chunk out of the hood. If you’re cooking up your own cheeky automotive hacks, be sure to drop us a line. Video after the break. Continue reading “Making Windshield Wipers Rock To The Beat”

A New Wrinkle On Wooden Ribbon Microphones

Not too many people build their own microphones, and those who do usually build them out of materials like plastic and metal. [Frank Olson] not only loves to make microphones, but he’s also got a thing about making them from wood, with some pretty stunning results.

[Frank]’s latest build is a sorta-kinda replica of the RCA BK-5, a classic of mid-century design. Both the original and [Frank]’s homage are ribbon microphones, in which a thin strip of corrugated metal suspended between the poles of magnets acts as a transducer. But the similarities end there, as [Frank] uses stacked layers of walnut veneer as the frame of his ribbon motor. The wood pieces are cut with a vinyl cutter, stacked up, and glued into a monolithic structure using lots of cyanoacrylate glue. The video below makes it seem easy, but we can imagine getting everything stacked neatly and lined up correctly is a chore, especially when dealing with neodymium magnets. Cutting and corrugating the aluminum foil ribbon is no mean feat either, nor is properly tensioning it and making a solid electrical contact.

The ribbon motor is suspended in a case made of yet more wood, all of which contributes to a warm, rich sound. The voice-over for the whole video below was recorded on a pair of these mics, and we think it sounds just as good as [Frank]’s earlier wooden Model 44 build. He says he has more designs in the works, and we’re looking forward to hearing them, too. Continue reading “A New Wrinkle On Wooden Ribbon Microphones”

Raspberry Pi Creates Melody

For those who are not into prog rock in the 70s or old radio shows from the 40s, the Theremin may be an unfamiliar musical instrument. As a purely electronic device, it’s well outside the realm of conventional musical instruments. Two radio antennas detect the position of the musician’s hands to make a unique sound traditionally associated with eeriness or science fiction.

Normally a set of filters and amplifiers are used to build this instrument but this build instead replaces almost everything with a Raspberry Pi Zero 2, and instead of radio antennas to detect the position of the musician’s hands a set of two HC-SR04 distance sensors are used instead. With the processing power available from the Pi, the modernized instrument is able to output MIDI as well which makes this instrument easily able to interface with programs like GarageBand or any other MIDI-capable software.

The project build is split into two videos, the second of which is linked below. The project code is also available on the project’s GitHub page, so anyone with the Pi and other equipment available can easily start experimenting with this esoteric and often overlooked musical instrument. It’s been around for over 100 years now, and its offshoots (including this build) are as varied as the sounds they can produce.

Continue reading “Raspberry Pi Creates Melody”