Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
pitch.hpp File Reference

Semitone-to-frequency-ratio conversion. More...

Detailed Description

Semitone-to-frequency-ratio conversion.

Definition in file pitch.hpp.

Go to the source code of this file.

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs code.
 
namespace  sbl::dsp
 
namespace  sbl::dsp::math
 Cross-cutting math used at every audio layer.
 

Functions

float sbl::dsp::math::semitones_to_ratio (float semitones)
 
float sbl::dsp::math::semitones_to_ratio_safe (float semitones)
 
float sbl::dsp::math::note_to_ratio (float midi_note)
 
float sbl::dsp::math::note_to_frequency (float midi_note)
 MIDI note to frequency in Hz. A4 = 440 Hz.
 
uint32_t sbl::dsp::math::note_to_phase_increment (float midi_note, float sample_rate)
 
constexpr float sbl::dsp::math::note_of_su (float su)
 
constexpr float sbl::dsp::math::su_of_note (float note)
 

Variables

constexpr float sbl::dsp::math::PITCH_SU_MIN_NOTE = 24.0f
 
constexpr float sbl::dsp::math::PITCH_SU_MAX_NOTE = 120.0f
 
constexpr float sbl::dsp::math::PITCH_SU_NOTE_RANGE = PITCH_SU_MAX_NOTE - PITCH_SU_MIN_NOTE