VibroSonics  v1.0.2-mozzi-implementation-309-gf5440e1
Arduino Library for Translating Audio into Vibrations
Loading...
Searching...
No Matches
VibrosonicsAPI.h File Reference
#include <cmath>
#include <Arduino.h>
#include <AudioLab.h>
#include <AudioPrism.h>
#include <Fast4ier.h>
#include <complex>
#include <cstdint>
#include "Grain.h"
#include "Wave.h"
Include dependency graph for VibrosonicsAPI.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  VibrosonicsAPI
 

Variables

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.
 

Variable Documentation

◆ 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

float FREQ_WIDTH = 1.0 / FREQ_RES
constexpr

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