Class daisysp::PolyPluck¶
template <size_t num_voices>
ClassList > daisysp > PolyPluck
#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¶
Initializes the PolyPluck instance.
Parameters:
sample_rate
rate in Hz that the Process() function will be called.
function Process¶
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¶
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