Posts | Comments

Planet Arduino

Archive for the ‘Midi’ Category

A popular tool in chiptune software like LSDJ allows the user to draw a waveform and use it as the basis for a wavetable synth. It’s fun and it can produce some great bleeps and bloops. [Kevin] has created a similar tool using an Arduino and a touchscreen.

You can draw the waveform! That’s neat.

The build is based on the Arduino Uno, the humble mainstay of the Arduino line. It’s hooked up to an ILI9488 color touchscreen display, which acts as the primary user interface. Using a stylus, or presumably a finger, the user can draw directly on the screen to specify the desired waveform for the synth to produce. The Arduino reads the step-by-step amplitude values of the drawn waveform and uses them to synthesize audio according to MIDI messages received over its serial port. Audio output is via PWM, as is common in low-cost microcontroller projects.

It’s a fun build and we’re sure [Kevin] learned plenty about wavetable synthesis along the way. We’ve seen his work on other Arduino synthesis projects before, too! Video after the break.

It’s an old misconception that digital musicians just use a mouse and keyboard for their art. This is often far from the truth, as many computer music artists have a wide variety of keyboards/synths, MIDI controllers, and “analog” instruments that all get used in their creative process. But what if one of those instruments was just a mouse?

Well, that must have been what was going through [kzra]’s mind when he turned an old ps/2 roller ball mouse into an electronic instrument. Born out of a love for music and a hate for waste, the mouse is a fully functional MIDI controller. Note pitch is mapped to the x-coordinate of the pointer, and volume (known as velocity, in MIDI-speak) is mapped to the y-coordinate. The scroll wheel can be used as a mod wheel, user-configurable but most often used to vary the note’s pitch. The mouse buttons are used to play notes, and can behave slightly differently depending on the mode the instrument is set to.

Not satisfied with simply outputting MIDI notes, [kzra] also designed an intuitive user interface to go along with the mouse. A nice little OLED displays the mode, volume, note, and mouse coordinates, and an 8×8 LED matrix also indicates the note and volume. It’s a fantastic and versatile little instrument, and you’ve gotta check out the video after the break to see it for yourself. We’ve seen some awesome retro-tech MIDI controllers before, and this fits right in.

Thanks to [midierror] for the tip!

MIDI-controlled instruments are awesome, as custom sounds can be loaded and dynamically changed while you play. However, accessing these effects often requires an external controller that can get expensive and complicated. That is why music enthusiast Joe King created the Stryde, which is a fully integrated MIDI preset loader within a small enclosure. Stryde uses an Arduino Nano Every at its core to store presets, display information, and select effects.

As seen in King’s video below, the Nano Every has room for up to 128 total presets that can be scroll through with the help of a pair of buttons. There is also the ability to use a MIDI pedal as an input to switch which presets are currently active. The back of the Stryde contains a single port for MIDI IN and two ports for MIDI OUT with DIN connectors. Even though the device has plenty of connectivity, the best feature is probably the fact that it is open source, therefore letting users completely rewrite the firmware if they want. 

To learn more about or back the Stryde for yourself, check out its Kickstarter campaign.

The post Stryde is an Arduino Nano Every-powered MIDI preset loader appeared first on Arduino Blog.

[Attoparsec] has been building intriguing musical projects on his YouTube channel for a while and his latest is no exception. Dubbed simply as “Node Module”, it is a rack-mounted hardware-based Markov chain beat sequencer. Traditionally Markov chains are software state machines that transition between states with given probabilities, often learned from a training corpus. That same principle has been applied to hardware beat sequencing.

Each Node Module has a trigger input, four outputs each with a potentiometer, and a trigger out. [Attoparsec] has a wonderful explanation of all the different parts and theories that make up the module at the start of his video, but the basic operation is that a trigger input comes in and the potentiometers are read to determine the probabilities of each output. One is randomly selected and fired. As you can imagine, there are loops and even dead-end nodes and for some musical pieces there is a certain number of beats expected, so a clever reset signal can be sent to pull the chain back to the initial starting state at a regular interval. The results are interesting to listen to and even better to imagine all the possibilities.

The module itself is an Arduino-based custom PCB that is laid out quite cleanly. The BOM, code, and KiCad files are available on GitHub if you want to make one yourself. This isn’t the first instrument we’ve seen [Attoparsec] make, and we’re confident it won’t be the last.

Thanks [smellsofbikes] for sending this one in!

As the pandemic rages on, so does the desire to spend the idle hours tinkering. [knaylor1] spent the second UK lockdown making a sweet Theremin-inspired noise machine with a low parts count that looks like a ton of fun.

It works like this: either shine some light on the photocells, cover them up, or find some middle ground between the two. No matter what you do, you’re going to get cool sounds out of this thing.

The photocells behave like potentiometers that are set up in a voltage divider. An Arduino UNO takes readings in from the photocells, does some MIDI math, and sends the serial data to a program called Hairless MIDI, which in turn sends it to Ableton live.

[knaylor1] is using a plugin called TAL Noisemaker on top of that to produce the dulcet acid house tones that you can hear in the video after the break.

If you’ve never played with light-dependent resistors before, do yourself a favor and spend a little bit of that Christmas cash on a variety pack of these things. You don’t even need an Arduino to make noise, you can use them as the pots in an Atari Punk console or make farty square waves with a hex inverting oscillator chip like the CD40106. Our own [Elliot Williams] once devoted an entire column to making chiptunes.

Inspired by the creative genius of Martin Molin of Wintergatan fame, [iSax] set out to create a robotic MIDI-controlled trombone. It takes years for humans to develop the control and technique required to play the trombone well as the tone produced into the mouthpiece (embouchure) is a tricky combination of air pressure, lip tension, airflow, resonance in the mouth, and other sources of complex pressure.

[iSax] gives a thorough walkthrough of the machine, which is powered by two separate sources of air, one for the position of the slide and the other for producing sound. A potentiometer provides feedback on the position of the slide and a servo controls the flow rate into the silicone resonance chamber. The chamber can be tuned via a stepper motor that applies pressure, slightly altering the chamber’s frequency and pressure. An Arduino with Firmata allows the device to controlled easily from any host computer. A detailed writeup in PDF form is on the Hackday.io project page.

As you can imagine, simulating a human mouth is a daunting task and the number of variables meant that [iSax] ended up with something only vaguely trombone-like. While ultimately it didn’t turn out to be the astounding music machine that [iSax] hoped, it did end up being a fun feat of engineering we can appreciate and admire. Progress towards automatic brass instruments seems to be coming slowly as we saw similar results with this robotic trumpet. Maybe someday we’ll have robot brass sections, but not today.

Thanks [iSax] for sending this one in!

Have you ever wanted to experiment with MIDI, but didn’t know where to start? Or perhaps you didn’t think you could afford to properly outfit your digital beat laboratory, especially given the average hacker’s penchant for blinkenlights? Well worry no more, as [Johan von Konow] has unveiled a collection of DIY MIDI devices that anyone with a 3D printer can build on the cheap.

The LEET modular synthesizer is made up of a keyboard, drum pad, chord keyboard, arpeggiator and a step sequencer that plug into your computer and interface with industry standard digital audio workstation (DAW) programs. The down side is that they don’t do anything on their own, but this simplification allowed [Johan] to really streamline the design and bring the cost of the build down to the bare minimum.

Integrated wire channels mean no PCB is required.

You don’t need to build all the components either, especially if you’re just testing the waters. The keyboard is a great starting point, and even if you have to buy all the components new from eBay, [Johan] says it shouldn’t cost you more than $10 USD to build. You just need an Arduino Pro Micro, some tact switches, and a section of WS2812 RGB LED strip. There’s an excellent chance you’ve already got some of that in the parts bin, which will make it even cheaper.

There is one missing element though: the PCB. But not because you have to source it yourself. Like his clever Arduboy clone we covered earlier in the year, the 3D printed bodies for all of the LEET devices have integrated wiring channels that serve as a stand-in for a traditional circuit board. Simply place all your components, push some stiff 0.3 mm diameter wire down into the channels, and solder the ends. It’s a very neat approach, and something we could see becoming more popular as desktop 3D printers become an increasingly common sight in the home workshop.

Cassettes (if you remember those) are normally used to play back music and other audio, but what about using an old Walkman-style tape player as the instrument itself? That’s exactly what this project by Zack Scholl allows you to do, varying the playback speed to modify pitch output.

It’s a very simple setup, requiring one to hook up wires that enable an Arduino Uno and MCP4725 DAC to adjust the speed using a voltage input. A drone sound is recorded on the tape, which may also involve some hacking depending on your equipment.

The Walkman then emits this recorded sound, which the Arduino — here using a keyboard and computer browser-based MIDI interface — modulates by increasing or decreasing the playback speed.

A Super Nintendo that has trouble showing sprites doesn’t make for a very good game system. As it turns out, Super Mario World is a lot less fun when the titular hero is invisible. So it’s no surprise that [jwotto] ended up tossing this partially functional SNES into the parts bin a few years back.

But he recently came up with a project that may actually benefit from its unusual graphical issues; turning the glitched console into a circuit bent video synthesizer. The system was already displaying corrupted visuals, so [jwotto] figured he’d just help things along by poking around inside and identifying pins that created interesting visual effects when shorted out.

Installing the new electronics into the SNES.

Once he mapped out the pins, he wired them all up to a transistor switching board that he’d come up with for a previous project. That would let an Arduino short out the pins on command while still keeping the microcontroller relatively isolated from the SNES. Then it was just a matter of writing some code that would fire off the transistors based on MIDI input.

The end result is a SNES that creates visual glitches along with the music, which [jwotto] can hook up to a projector when he does live shows. A particularly neat feature is that each game responds in its own way, so he can swap out the cartridge to show completely different visuals without having to change any of the MIDI sequencing.

A project like this serves as a nice introduction to both circuit bending and MIDI hacking for anyone looking to get their digital feet wet, and should pair nicely with the MIDI Game Boy Advance.

[Thanks to Irregular Shed for the tip.]

Max Danilin created an automatic barrel piano that outputs MIDI signals, not through an SD card or internal memory, but by reading sheet music encoded on paper as black dots and dashes.

The paper is pulled under an array of 40 optocouplers using a hand crank — or even power drill — providing musical info to the device’s controlling MKR Zero board. These inputs are translated into USB MIDI, which can then be passed along to any synthesizer for a wide range of audio output.

The electronics and paper feed mechanism are put together in an elegantly simple way, and it appears to work quite well in the video below. In fact, it can even be played while mobile via casters on the bottom of its stand!



  • Newsletter

    Sign up for the PlanetArduino Newsletter, which delivers the most popular articles via e-mail to your inbox every week. Just fill in the information below and submit.

  • Like Us on Facebook