Skip to content

Class daisysp::PolyPluck

template <size_t num_voices>

ClassList > daisysp > PolyPluck

More...

  • #include <PolyPluck.h>

Public Functions

Type Name
void Init (float sample_rate)
float Process (float & trig, float note)
void SetDecay (float p)

Detailed Description

Simplified Pseudo-Polyphonic Pluck Voice

Template Based Pluck Voice, with configurable number of voices and simple pseudo-polyphony.

DC Blocking included to prevent biases from causing unwanted saturation distortion.

Author**: shensley

Date Added**: March 2020

Public Functions Documentation

function Init

inline void daisysp::PolyPluck::Init (
    float sample_rate
) 

Initializes the PolyPluck instance.

Parameters:

  • sample_rate rate in Hz that the Process() function will be called.

function Process

inline float daisysp::PolyPluck::Process (
    float & trig,
    float note
) 

Process function, synthesizes and sums the output of all voices, triggering a new voice with frequency of MIDI note number when trig > 0.

Parameters:

  • trig value by reference of trig. When trig > 0 a the next voice will be triggered, and trig will be set to 0.
  • note MIDI note number for the active_voice.

function SetDecay

inline void daisysp::PolyPluck::SetDecay (
    float p
) 

Sets the decay coefficients of the pluck voices.

Parameters:

  • p expects 0.0-1.0 input.


The documentation for this class was generated from the following file external-docs/DaisySP/DaisySP-LGPL/Source/PhysicalModeling/PolyPluck.h