Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
Namespaces | Functions
pitch.hpp File Reference
#include <cstdint>
#include <sbl/dsp/tables/pitch_ratio_high_256.hpp>
#include <sbl/dsp/tables/pitch_ratio_low_256.hpp>
Include dependency graph for pitch.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs functionality.
 
namespace  sbl::dsp
 DSP atoms for audio signal processing.
 

Functions

float sbl::dsp::semitones_to_ratio (float semitones)
 
float sbl::dsp::semitones_to_ratio_safe (float semitones)
 
float sbl::dsp::note_to_ratio (float midi_note)
 
float sbl::dsp::note_to_frequency (float midi_note)
 MIDI note to frequency in Hz. A4 = 440 Hz.
 
uint32_t sbl::dsp::note_to_phase_increment (float midi_note, float sample_rate)
 
float sbl::dsp::exp2_approx (float x)
 Fast 2^x approximation via pitch tables. x in [-10.67, +10.58].
 
float sbl::dsp::exp2_approx_safe (float x)
 Extended range 2^x.