kopia lustrzana https://github.com/kosme/arduinoFFT
Fixed small spelling mistakes.
rodzic
bb99065f9a
commit
dec237ab14
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
|
|
||||||
Example of use of the FFT libray
|
Example of use of the FFT library
|
||||||
Copyright (C) 2014 Enrique Condes
|
Copyright (C) 2014 Enrique Condes
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
/*
|
/*
|
||||||
|
|
||||||
Example of use of the FFT libray to compute FFT for several signals over a range of frequencies.
|
Example of use of the FFT library to compute FFT for several signals over a range of frequencies.
|
||||||
The exponent is calculated once before the excecution since it is a constant.
|
The exponent is calculated once before the execution since it is a constant.
|
||||||
This saves resources during the excecution of the sketch and reduces the compiled size.
|
This saves resources during the execution of the sketch and reduces the compiled size.
|
||||||
The sketch shows the time that the computing is taking.
|
The sketch shows the time that the computing is taking.
|
||||||
Copyright (C) 2014 Enrique Condes
|
Copyright (C) 2014 Enrique Condes
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
|
|
||||||
Example of use of the FFT libray to compute FFT for a signal sampled through the ADC.
|
Example of use of the FFT library to compute FFT for a signal sampled through the ADC.
|
||||||
Copyright (C) 2018 Enrique Condés and Ragnar Ranøyen Homb
|
Copyright (C) 2018 Enrique Condés and Ragnar Ranøyen Homb
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
|
|
||||||
Example of use of the FFT libray
|
Example of use of the FFT library
|
||||||
Copyright (C) 2018 Enrique Condes
|
Copyright (C) 2018 Enrique Condes
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
of each of the frequencies that compose the signal are calculated. Finally,
|
of each of the frequencies that compose the signal are calculated. Finally,
|
||||||
the frequency spectrum magnitudes are printed. If you use the Arduino IDE
|
the frequency spectrum magnitudes are printed. If you use the Arduino IDE
|
||||||
serial plotter, you will see a single spike corresponding to the 1000 Hz
|
serial plotter, you will see a single spike corresponding to the 1000 Hz
|
||||||
frecuency.
|
frequency.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "arduinoFFT.h"
|
#include "arduinoFFT.h"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
|
|
||||||
Example of use of the FFT libray
|
Example of use of the FFT library
|
||||||
Copyright (C) 2014 Enrique Condes
|
Copyright (C) 2014 Enrique Condes
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
|
|
||||||
FFT libray
|
FFT library
|
||||||
Copyright (C) 2010 Didier Longueville
|
Copyright (C) 2010 Didier Longueville
|
||||||
Copyright (C) 2014 Enrique Condes
|
Copyright (C) 2014 Enrique Condes
|
||||||
|
|
||||||
|
@ -230,7 +230,7 @@ void arduinoFFT::DCRemoval(double *vData, uint16_t samples)
|
||||||
|
|
||||||
void arduinoFFT::Windowing(uint8_t windowType, uint8_t dir)
|
void arduinoFFT::Windowing(uint8_t windowType, uint8_t dir)
|
||||||
{// Weighing factors are computed once before multiple use of FFT
|
{// Weighing factors are computed once before multiple use of FFT
|
||||||
// The weighing function is symetric; half the weighs are recorded
|
// The weighing function is symmetric; half the weighs are recorded
|
||||||
double samplesMinusOne = (double(this->_samples) - 1.0);
|
double samplesMinusOne = (double(this->_samples) - 1.0);
|
||||||
for (uint16_t i = 0; i < (this->_samples >> 1); i++) {
|
for (uint16_t i = 0; i < (this->_samples >> 1); i++) {
|
||||||
double indexMinusOne = double(i);
|
double indexMinusOne = double(i);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
|
|
||||||
FFT libray
|
FFT library
|
||||||
Copyright (C) 2010 Didier Longueville
|
Copyright (C) 2010 Didier Longueville
|
||||||
Copyright (C) 2014 Enrique Condes
|
Copyright (C) 2014 Enrique Condes
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue