|
LMMS
|
#include <SFZSynth.h>
Private Attributes | |
| int | noteVelocities_ [128] |
Additional Inherited Members | |
| Protected Member Functions inherited from water::Synthesiser | |
| virtual SynthesiserVoice * | findFreeVoice (SynthesiserSound *soundToPlay, int midiChannel, int midiNoteNumber, bool stealIfNoneAvailable) const |
| virtual SynthesiserVoice * | findVoiceToSteal (SynthesiserSound *soundToPlay, int midiChannel, int midiNoteNumber) const |
| void | startVoice (SynthesiserVoice *voice, SynthesiserSound *sound, int midiChannel, int midiNoteNumber, float velocity) |
| void | stopVoice (SynthesiserVoice *, float velocity, bool allowTailOff) |
| Protected Attributes inherited from water::Synthesiser | |
| OwnedArray< SynthesiserVoice > | voices |
| ReferenceCountedArray< SynthesiserSound > | sounds |
| int | lastPitchWheelValues [16] |
| sfzero::Synth::Synth | ( | ) |
|
inlinevirtual |
|
overridevirtual |
Triggers a note-off event.
This will turn off any voices that are playing a sound for the given note/channel.
If allowTailOff is true, the voices will be allowed to fade out the notes gracefully (if they can do). If this is false, the notes will all be cut off immediately.
This method will be called automatically according to the midi data passed into renderNextBlock(), but may be called explicitly too.
The midiChannel parameter is the channel, between 1 and 16 inclusive.
Reimplemented from water::Synthesiser.
Triggers a note-on event.
The default method here will find all the sounds that want to be triggered by this note/channel. For each sound, it'll try to find a free voice, and use the voice to start playing the sound.
Subclasses might want to override this if they need a more complex algorithm.
This method will be called automatically according to the midi data passed into renderNextBlock(), but may be called explicitly too.
The midiChannel parameter is the channel, between 1 and 16 inclusive.
Reimplemented from water::Synthesiser.
| int sfzero::Synth::numVoicesUsed | ( | ) |
| water::String sfzero::Synth::voiceInfoString | ( | ) |
|
private |