#include <SubtractiveSynth.h>
◆ SubtractiveSynth()
| SubtractiveSynth::SubtractiveSynth |
( |
| ) |
|
◆ ~SubtractiveSynth()
| SubtractiveSynth::~SubtractiveSynth |
( |
| ) |
|
|
virtual |
◆ GetRootModule()
| SynthModule * SubtractiveSynth::GetRootModule |
( |
uint16_t | channel | ) |
|
|
overridevirtual |
A derived class must impliment this method to provide a SynthModule that can feed the given channel. Note that the term "channel" is overloaded. It can refer to a channel in a stream of audio (e.g., left, right, mono, etc.), as is the case here, or it can mean a MIDI channel, of which there are 16, so don't get them confused. Context usually makes it clear.
Implements AudioDataLib::MidiSynth.
◆ ReceiveMessage()
| bool SubtractiveSynth::ReceiveMessage |
( |
double | deltaTimeSeconds, |
|
|
const uint8_t * | message, |
|
|
uint64_t | messageSize, |
|
|
Error & | error ) |
|
overridevirtual |
This method will be called when this destination is to receive the given MIDI message. Note that it's important that no heavy processing be done in this method (such as is the mentality when writing an audio callback), because the timing of MIDI message reception and processing can effect the quality of audio playback.
- Parameters
-
| [in] | deltaTimeSeconds | This is typically, but not always, set to the amount of time (in seconds) between now and the last time the function was called. |
| [in] | message | This is the payload of the message, which can be decoded using a derivative of the MidiData::Event class. |
| [in] | messageSize | This is the size of the payload in bytes. |
| [out] | error | This should be populated with error information if false is returned. |
- Returns
- True should be returned on success; false otherwise.
Reimplemented from AudioDataLib::MidiMsgDestination.
The documentation for this class was generated from the following files: