SynthesizerSettings

class SynthesizerSettings

Holds the settings for a synthesizer.

Note that settings are assigned at synthesizer creation and can’t be changed afterwards.

Public Functions

SynthesizerSettings(uint32_t sample_rate)

Constructor.

Parameters:

sample_rate – The sample rate of the synthesized signal

void setSampleRate(uint32_t sample_rate)

Set the sample rate.

Parameters:

sample_rate – The sample rate of the synthesized signal

void setBlockSize(uint16_t block_size)

Set the block size used internally during synthesis.

Parameters:

block_size – The block size

void setMaximumPolyphony(uint16_t maximum_polyphony)

Set the maximum number of notes that can be played at any single time.

Parameters:

maximum_polyphony – The maximum number of concurrent notes

void enableReverbAndChorus(bool enable)

Enable/disable reverb and chorus.

Parameters:

enable – Whether to enable or disable

inline uint32_t sampleRate() const

Returns the sample rate of the synthesized signal.

inline uint16_t blockSize() const

Returns the block size used internally during synthesis.

inline uint16_t maximumPolyphony() const

Returns the maximum number of notes that can be played at any single time.

inline bool reverbAndChorusEnabled() const

Indicates if reverb and chorus are enabled.