25#include <juce_audio_basics/juce_audio_basics.h>
56 void process(juce::AudioBuffer<float>&, juce::MidiBuffer&);
68 static const auto numVoices = 6;
69 std::array<
Voice, numVoices> _voices;
Represents a MIDI event, such as a note on/off or pitch bend.
Definition MidiEvent.h:31
Polyphonic synthesizer.
Definition Synth.h:41
void process(juce::AudioBuffer< float > &, juce::MidiBuffer &)
Process a block of audio samples with the given MIDI input.
Definition Synth.cpp:72
void reset()
Reset the synthesizer's state.
Definition Synth.cpp:35
void setParams(const Params &)
Set the synthesizer's parameters.
Definition Synth.cpp:66
void setSampleRate(double sampleRate)
Set the sample rate in Hz.
Definition Synth.cpp:29
auto numActiveVoices() const -> size_t
Queries the number of currently active voices.
Definition Synth.cpp:99
Represents a single voice of a polyphonic synthesizer.
Definition Voice.h:47
Synthesizer parameters.
Definition Synth.h:45
Voice::Params voice
Voice parameters.
Definition Synth.h:46
Voice parameters.
Definition Voice.h:51