#include <cmath>
#include <Arduino.h>
#include <AudioLab.h>
#include <AudioPrism.h>
#include <Fast4ier.h>
#include <complex>
#include <cstdint>
#include "Grain.h"
#include "Wave.h"
Go to the source code of this file.
|
constexpr int | WINDOW_SIZE_BY_2 = WINDOW_SIZE >> 1 |
|
constexpr float | FREQ_RES = float(SAMPLE_RATE) / WINDOW_SIZE |
| Frequency range of an FFT bin in Hz.
|
|
constexpr float | FREQ_WIDTH = 1.0 / FREQ_RES |
| Duration of a window, in seconds.
|
|
const int | NUM_WINDOWS = 8 |
| Number of previous windows to be stored and used by modules.
|
|
◆ FREQ_RES
float FREQ_RES = float(SAMPLE_RATE) / WINDOW_SIZE |
|
constexpr |
Frequency range of an FFT bin in Hz.
The resolution is the frequency range, in Hz, represented by each output bin of the Fast Fourier Transform.
Ex: 8192 Samples/Second / 256 Samples/Window = 32 Hz per output bin.
◆ FREQ_WIDTH
Duration of a window, in seconds.
The width is the duration of time represented by a single window's worth of samples. Ex: 256 Samples/Window / 8192 Samples/Second = 0.03125 Seconds/Window.
◆ NUM_WINDOWS
const int NUM_WINDOWS = 8 |
Number of previous windows to be stored and used by modules.
◆ WINDOW_SIZE_BY_2
int WINDOW_SIZE_BY_2 = WINDOW_SIZE >> 1 |
|
constexpr |