fsh::stk
fantastic spatial holophonic synthesis toolkit
Loading...
Searching...
No Matches
fsh::synth::Synth Class Reference

Polyphonic synthesizer. More...

#include <Synth.h>

Classes

struct  Params
 Synthesizer parameters. More...
 

Public Member Functions

void setSampleRate (double sampleRate)
 Set the sample rate in Hz.
 
void setParams (const Params &)
 Set the synthesizer's parameters.
 
void process (juce::AudioBuffer< float > &, juce::MidiBuffer &)
 Process a block of audio samples with the given MIDI input.
 
void reset ()
 Reset the synthesizer's state.
 
auto numActiveVoices () const -> size_t
 Queries the number of currently active voices.
 

Detailed Description

Polyphonic synthesizer.

Before using:** Set the sample rate using setSampleRate() and set the synthesizer's parameters using setParams().

To use:** Call process() to compute the next block of audio samples.

‍This class is loosely based on code from the JX10 synthesizer by Matthijs Hollemans.


The documentation for this class was generated from the following files: