|
Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
The parts of a phase-modulated oscillator: the pitch's step, the index's depth, the PM input. More...
The parts of a phase-modulated oscillator: the pitch's step, the index's depth, the PM input.
What PmPulse is composed of besides its core, for a component that drives cores of its own: several on one phase, or two sides with a path between them. Each part is below the signal transport and takes natural units.
Definition in file pm.hpp.
#include <cmath>#include <cstdint>#include <sbl/dsp/math/pitch.hpp>#include <sbl/dsp/resampling/sinc_upsampler.hpp>#include <sbl/math/clamp.hpp>#include <sbl/math/finite.hpp>Go to the source code of this file.
Classes | |
| class | sbl::dsp::PmInput |
| The PM signal, a sample a frame in and PM_SUBSTEPS values a frame out. More... | |
Namespaces | |
| namespace | sbl |
| Root namespace for all Sound Byte Libs code. | |
| namespace | sbl::dsp |
| The audio stack. | |
Functions | |
| float | sbl::dsp::pm_frequency (float tune, float pitch) |
| The step for a pitch in octaves over a tune. | |
| float | sbl::dsp::pm_depth (float index) |
| Cycles of phase offset per unit of the PM signal for a bipolar index. | |
| float | sbl::dsp::pm_taming (float octaves_above_corner) |
| The share of the depth kept at a pitch over PM_TAMING_CORNER. | |
Variables | |
| constexpr float | sbl::dsp::PM_MAX_FREQUENCY = 0.25f |
| constexpr float | sbl::dsp::PM_MAX_INDEX = 0.5f |
| constexpr float | sbl::dsp::PM_TAMING_CORNER = 1046.5f / 48000.0f |
| Cycles per frame: where pm_taming()'s reduction starts, 1.05 kHz at 48 kHz. | |
| constexpr float | sbl::dsp::PM_TAMING_PER_OCTAVE = 0.3f |
| constexpr uint8_t | sbl::dsp::PM_SUBSTEPS = SincUpsampler::FACTOR |
| constexpr uint8_t | sbl::dsp::PM_LATENCY = SincUpsampler::LATENCY |