Posts with «musical hacks» label

Controlling Guitar Amps With Servos

[fichl] plays electric guitar, and with that hobby comes an incredible amount of knob twisting and dial turning. This comes at a cost; he can’t change the settings on his small amp without taking his hands off the guitar. While larger, more expensive amps have multiple channels and footswitches, this tiny amp does not. Instead of upgrading, [fichl] came up with a device that turns his single channel amp into a completely programmable one, with just an Arduino and a handful of servos.

The amp in question – an Orange Dark Terror head – has just three knobs on the front of the chassis, volume, shape, and gain. [fichl] had the idea of controlling these knobs electronically, and the simplest solution he came up with is cheap hobby servos. These servos are mounted in an aluminum box, and mount to the knobs with a few shaft couplings.

The footswitch is the brains of the setup, with three buttons, four LEDs, and a DIN-5 output jack that delivers power, ground, and three PWM signals to the servo box. With the help of an Arduino Nano, [fichl] can change any of the knobs independently, or switch between twelve programmed settings. It’s an interesting setup, and something that could serve as a prototype for a much larger system on a much larger amp.


Filed under: Arduino Hacks, musical hacks

Spinning a Pyrite Record for Art

Anyone with a record player is familiar with the concept of translating irregularities on a surface into sound. And, anyone who has ever cracked open a CD player or DVD player has seen how a laser can be used to reproduce sound digitally. Combining the two would be an interesting project in its own right, but [Dimitry Morozov] took this a couple of steps further with his pyrite disc sound object project.

Pyrite discs, also known as pyrite suns or pyrite dollars, are a form of pyrite in which the crystallization structure forms a disc with radial striations. Pyrite discs are unique to the area around Sparta, Illinois, and are generally found in coal mines there. They have no real practical use, but are a favorite of mineral collectors because of their interesting aesthetics.

[Dmitry] received his pyrite disc from one such mineral collector in Boulder, CO, with the request that he use it for an interesting project. [Dmitry] himself specializes in art installations and unique instruments, and combined those passions in his pyrite disc sound object called Ra.

The concept itself is straightforward: spin the pyrite disc and use a laser to convert the surface striations into audio. But, as you can see in the photos and video, the execution was far from straightforward. From what we can gather, [Dimitry] used an Arduino Nano and a DIY laser pickup on a servo arm to scan the pyrite disc as it’s being spun by a stepper motor. That data is then sent to a Raspberry Pi where it’s synthesized (with various modulation and effects controls), to produce sound that is output through the single speaker attached to the object. Generating sound from unusual sources is certainly nothing new to regular readers, but the beauty of this part project is definitely something to be applauded.


Filed under: musical hacks
Hack a Day 27 Sep 00:01

Combining Musical Hatred with Target Practice

Not everyone can agree on what good music is, but in some cases you’ll find that just about everyone can agree on what is awful. That’s what the people over at Neo-Pangea discovered when they were listening to Internet radio. When one of those terrible songs hits their collective eardrums, the group’s rage increases and they just need to skip the track.

This is how Engineers act if the song is super-awful

Rather than use a web app or simple push button to do the trick, they turned the “skip” button into a NERF target. They call their creation the Boom Box Blaster and made a fantastic demo film video about it which is found after the break.

Inspired by a painting in the office, the target takes the form of a small hot air balloon. The target obviously needed some kind of sensor that can detect when it is hit by a NERF dart. The group tried several different sensor types, but eventually settled on a medium vibration sensor. This sensor is connected to an Arduino, which then communicates with a Raspberry Pi over a Serial connection. The Pi uses a Python script to monitor the Arduino’s vibration sensor. The system also includes some orange LEDs to simulate flames and a servo attached to the string which suspends the balloon from the ceiling. Whenever a hit is registered, the flames light up and the balloon raises into the air to indicate that the shot was on target.

The Pi was required in order to interface with the group’s streaming music service of choice; Sonos. The Sonos API made it easy for the team to interface their target with the “skip track” function. They just wrote a Node.js script that runs on the Pi and sends the proper command as necessary. Now whenever the radio asks the group if they want to build a snowman, they can all answer with a resounding, “no!”. They just need to make sure they have enough ammo to spare. Be sure to check out the comical demonstration video on the project page.


Filed under: Android Hacks, musical hacks

Making Music with Clojure and Bananas

At this point, the banana piano is a pretty classic hack. The banana becomes a cheap, colorful touch sensor, which looks sort of like a piano key. The Arduino sets the pin as a low-level output, then sets the pin as an input with a pull up resistor. The time it takes for the pin to flip from a 0 to a 1 determines if the sensor is touched.

[Stian] took a new approach to the banana piano by hooking it up to Clojure and Overtone. Clojure is a dialect of Lisp which runs in the Java Virtual Machine. Overtone is a Clojure library that provides tons of utilities for music making.

Overtone acts as a client to the Supercollider synthesis server. Supercollider has been around since 1996, and provides a wide array of sound synthesis functions. Overtone simply tells Supercollider what to do, letting you easily program sounds in Clojure.

The banana piano acts as an input to a Clojure program. This program maps the banana to a musical note, then triggers a note on Overtone’s built-in piano sampler. The result is a nice piano sound played with fruit. Of course, since Overtone and Supercollider are very flexible, this could be used for something much more complex.

After the break, a video of the banana piano playing some “Swedish Jazz.”


Filed under: musical hacks

Slick Six-Voice Synth for AVRs

He started off making an AVR synthesized guitar, but [Erix] ended up with much more: a complete six-voice AVR wavetable synthesis song machine that’ll run on an ATMega328 — for instance, on an Arduino Uno.

If you’re an AVR coder, or interested in direct-digital synthesis or PWM audio output, you should have a look at his code (zip file). If you’d just like to use the chip to make some tunes, have a gander at the video below the break.

It’s pretty sweet to get six channels of 31.25 kHz sampled 8-bit audio running on a 16MHz chip. The code underlying it works through some tricky optimization in the sample update routine (UpdateVoiceSample() in play.c if you’re reading along) and by carefully prioritizing the time critical elements.

For instance, the pitch is updated once every two PWM samples, I/O and other auxiliary player tasks every eights samples, and the sound’s dynamic volume envelope is only recalculated every 48 samples. Doing the slow math as infrequently as possible lets [Erix] make his timing.

And to round out the tools, [Erix] also provides wavetable editors and song generators in Lua to compile the tables of music data that the AVR routines need to run.

If you’re not impressed by this bit of AVR C coding, then you’ve not tried to implement something similar yourself.


Filed under: Arduino Hacks, musical hacks

Play Robotic Bongos using your Household Plants

[Kirk Kaiser] isn’t afraid to admit his latest project a bit strange, being a plant-controlled set of robotic bongos. We don’t find it odd at all.  This is the kind of thing we love to see. His project’s origins began a month ago after taking a class at NYC Resistor about creating music from robotic instruments. Inspired to make his own, [Kirk] repurposed a neighbor’s old wooden dish rack to serve as a mount for solenoids that, when triggered, strike a couple of plastic cowbells or bongo drums.

A Raspberry Pi was originally used to interface the solenoids with a computer or MIDI keyboard, but after frying it, he went with a Teensy LC instead and never looked back. Taking advantage of the Teensy’s MIDI features, [Kirk] programmed a specific note to trigger each solenoid. When he realized that the Teensy also had capacitive touch sensors, he decided to get his plants in on the fun in a MaKey MaKey kind of way. Each plant is connected to the Teensy’s touchRead pins by stranded wire; the other end is stripped, covered with copper tape, and placed into the soil. When a plant’s capacitance surpasses a threshold, the respective MIDI note – and solenoid – is triggered. [Kirk] quickly discovered that hard-coding threshold values was not the best idea. Looking for large changes was a better method, as the capacitance was dramatically affected when the plant’s soil dried up. As [Kirk] stood back and admired his work, he realized there was one thing missing – lights! He hooked up an Arduino with a DMX shield and some LEDs that light up whenever a plant is touched.

We do feel a disclaimer is at hand for anyone interested in using this botanical technique: thorny varieties are ill-advised, unless you want to play a prank and make a cactus the only way to turn the bongos off!


Filed under: Arduino Hacks, musical hacks
Hack a Day 17 Apr 03:00

Arduino Synth Guitar Really Rocks

[Gr4yhound] has been rocking out on his recently completed synth guitar. The guitar was built mostly from scratch using an Arduino, some harvested drum pads, and some ribbon potentiometers. The video below shows that not only does it sound good, but [Gr4yhound] obviously knows how to play it.

The physical portion of the build consists of two main components. The body of the guitar is made from a chunk of pine that was routed out by [Gr4yhound’s] own home-made CNC. Three circles were routed out to make room for the harvested Yamaha drum pads, some wiring, and a joystick shield. The other main component is the guitar neck. This was actually a Squire Affinity Strat neck with the frets removed.

For the electronics, [Gr4yhound] has released a series of schematics on Imgur. Three SoftPot membrane potentiometers were added to the neck to simulate strings. This setup allows [Gr4yhound] to adjust the finger position after the note has already been started. This results in a sliding sound that you can’t easily emulate on a keyboard. The three drum pads act as touch sensors for each of the three strings. [Gr4yhound] is able to play each string simultaneously, forming harmonies.

The joystick shield allows [Gr4yhound] to add additional effects to the overall sound. In one of his demo videos you can see him using the joystick to add an effect. An Arduino Micro acts as the primary controller and transmits the musical notes as MIDI commands. [Gr4yhound] is using a commercial MIDI to USB converter in order to play the music on a computer. The converter also allows him to power the Arduino via USB, eliminating the need for batteries.

[Thanks Wybren]


Filed under: Arduino Hacks, musical hacks

Digitally Controlled Circuit Bending

Circuit bending doesn’t get a lot of respect around some parts of the Internet we frequent, but there is certainly an artistry to it. Case in point is the most incredible circuit bending we’ve ever seen. Yes, it’s soldering wires to seemingly random points on a PCB, but these bend points are digitally controlled, allowing a drum machine to transform between bent crunchiness and a classic 1980s drum machine with just a few presses of a touch screen controller.

All circuit bending must begin with an interesting piece of equipment and for this project, [Charles], the creator of this masterpiece of circuit bending, is using a Roland TR-626, a slightly more modern version of the TR-606, the percussive counterpart of the infamous TB-303. The circuit is bent in the classical fashion – tying signals on the PCB to ground, VCC, or other signals on the board. [Charles] then out does everyone else by connecting these wires to 384 analog switches controlled by an Arduino Mega. Also on the Arduino is a touch screen, and with a slick UI, this old drum machine can be bent digitally, no vast array of toggle switches required.

[Charles] has put up a few videos going over the construction, capabilities, and sound of this touch screen, circuit bent drum machine. It’s an amazing piece of work, and something that raises the bar for every circuit bending mod from this point on.

Thanks [oxygen_addiction] and [Kroaton] for sending this one in.


Filed under: misc hacks, musical hacks

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.

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.


Filed under: musical hacks
Hack a Day 26 Dec 00:00

Capacitive Christmas Organ with Living Lenses of Slappable Light

We’ve seen capacitive touch organs manifest in pumpkin form. Though they are a neat idea, there’s something about groping a bunch of gourds that stirs a feeling of mild discomfort every time I play one. [mcreed] probably felt the same way and thus created this light-up Jello organ, so he can jiggle-slap Christmas carols, removing any sense of doubt that touching food to play music is weird…

This take on the capacitive tone producing instrument makes clever use of the transparent properties of Jello as well as its trademark wiggling. [mcreed] fills several small mold forms with festively colored strawberry and lime mix. One end of a wire connection is submerged in the liquid of each cup before it has a chance to solidify along with a bright LED. Once chilled and hardened, the gelatinous mass acts as a giant light emitting contact pad. An Arduino is the micro-controller used for the brain, assigning each Jello shape with a corresponding note. By holding onto a grounding wire and completing the acting circuit, one can play songs on the Jello by poking, spanking, or grazing the mounds.

Though I’m not entirely sure if the video is Jello propaganda or not, the idea is applaudable. I prompt anyone to come up with a more absurd item to use for a capacitive organ (zucchinis have already been done).


Filed under: Arduino Hacks, musical hacks