Posts | Comments

Planet Arduino

Archive for the ‘synthesizer’ Category

If you’re heard the pop music emanating from any recent reality TV show, you won’t be surprised to learn that AI is perfectly capable of generating tunes on demand. It won’t replace true artistry any time soon, but AI music fits all of the technical criteria. But typing a prompt is boring, which is why Arvind Sanjeev constructed this gorgeous and imaginative AI synthesizer called SPIN.

SPIN is beautiful and looks like a cross between a turntable and a drum machine. Those visual cues hint at its function. The user can press buttons on the right-side pad to define musical characteristics, which then form a prompt for a language model called MusicGen. That synthesizes music according to the selected characteristics, like “happy” and “lo-fi.” The music then starts playing and the user can control its speed and direction using the record on the turntable — even scratching like a DJ if they want.

A Raspberry Pi 4 Model B runs MusicGen, but it receives inputs through an Arduino Mega 2560 connected to the buttons. There are also dials to set song duration and BPM (beats per minute), as well as control knobs.

The turntable is a Numark PT-01, but the vinyl is a special dummy record that only contains a time code track. The sound from that then feeds through the audio driver back to the Raspberry Pi, where it is decoded to control the playback of the synthesized music. 

SPIN is truly stunning to look at and its functionality is quite interesting, but Sanjeev’s real motivation was to raise awareness about the ethics of AI-generated art and the original human-made art it is trained on. 

The post SPIN is a beautiful and imaginative AI synthesizer appeared first on Arduino Blog.

The Eowave Persephone was an interesting ribbon synthesizer that let musicians control frequency by moving their fingers across a long touch sensor. Ben Glover used to own one, but sold it. During shipping to the buyer, it got lost in the mail and so Glover can’t even buy it back. He regretted losing his Eowave Persephone, so he decided to create his own ribbon synthesizer called the Screech Owl.

If you could even find one, buying a used Eowave Persephone today would likely set you back at least a thousand dollars. But the Screech Owl is affordable to build, operates in the same manner, and sounds very similar. Glover is a novice maker and was able to pull of this project by outsourcing much of the work to ChatGPT and vendors on Fiverr.

One part that Glover designed himself was the custom PCB that acts as a shield for an Arduino Leonardo board. The Arduino handles the synthesis according to the input coming from the ribbon. That ribbon is actually two sensors: a SoftPot 500mm-long membrane potentiometer for position and thin film pressure sensor to measure force for aftertouch. Those components fit into a simple but attractive, laser-cut MDF enclosure.

Now Glover can relive the experience of playing the Eowave Persephone without the immense cost.

The post Unique synthesizer screeches like an owl appeared first on Arduino Blog.

Synthesizers have existed in their current form for several decades now. In essence, they generate simple waveforms that are then either added or subtracted together and modified through the use of filters, envelopes, and modulators to control pitch, volume, and several other characteristics. Due to their simplicity, many types of components can be combined to create them with a wide variety of unique characteristics.

Built by Ignacio Ríos, his take on the synthesizer incorporates an Arduino Nano along with a series of buttons, potentiometers, and an amplifier to produce sounds. It starts by taking a carrier frequency that is modulated by a secondary oscillator, similar to how FM radio functions. From here, four potentiometers modify how the carrier frequency responds to the modulated wave. Another four potentiometers change the attack, decay, sustain, and release durations, all of which are read by the Nano’s onboard ADC.

Each of the keyboard’s keys are actuated with a tactile switch that constantly gets polled for when it is either pressed or released. When pressing a key, the program updates the current note being played and each of the four channels with the computed values from the aforementioned potentiometers. Finally, the PWM pin’s pulse width is updated to reflect the new value.

After 3D printing a shell, the 17 keys for the keyboard, and a few dials, Ignacio assembled the synthesizer together and was able to successfully play a series of varied notes. To see this in action, you can watch Ríos’ YouTube video below or check out his write-up on Instructables.

The post This Arduino Nano-based synthesizer can produce a wide range of intriguing sounds appeared first on Arduino Blog.

There comes a point in every Arduino’s life where, if it’s lucky, it becomes a permanent fixture in a project. We can’t think of too many better forever homes for an Arduino than inside of a 3D-printed synthesizer such as this 17-key number by [ignargomez] et al.

While there are myriad ways to synthesizer, this one uses the tried-and-true method of FM synthesis courtesy of an Arduino Nano R3. In addition to the 17 keys, there are eight potentiometers here — four are used for FM synthesis control, and the other four are dedicated to attack/delay/sustain/release (ADSR) control of the sound envelope.

One of the interesting things here is that [ignargomez] and their team were short a few regular pots and modified a couple of slide pots for circular use — we wish there was more information on that. As a result, the 3D printed enclosure underwent several iterations. Be sure to check out the brief demo after the break.

Don’t have any spare Arduinos? The BBC Micro:bit likes to make noise, too.

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.

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.

When looking through existing Arduino drum kit projects, [joekutz] noticed that most of them just used the microcontroller as an input for an existing MIDI device. That’s fine if you’re just looking to build your own hardware interface, but he wondered if it would be possible to forgo the MIDI device completely and actually generate the audio internally.

To be sure, this is a lot to ask of an 8-bit microcontroller, which is probably why nobody does it this way. But [joekutz] wasn’t giving up without a fight. One of the trickiest aspects was storing the samples: the 8-bit, 11.025 KHz mono WAV files ultimately had to be converted into C data arrays with a custom Python script.

Unfortunately, since the samples are essentially part of the drum’s source code, he says distributing the firmware is something of a problem. Though it sounds as though there might be a solution to this soon for those who want to play along at home.

But don’t get the impression that this project is just software. Check out the custom impact sensors lovingly crafted from popsicle sticks and metal cut from soda cans, which have been mated with sections cut out of old DVD-Rs. Actually getting the beats out of the Arduino required the addition of a R2R DAC circuit and a TDA2822 amplifier. In the video after the break, you can hear the results for yourself.

[joekutz] is no stranger to homebrew electronic instruments. When we last heard from him, he was turning a very pink keyboard into his own personal circuit bending playground.

Some years ago, Emily Velasco started exploring the idea of creating a musical instrument based on a pendulum. This didn’t work out exactly the way she’d planned, but after several iterations — and inspiration from a cat toy — the device eventually turned into a sort of wobbling egg-shaped instrument, which sings as it tilts and tumbles. 

The Orb —  as seen and heard in the video below — is truly strange, reminiscent of a theremin morphed with a trendy bowl-shaped wooden speaker. 

As it’s spun, the Orb produces a sort of warbling noise, and one can position it to vary the sound by hand if they so desire. Inside lies an Arduino Nano running the Mozzi audio synthesis library, along with an accelerometer and audio amplifier board. 

SunVox synth software allows you to create electronic music on a wide variety of platforms. Now, with his ZT-2020 project — which resembles a miniature arcade game — YouTuber “fascinating earthbound objects” has a dedicated input scheme.

This cabinet prominently features a wide array of buttons, a directional input from a PlayStation controller, and 16 potentiometer knobs. There’s also a screen on top for video output. 

Inside a Raspberry Pi runs SunVox, while most of the buttons and all of the input knobs are connected to an Arduino Mega. The Mega plays the role of MIDI controller as well, passing digital music info along to produce beautiful electronic music!



  • 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