SynthLab SDK
SynthVoice

The SynthLab SynthVoice object is responsible for rendering note events and there is one voice object per note of polyphony in the synths. As with the engine, the SynthVoice object has no base class, but is setup to be a base class with the virtual functions and destructor, so feel free to subclass your own when you are ready. More...

Classes

struct  SynthLab::SynthVoiceParameters
 Contains parameters for the Synth Voice component. More...
 
class  SynthLab::SynthVoice
 This is the voice object for a software synth. More...
 

Detailed Description

The SynthLab SynthVoice object is responsible for rendering note events and there is one voice object per note of polyphony in the synths. As with the engine, the SynthVoice object has no base class, but is setup to be a base class with the virtual functions and destructor, so feel free to subclass your own when you are ready.

The voice performs three tasks during the synth’s operation: initialization, responding to MIDI note-on and note-off messages, and controlling the audio signal flow through a set of member objects called modules.

  1. Initialization: the voice calls the module’s reset function
  2. Note-on and Note-off: the voice calls the doNoteOn and doNoteOff methods on its set of modules
  3. Controlling Audio Signal Flow: the voice calls the module’s update and render functions during each block processing cycle, and delivers the rendered audio back to the engine