# Trellis M4 Audio Filter Visualizer

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/067/291/medium800thumb/neotrellis_fir_viz_trellism4.jpg?1544202415)

https://youtu.be/D_YGIDe1Ng4

Colored lights bouncing to the music is a must have for any party. Now you can bring the party to your NeoTrellis M4 Express with the Audio Visualizer and Filter! With realtime Fast Fourier Transform (FFT) frequency spectrum analysis, the music coming into your NeoTrellis STEMMA adapter (from a computer, phone, Walkman, turntable pre-amp, etc.) is converted into colors and lights on the buttons to display the magnitude of the sound in different frequency bands.

Your music then passes through to the TRRS headphone jack on the NeoTrellis so you can listen to it. But that's not all! We've also built in a low pass filter and band pass filter so you can trigger awesome sounding effects at the push of a button!

We'll also build a small circuit with capacitors and resistors to center the incoming audio around the proper voltage for the NeoTrellis M4's analog-to-digital (ADC) converter.

## Parts
### Adafruit NeoTrellis M4 with Enclosure and Buttons Kit Pack

[Adafruit NeoTrellis M4 with Enclosure and Buttons Kit Pack](https://www.adafruit.com/product/4020)
So you've got a cool/witty name for your band, a Soundcloud account,&nbsp;[a 3D-printed Daft Punk helmet](https://learn.adafruit.com/3d-printed-daft-punk-helmet-with-bluetooth)...&nbsp;so what could be missing from your road to stardom? The **NeoTrellis M4 Kit...**

Out of Stock
[Buy Now](https://www.adafruit.com/product/4020)
[Related Guides to the Product](https://learn.adafruit.com/products/4020/guides)
![Demo Video of Hands pressing buttons on lit up NeoTrellis M4.](https://cdn-shop.adafruit.com/product-videos/640x480/4020-00.jpg)

### Adafruit NeoTrellis M4 Mainboard - featuring SAMD51

[Adafruit NeoTrellis M4 Mainboard - featuring SAMD51](https://www.adafruit.com/product/3938)
We got a big ol' blender and tossed in an ItsyBitsy M4, two NeoTrellis boards and an electret mic amp - turned on the 'mix' button and out came the NeoTrellis M4 - a super fun dev board for anyone who likes to squish buttons, see pretty lights and maybe make a tune or...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3938)
[Related Guides to the Product](https://learn.adafruit.com/products/3938/guides)
![Overhead shot of big, black, rectangle-shaped audio dev board.](https://cdn-shop.adafruit.com/640x480/3938-09.jpg)

### NeoTrellis M4 Acrylic Enclosure Kit

[NeoTrellis M4 Acrylic Enclosure Kit](https://www.adafruit.com/product/3963)
So you've got your&nbsp;[Adafruit NeoTrellis M4](https://www.adafruit.com/product/3938), a cool/witty name for your band, a Soundcloud account,&nbsp;[a 3D-printed Daft Punk helmet](https://learn.adafruit.com/3d-printed-daft-punk-helmet-with-bluetooth)...&nbsp;so what...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3963)
[Related Guides to the Product](https://learn.adafruit.com/products/3963/guides)
![NeoTrellis M4 Acrylic Enclosure Kit with plastic pieces](https://cdn-shop.adafruit.com/640x480/3963-06.jpg)

### Silicone Elastomer 4x4 Button Keypad - for 3mm LEDs

[Silicone Elastomer 4x4 Button Keypad - for 3mm LEDs](https://www.adafruit.com/product/1611)
So squishy! These silicone elastomer keypads are just waiting for your fingers to press them. Go ahead, squish all you like! (They're durable and easy to clean, just wipe with mild soap and water) These are just like the light up rubber buttons you find on stuff like appliances and tools,...

In Stock
[Buy Now](https://www.adafruit.com/product/1611)
[Related Guides to the Product](https://learn.adafruit.com/products/1611/guides)
![Angled Shot of the Silicone Elastomer 4x4 Button Keypad - for 3mm LEDs.](https://cdn-shop.adafruit.com/640x480/1611-07.jpg)

### 3.5mm (1/8") Stereo Audio Jack Terminal Block

[3.5mm (1/8") Stereo Audio Jack Terminal Block](https://www.adafruit.com/product/2791)
One truth about working with audio is you always need the cable or adapter you _don't_ have in your toolbox. That's why we love these terminal-block audio connectors so much. **No soldering required!** Use stranded or solid core wire and a small screw driver to...

In Stock
[Buy Now](https://www.adafruit.com/product/2791)
[Related Guides to the Product](https://learn.adafruit.com/products/2791/guides)
![3.5mm (1/8) Stereo Audio Jack Terminal Block](https://cdn-shop.adafruit.com/640x480/2791-01.jpg)

### JST PH 2mm 4-Pin to Female Socket Cable - I2C STEMMA Cable

[JST PH 2mm 4-Pin to Female Socket Cable - I2C STEMMA Cable](https://www.adafruit.com/product/3950)
This cable will let you turn a JST PH 4-pin cable port into 4 individual wires with high-quality 0.1" female sockets on the end. We're carrying these to match up with any of our boards with 'STEMMA' connectors on them such as the <a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/3950)
[Related Guides to the Product](https://learn.adafruit.com/products/3950/guides)
![Angled shot of STEMMA JST PH 4-Pin to Female Header Cable - 200mm.](https://cdn-shop.adafruit.com/640x480/3950-02.jpg)

### Through-Hole Resistors - 10K ohm 5% 1/4W - Pack of 25

[Through-Hole Resistors - 10K ohm 5% 1/4W - Pack of 25](https://www.adafruit.com/product/2784)
ΩMG! You're not going to be able to resist these handy resistor packs!&nbsp;Well, axially, they&nbsp;do all of the resisting for you!

This is a **25 Pack of 10K Ω Resistors.** More specifically, they are **carbon film** , through-hole...

In Stock
[Buy Now](https://www.adafruit.com/product/2784)
[Related Guides to the Product](https://learn.adafruit.com/products/2784/guides)
![Angled shot of 25 Through-Hole Resistors - 10K ohm 5% 1/4W.](https://cdn-shop.adafruit.com/640x480/2784-00.jpg)

### 10uF 50V Electrolytic Capacitors - Pack of 10

[10uF 50V Electrolytic Capacitors - Pack of 10](https://www.adafruit.com/product/2195)
We like capacitors so much we made a&nbsp;[kids' show about them.](https://www.youtube.com/watch?v=sy_G1oYRQmM)&nbsp; &nbsp;They're super handy and it's really helpful to have a variety lying around to pick and choose from.

<p...></p...>In Stock
[Buy Now](https://www.adafruit.com/product/2195)
[Related Guides to the Product](https://learn.adafruit.com/products/2195/guides)
![Pack of 10 through hole 10uF 50V Electrolytic Capacitors](https://cdn-shop.adafruit.com/640x480/2195-00.jpg)

### USB cable - USB A to Micro-B

[USB cable - USB A to Micro-B](https://www.adafruit.com/product/592)
This here is your standard A to micro-B USB cable, for USB 1.1 or 2.0. Perfect for connecting a PC to your Metro, Feather, Raspberry Pi or other dev-board or microcontroller

Approximately 3 feet / 1 meter long

In Stock
[Buy Now](https://www.adafruit.com/product/592)
[Related Guides to the Product](https://learn.adafruit.com/products/592/guides)
![USB cable - USB A to Micro-B - 3 foot long](https://cdn-shop.adafruit.com/640x480/592-01.jpg)

### 3.5mm Male/Male Stereo Cable

[3.5mm Male/Male Stereo Cable](https://www.adafruit.com/product/2698)
Seamlessly transmit high-quality stereo audio with this&nbsp; **3.5mm Male/Male Stereo Cable.&nbsp;**

Ideal for "passing the AUX cord," or&nbsp;connecting audio devices&nbsp;such as&nbsp;smartphones, tablets, MP3 players, car stereos, portable speakers or any other...

In Stock
[Buy Now](https://www.adafruit.com/product/2698)
[Related Guides to the Product](https://learn.adafruit.com/products/2698/guides)
![Black audio cable with 3.5mm audio jacks wrapped like a bow tie.](https://cdn-shop.adafruit.com/640x480/2698-01.jpg)

In addition to the parts above&nbsp; you'll need some powered speakers or headphones to listen to the fly tunes.

### USB Powered Speakers

[USB Powered Speakers](https://www.adafruit.com/product/1363)
Add some extra boom to your audio project with these powered loudspeakers. We sampled half a dozen different models to find ones with a good frequency response, so you'll get quality audio output for music playback. Simply connect the standard 3.5mm stereo plug into your Raspberry Pi model...

In Stock
[Buy Now](https://www.adafruit.com/product/1363)
[Related Guides to the Product](https://learn.adafruit.com/products/1363/guides)
![Two square-ish USB Powered Speakers](https://cdn-shop.adafruit.com/640x480/1363-07.jpg)

### Cell-phone TRRS Headset - Earbud Headphones w/ Microphone

[Cell-phone TRRS Headset - Earbud Headphones w/ Microphone](https://www.adafruit.com/product/1966)
These earbud headphones are the perfect accessory for your FONA - they've been tested to work with our modules - but can be used with any iOS or Android device that uses a TRRS pinout.&nbsp; The buds themselves are&nbsp;16mm in diameter with a nice 40" long. &nbsp;They come with a...

In Stock
[Buy Now](https://www.adafruit.com/product/1966)
[Related Guides to the Product](https://learn.adafruit.com/products/1966/guides)
![Cell-phone TRRS Headset - Earbud Headphones with Microphone](https://cdn-shop.adafruit.com/640x480/1966-03.jpg)

- [Next Page](https://learn.adafruit.com/trellis-m4-audio-visualizer-and-filter/filters-and-visualisation.md)

## Featured Products

### Adafruit NeoTrellis M4 with Enclosure and Buttons Kit Pack

[Adafruit NeoTrellis M4 with Enclosure and Buttons Kit Pack](https://www.adafruit.com/product/4020)
So you've got a cool/witty name for your band, a Soundcloud account,&nbsp;[a 3D-printed Daft Punk helmet](https://learn.adafruit.com/3d-printed-daft-punk-helmet-with-bluetooth)...&nbsp;so what could be missing from your road to stardom? The **NeoTrellis M4 Kit...**

Out of Stock
[Buy Now](https://www.adafruit.com/product/4020)
[Related Guides to the Product](https://learn.adafruit.com/products/4020/guides)
### Adafruit NeoTrellis M4 Mainboard - featuring SAMD51

[Adafruit NeoTrellis M4 Mainboard - featuring SAMD51](https://www.adafruit.com/product/3938)
We got a big ol' blender and tossed in an ItsyBitsy M4, two NeoTrellis boards and an electret mic amp - turned on the 'mix' button and out came the NeoTrellis M4 - a super fun dev board for anyone who likes to squish buttons, see pretty lights and maybe make a tune or...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3938)
[Related Guides to the Product](https://learn.adafruit.com/products/3938/guides)
### NeoTrellis M4 Acrylic Enclosure Kit

[NeoTrellis M4 Acrylic Enclosure Kit](https://www.adafruit.com/product/3963)
So you've got your&nbsp;[Adafruit NeoTrellis M4](https://www.adafruit.com/product/3938), a cool/witty name for your band, a Soundcloud account,&nbsp;[a 3D-printed Daft Punk helmet](https://learn.adafruit.com/3d-printed-daft-punk-helmet-with-bluetooth)...&nbsp;so what...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3963)
[Related Guides to the Product](https://learn.adafruit.com/products/3963/guides)
### Silicone Elastomer 4x4 Button Keypad - for 3mm LEDs

[Silicone Elastomer 4x4 Button Keypad - for 3mm LEDs](https://www.adafruit.com/product/1611)
So squishy! These silicone elastomer keypads are just waiting for your fingers to press them. Go ahead, squish all you like! (They're durable and easy to clean, just wipe with mild soap and water) These are just like the light up rubber buttons you find on stuff like appliances and tools,...

In Stock
[Buy Now](https://www.adafruit.com/product/1611)
[Related Guides to the Product](https://learn.adafruit.com/products/1611/guides)
### 3.5mm (1/8") Stereo Audio Jack Terminal Block

[3.5mm (1/8") Stereo Audio Jack Terminal Block](https://www.adafruit.com/product/2791)
One truth about working with audio is you always need the cable or adapter you _don't_ have in your toolbox. That's why we love these terminal-block audio connectors so much. **No soldering required!** Use stranded or solid core wire and a small screw driver to...

In Stock
[Buy Now](https://www.adafruit.com/product/2791)
[Related Guides to the Product](https://learn.adafruit.com/products/2791/guides)
### JST PH 2mm 4-Pin to Female Socket Cable - I2C STEMMA Cable

[JST PH 2mm 4-Pin to Female Socket Cable - I2C STEMMA Cable](https://www.adafruit.com/product/3950)
This cable will let you turn a JST PH 4-pin cable port into 4 individual wires with high-quality 0.1" female sockets on the end. We're carrying these to match up with any of our boards with 'STEMMA' connectors on them such as the <a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/3950)
[Related Guides to the Product](https://learn.adafruit.com/products/3950/guides)
### Through-Hole Resistors - 10K ohm 5% 1/4W - Pack of 25

[Through-Hole Resistors - 10K ohm 5% 1/4W - Pack of 25](https://www.adafruit.com/product/2784)
ΩMG! You're not going to be able to resist these handy resistor packs!&nbsp;Well, axially, they&nbsp;do all of the resisting for you!

This is a **25 Pack of 10K Ω Resistors.** More specifically, they are **carbon film** , through-hole...

In Stock
[Buy Now](https://www.adafruit.com/product/2784)
[Related Guides to the Product](https://learn.adafruit.com/products/2784/guides)
### 10uF 50V Electrolytic Capacitors - Pack of 10

[10uF 50V Electrolytic Capacitors - Pack of 10](https://www.adafruit.com/product/2195)
We like capacitors so much we made a&nbsp;[kids' show about them.](https://www.youtube.com/watch?v=sy_G1oYRQmM)&nbsp; &nbsp;They're super handy and it's really helpful to have a variety lying around to pick and choose from.

<p...></p...>In Stock
[Buy Now](https://www.adafruit.com/product/2195)
[Related Guides to the Product](https://learn.adafruit.com/products/2195/guides)

## Related Guides

- [Adafruit NeoTrellis M4 Express](https://learn.adafruit.com/adafruit-neotrellis-m4.md)
- [NeoTrellis M4 Bumper](https://learn.adafruit.com/neotrellis-m4-bumper.md)
- [Trellis M4 Beat Sequencers](https://learn.adafruit.com/trellis-m4-beat-sequencer.md)
- [Bringing Back THE VOICE of Speak & Spell](https://learn.adafruit.com/bringing-back-the-voice-of-speak-spell.md)
- [Classic MIDI Synth Control with Trellis M4](https://learn.adafruit.com/classic-midi-synth-control-with-trellis-m4.md)
- [NeoTrellis M4 Animated Dice Roller](https://learn.adafruit.com/neotrellis-dice.md)
- [NeoTrellis M4 MIDI File Synthesizer](https://learn.adafruit.com/neotrellism4-midi-file-player-synthesizer.md)
- [Adafruit NeoTrellis](https://learn.adafruit.com/adafruit-neotrellis.md)
- [NeoTrellis M4 Memory Game](https://learn.adafruit.com/neotrellis-m4-memory-game.md)
- [Mini UNTZtrument: 3D Printed MIDI Controller](https://learn.adafruit.com/mini-untztrument-3d-printed-midi-controller.md)
- [Launch Deck Trellis M4](https://learn.adafruit.com/launch-deck-trellis-m4.md)
- [Neotrellis M4 Live Launcher](https://learn.adafruit.com/neotrellis-live-launcher.md)
- [NeoTrellis M4 Arpeggiator Synth](https://learn.adafruit.com/neotrellis-arpeggiator-synth.md)
- [NeoTrellis Sound Board](https://learn.adafruit.com/neotrellis-soundboard.md)
- [NeoTrellis Game](https://learn.adafruit.com/neotrellis-box-game.md)
