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

Re: [fpc-pascal] Constants in generics

2017-04-09 Thread Ryan Joseph
> On Apr 9, 2017, at 6:13 PM, Maciej Izak wrote: > > sure, but not directly. Try this: Thanks, that’s a seriously funky hack but it works. :) The only downside is you need to define types every time you need a different size. Is this a known feature request or anything on

Re: [fpc-pascal] fpc code for Java class and Android.

2017-04-09 Thread fredvs
> For this, Xorg must be installed. Huh, of course only for gui applications (fpGUI or MSEgui). For no gui console application, compile your fpc java native library for the same cpu than the one of Android. For example RPi (but I am not sure it is the same cpu as android-devices). Fre;D

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

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] Constants in generics

2017-04-09 Thread Maciej Izak
2017-04-09 5:18 GMT+02:00 Ryan Joseph : > Is there anyway to make constants work in generics? sure, but not directly. Try this: === code begin === {$MODE DELPHI} type TA = record public const L = 16; end; TB = record public type FData =

Re: [fpc-pascal] fpc code for Java class and Android.

2017-04-09 Thread Paul Breneman
On 04/08/2017 09:21 AM, fredvs wrote: ... Here video that shows all the process: https://sites.google.com/site/designerext/fpc_java.mp4 Thank you *very* much for that nice 3:24 6.2 MB video. Now I need to figure out the most *simple* way to do that on an Android phone or tablet. Thanks,

Re: [fpc-pascal] fpc code for Java class and Android.

2017-04-09 Thread fredvs
> Thank you *very* much for that nice 3:24 6.2 MB video. Thanks for the thanks ;-). > Now I need to figure out the most *simple* way to do that on an Android > phone or tablet. For this, Xorg must be installed. Take a look here: https://blog.hamal.in/?p=15 or here:

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

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

Re: [fpc-pascal] fpc code for Java class and Android.

2017-04-09 Thread Paul Breneman
On 04/09/2017 11:32 AM, fredvs wrote: For this, Xorg must be installed. Huh, of course only for gui applications (fpGUI or MSEgui). For no gui console application, compile your fpc java native library for the same cpu than the one of Android. For example RPi (but I am not sure it is the same

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

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

[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

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