Go Down

Topic: VU meter audio signal break up (Read 2802 times) previous topic - next topic

Paranemertes

Notepad didn't work... Any other text/test edited on a windows xp?
"It's Dr. Evil. I didn't spend six years in Evil Medical School to be called 'mister,' thank you very much."

Nick Gammon

Text editor.

Notepad will work. In what way didn't it "work"?
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Paranemertes

well i copied/pasted the code from the .h file on the old forum into notepad, then i try to save it as a different file, but nothing pops up?? I also tried (under save as) the encoding pull down but only got Unicode, ANSI, UTF-8, or big-endian Unicode...
"It's Dr. Evil. I didn't spend six years in Evil Medical School to be called 'mister,' thank you very much."

Nick Gammon

Nothing pops up? What do you mean? And don't use Unicode or UTF-8.

Look, saving a text file from Notepad should be a simple operation. I don't know how to explain it.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Paranemertes

Yeah i know what you mean.... its making my brain hurt. everything that you guys say makes sense, but when i go to save as, then the drop-down menu of all the different hings i can save it as the only thing their is a .txt file.... no .h or .cpp
"It's Dr. Evil. I didn't spend six years in Evil Medical School to be called 'mister,' thank you very much."

Coding Badly


"Save as type" is a convenience not a requirement.  You can enter any filename you'd like.  Just include the extension when you enter the name.

PaulS

The options on the Save/Save As panel posted by Notepad are Text Documents (*.txt) and All Files (*.*). These options define what files in the current folder are listed (only .txt files or all files) and whether or not the .txt extension is automatically appended. Select All Files. The enter a file name with the .h or .cpp extension, and hit Save.

Paranemertes

Oh. That makes a ton of sense, I'll try it when I get home. Could someone please explain how the library works???!?
"It's Dr. Evil. I didn't spend six years in Evil Medical School to be called 'mister,' thank you very much."

Paranemertes

mmk, felling reeeeeaaaaaaaaly smart right now. that worked, does anyone know how it works?
"It's Dr. Evil. I didn't spend six years in Evil Medical School to be called 'mister,' thank you very much."

Nick Gammon

You better look up Fourier transforms:

http://en.wikipedia.org/wiki/Fourier_transform

and:

http://en.wikipedia.org/wiki/Fourier_analysis


The maths is rather complex, and I must admit I don't understand it all that much.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Paranemertes

oh, so the library doesn't just have a function that says this many outputs wanted (12) then breaks it up? *SIGH* ok... what about anything besides a fft?
"It's Dr. Evil. I didn't spend six years in Evil Medical School to be called 'mister,' thank you very much."

Nick Gammon

Huh? The one for the lots of leds shield simply averaged the arrays so you average down 128 items (or whatever it was) to 12.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Paranemertes

what function do i use for that?
"It's Dr. Evil. I didn't spend six years in Evil Medical School to be called 'mister,' thank you very much."

Paranemertes

In the library that is? where did the 128 items come from?
"It's Dr. Evil. I didn't spend six years in Evil Medical School to be called 'mister,' thank you very much."

Nick Gammon

You are the one that posted a link to the code. Here:

http://www.instructables.com/id/LoL-Shield-Audio-Spectrum-VU-Meter/step3/program-Arduino/

On that page he averages out the FFT values in a few lines of code.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Go Up