Re: [fpc-pascal] Good FFT example anywhere?

2017-04-11 Thread Michael Schnell
On 10.04.2017 23:20, Bo Berglund wrote: - A pulse stimulus is applied to the object to measure - The response transient is recorded for up to 150 ms OK. In this case you will not need the "Windowing". Instead you need to make sure that the pulse is surrounded by enough Zero-line data. I sugge

Re: [fpc-pascal] Good FFT example anywhere?

2017-04-10 Thread Michael Schnell
On 09.04.2017 10:06, Bo Berglund wrote: It will produce 8192 samples for each measurement. If the "measurements" come as a sequence of sample-blocks, you additional to the core FFT will need a sliding Window algorithm to e.g. create something like a life spectrum display or do a useful convol

Re: [fpc-pascal] Good FFT example anywhere?

2017-04-10 Thread Bo Berglund
On Mon, 10 Apr 2017 09:58 +0200, Michael Schnell wrote: >>It will produce 8192 samples >>for each measurement. > > If the "measurements" come as a sequence of sample-blocks, you > additional to the core FFT will need a sliding Window algorithm to e.g. > create something like a life spectrum dis

Re: [fpc-pascal] Good FFT example anywhere?

2017-04-09 Thread fredvs
> So you are limited to 32768 since the next multiple of 2 (65536) is too big to fit inside a word size variable. Ha, ok, usually, by default, I use 65536 for all DSP's but even with 1024 I get acceptable result (and better latency). OK, I will try. Write you asap. Fre;D - Many thanks

Re: [fpc-pascal] Good FFT example anywhere?

2017-04-09 Thread Bo Berglund
On Sun, 9 Apr 2017 11:34:53 -0700 (MST), fredvs wrote: >> As you can see it uses double, which means you will be OK to supply >> both single and integer values, just load the array with them and they >> will be converted. > >Many thanks for answer. > >Hmmm, it seems magic and very simple to use

Re: [fpc-pascal] Good FFT example anywhere?

2017-04-09 Thread Giuliano Colla
Il 09/04/2017 10:06, Bo Berglund ha scritto: I am looking for some good example of FFT functions in pascal but it seems like what Google serves up is rather old and refers to Turbo-pascal and the like... So maybe someone here knows about some open-source example of FFT using FreePascal (or Delph

Re: [fpc-pascal] Good FFT example anywhere?

2017-04-09 Thread Ched
Hi, As an owner of the Numerical Receipes in Pascal, I can say that the sources codes are *very very old* styled and a rewritting to dynamical array of data is a good idea ! The N.R. are probably written by ForTranists :) But ths book contains lots of useful knowledge en tricks for numericians

Re: [fpc-pascal] Good FFT example anywhere?

2017-04-09 Thread Rolf Grunsky
On 2017-04-09 04:06 AM, Bo Berglund wrote: I am looking for some good example of FFT functions in pascal but it seems like what Google serves up is rather old and refers to Turbo-pascal and the like... So maybe someone here knows about some open-source example of FFT using FreePascal (or Delphi)?

Re: [fpc-pascal] Good FFT example anywhere?

2017-04-09 Thread fredvs
> As you can see it uses double, which means you will be OK to supply > both single and integer values, just load the array with them and they > will be converted. Many thanks for answer. Hmmm, it seems magic and very simple to use. Ok, I will try with my audio library. By the way (who knows)

Re: [fpc-pascal] Good FFT example anywhere?

2017-04-09 Thread Bo Berglund
On Sun, 9 Apr 2017 08:01:07 -0700 (MST), fredvs wrote: >Hello. > >> I was using attached unit some 7 years ago for various speech processing >> purposes. > >+ @Martin > >Can those units be used for sound samples (array of float32 or array ot >integer 32/16) ? > The unit declares the fft procedur

Re: [fpc-pascal] Good FFT example anywhere?

2017-04-09 Thread fredvs
Hello. > I was using attached unit some 7 years ago for various speech processing > purposes. + @Martin Can those units be used for sound samples (array of float32 or array ot integer 32/16) ? Thanks. Fre;D - Many thanks ;-) -- View this message in context: http://free-pascal-general.

Re: [fpc-pascal] Good FFT example anywhere?

2017-04-09 Thread Bo Berglund
On Sun, 9 Apr 2017 11:22:00 +0300, Žilvinas Ledas wrote: > >On 2017-04-09 11:06, Bo Berglund wrote: >> I am looking for some good example of FFT functions in pascal but it >> seems like what Google serves up is rather old and refers to >> Turbo-pascal and the like... >> So maybe someone here know

Re: [fpc-pascal] Good FFT example anywhere?

2017-04-09 Thread Adriaan van Os
I am looking for some good example of FFT functions in pascal but it seems like what Google serves up is rather old and refers to Turbo-pascal and the like... But note that even a perfect FFT will suffer from some side-effects

Re: [fpc-pascal] Good FFT example anywhere?

2017-04-09 Thread Marco van de Voort
In our previous episode, Bo Berglund said: > Turbo-pascal and the like... > So maybe someone here knows about some open-source example of FFT > using FreePascal (or Delphi)? When I looked around I was also pointed towards IPP and FFTW, but shied away from the license consequences (reapllying every

Re: [fpc-pascal] Good FFT example anywhere?

2017-04-09 Thread Adriaan van Os
Bo Berglund wrote: I am looking for some good example of FFT functions in pascal but it seems like what Google serves up is rather old and refers to Turbo-pascal and the like... So maybe someone here knows about some open-source example of FFT using FreePascal (or Delphi)? I want to analyze the

Re: [fpc-pascal] Good FFT example anywhere?

2017-04-09 Thread Žilvinas Ledas
On 2017-04-09 11:06, Bo Berglund wrote: I am looking for some good example of FFT functions in pascal but it seems like what Google serves up is rather old and refers to Turbo-pascal and the like... So maybe someone here knows about some open-source example of FFT using FreePascal (or Delphi)?

Re: [fpc-pascal] Good FFT example anywhere?

2017-04-09 Thread Martin Schreiber
On Sunday 09 April 2017 10:06:41 Bo Berglund wrote: > I am looking for some good example of FFT functions in pascal but it > seems like what Google serves up is rather old and refers to > Turbo-pascal and the like... > So maybe someone here knows about some open-source example of FFT > using FreePa

[fpc-pascal] Good FFT example anywhere?

2017-04-09 Thread Bo Berglund
I am looking for some good example of FFT functions in pascal but it seems like what Google serves up is rather old and refers to Turbo-pascal and the like... So maybe someone here knows about some open-source example of FFT using FreePascal (or Delphi)? I want to analyze the frequency content of