Pages: 1 2 [3] 4   Go Down
Author Topic: VU meter audio signal break up  (Read 1705 times)
0 Members and 1 Guest are viewing this topic.
Seattle, WA
Offline Offline
Full Member
***
Karma: 1
Posts: 225
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Notepad didn't work... Any other text/test edited on a windows xp?
Logged

"It's Dr. Evil. I didn't spend six years in Evil Medical School to be called 'mister,' thank you very much."

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Text editor.

Notepad will work. In what way didn't it "work"?
Logged

Seattle, WA
Offline Offline
Full Member
***
Karma: 1
Posts: 225
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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...
Logged

"It's Dr. Evil. I didn't spend six years in Evil Medical School to be called 'mister,' thank you very much."

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Seattle, WA
Offline Offline
Full Member
***
Karma: 1
Posts: 225
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

"It's Dr. Evil. I didn't spend six years in Evil Medical School to be called 'mister,' thank you very much."

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 176
Posts: 12283
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


"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.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 46090
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Seattle, WA
Offline Offline
Full Member
***
Karma: 1
Posts: 225
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Oh. That makes a ton of sense, I'll try it when I get home. Could someone please explain how the library works???!?
Logged

"It's Dr. Evil. I didn't spend six years in Evil Medical School to be called 'mister,' thank you very much."

Seattle, WA
Offline Offline
Full Member
***
Karma: 1
Posts: 225
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

mmk, felling reeeeeaaaaaaaaly smart right now. that worked, does anyone know how it works?
Logged

"It's Dr. Evil. I didn't spend six years in Evil Medical School to be called 'mister,' thank you very much."

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Seattle, WA
Offline Offline
Full Member
***
Karma: 1
Posts: 225
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

"It's Dr. Evil. I didn't spend six years in Evil Medical School to be called 'mister,' thank you very much."

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Seattle, WA
Offline Offline
Full Member
***
Karma: 1
Posts: 225
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

what function do i use for that?
Logged

"It's Dr. Evil. I didn't spend six years in Evil Medical School to be called 'mister,' thank you very much."

Seattle, WA
Offline Offline
Full Member
***
Karma: 1
Posts: 225
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In the library that is? where did the 128 items come from?
Logged

"It's Dr. Evil. I didn't spend six years in Evil Medical School to be called 'mister,' thank you very much."

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: 1 2 [3] 4   Go Up
Jump to: