Deepnote Synthesizer Voice Library v1.0.0
A C++14 header-only library implementing the THX Deep Note effect
Loading...
Searching...
No Matches
deepnote::DeepnoteVoice Struct Reference

A synthesizer voice implementing the THX Deep Note effect. More...

#include <deepnotevoice.hpp>

Public Member Functions

void detune_oscillators (const nt::DetuneHz detune)
 Detune oscillators symmetrically around the fundamental frequency.
 

Detailed Description

A synthesizer voice implementing the THX Deep Note effect.

The DeepnoteVoice manages multiple detuned oscillators that can smoothly transition between frequencies using an animated LFO and Bezier curve shaping.

Key features:

  • Multiple oscillators with symmetric detuning
  • Non-linear frequency transitions via Bezier curves
  • State-based animation system (PENDING -> IN_TRANSIT -> AT_TARGET)
  • LFO-driven animation with configurable speed multipliers

Usage:

  1. Call init_voice() to set up the voice with desired parameters
  2. Set target frequencies using set_target_frequency()
  3. Call process_voice() in your audio loop to generate samples

Definition at line 90 of file deepnotevoice.hpp.

Member Function Documentation

◆ detune_oscillators()

void deepnote::DeepnoteVoice::detune_oscillators ( const nt::DetuneHz  detune)
inline

Detune oscillators symmetrically around the fundamental frequency.

Distributes oscillators either side of the fundamental frequency using integer multiples of the detune amount. For N oscillators:

  • Single oscillator: no detuning (detune_amount = 0)
  • Multiple oscillators: distributed as ..., -2*detune, -detune, +detune, +2*detune, ...
Parameters
detuneDetuning amount in Hz for each step

Definition at line 221 of file deepnotevoice.hpp.