![]() |
fsh::stk
fantastic spatial holophonic synthesis toolkit
|
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. | |
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.