Re: [music-dsp] proper scaling of an FFT

2015-11-05 Thread Tito Latini
On Wed, Nov 04, 2015 at 08:56:05AM -0800, Phil Burk wrote: > What is the "right" way to scale the inputs of an FFT. > > I have implemented some FFT functions in JSyn. The goal is to support > spectral analysis, processing and synthesis for music applications. > > I would like to be able to

Re: [music-dsp] proper scaling of an FFT

2015-11-05 Thread Phil Burk
Hello Chuck, Thanks for the explanation. > The correct scaling factor depends on what you want to do with it. OK. Then I should probably allow the caller to pass an optional scaling factor. Luckily that is easy to do in Java. I'll keep my current defaults because they seem reasonable for some

Re: [music-dsp] proper scaling of an FFT

2015-11-05 Thread Phil Burk
Hello Tito and Chris, Thanks also for your explanations. Sorry I didn't see them before I responded earlier. I am surprised at the variety of approaches to scaling. It looks like not doing any scaling is an important option. In the latest unreleased code, callers could pass in 1.0 as scale

Re: [music-dsp] proper scaling of an FFT

2015-11-05 Thread Chris Cannam
On Wed, Nov 4, 2015, at 04:56 PM, Phil Burk wrote: > Is there a "right" way or a "wrong" way or is there just "my" way? I think in the context of a library there are two questions here -- what scaling should an FFT implementation use (behind the scenes in the functions it provides), and what

[music-dsp] proper scaling of an FFT

2015-11-04 Thread Phil Burk
What is the "right" way to scale the inputs of an FFT. I have implemented some FFT functions in JSyn. The goal is to support spectral analysis, processing and synthesis for music applications. I would like to be able to measure the amplitude of various sinewave partials in the original signal.

Re: [music-dsp] proper scaling of an FFT

2015-11-04 Thread Charles Z Henry
On Wed, Nov 4, 2015 at 10:56 AM, Phil Burk wrote: > What is the "right" way to scale the inputs of an FFT. > > I have implemented some FFT functions in JSyn. The goal is to support > spectral analysis, processing and synthesis for music applications. > > I would like to be