# Stumped! Converting audio amplitude values to images of numbers (like a digital decibel meter)

Hello all,

I’m struggling to solve a problem that I am hoping you can help me with.

I have made an audio-reactive project, installed in nine windows of an old building, at one of the loudest intersections in Chicago. It’s your basic audio-reactive torus, whipped into a frenzy when the external mic hears certain frequency bands. Check it: http://www.jeffphillips.me (first video on the page).

INSTEAD of the colorful ribbon, I want to display digits of a number from 1 to 100, depending on the loudness (or amplitude, total RMS power) of the sound from the mic that is on the ledge of the second floor window.

I just can’t figure out how to turn the value into a digital image of a number that I can project through the windows to make peeps aware of how loud their environment is.

Think of this as a decibel meter, except that I am not actually trying to measure decibels.

I have used the Analyze CHOP to determine the average RMS power, but I’m stumped at how to turn that value into a number that I can show in the windows.

I would greatly appreciate any guidance.

Thank you!

Jeff

Here’s one approach for inspiration…use a Python reference in the Geo Text COMP to point to the CHOP value.
The reference used here is `round(op("null_level")[0])` which means it rounds the float from the CHOP to an integer. Added a Math CHOP to make a nice range (this one converts the 0-1 to 0-100) and a Lag CHOP to make the changes a bit slower so the text is easier to read.

CHOP_to_text.tox (4.0 KB)

Hi Idzard,

Many thanks to you for replying to my question so quickly. Wow!

Your method works brilliantly. Because of your generosity I have learned something new that I will use frequently for future projects.

I can’t thank you enough.

Jeff

1 Like