x
• Status: Solved
• Priority: Medium
• Security: Public
• Views: 255

# Wave problem

Wave problem

How to convert points (Value range between (for example) -1..1) of left and right channel to Frequency (Hz) and Amplitude (db) ?
and
How to convert Frequency (Hz) and Amplitude (db) to points (Value range between (for example) -1..1) of left and right channel ?

as

point (Value range between (for example) -1..1) -> Freq (Hz) and Amp (db)
Freq (Hz) and Amp (db) -> point (Value range between (for example) -1..1)

Thank You.
0
treqw
1 Solution

Commented:
What does "point" means to you? If you imagine a click of sound as a point in the spectrum graphic, then a single point have no sound and no frecuencia: you need a serie of points, that goes up and down in some way, then you could try to get how often it comes up and down (Hz) and how up they goes (db), but in a "continuos" set of points.

Also, if you have a line of points, they can have the form of two sin waves added, so what you need is to decompose this into the sum of simple sinusuidal waves, each one with different "Hz" and "db" values... here you need a FFT (Fast Fourier Transformation) that takes the line as a input and gives you as the output exactly that serie of (Hz,db) pairs.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

## Featured Post

Tackle projects and never again get stuck behind a technical roadblock.