Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Wave problem

Posted on 2004-10-19
1
Medium Priority
?
251 Views
Last Modified: 2010-05-19
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
Comment
Question by:treqw
1 Comment
 
LVL 6

Accepted Solution

by:
Sergio_Hdez earned 2000 total points
ID: 12355938
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Integration Management Part 2
Loops Section Overview

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question