Describes one of the sounds that a Synthesiser can play. More...
Inherits ReferenceCountedObject.
Inherited by SamplerSound.
Public Types | |
| typedef ReferenceCountedObjectPtr < SynthesiserSound > | Ptr |
Public Member Functions | |
| virtual | ~SynthesiserSound () |
| Destructor. | |
| virtual bool | appliesToNote (const int midiNoteNumber)=0 |
| Returns true if this sound should be played when a given midi note is pressed. | |
| virtual bool | appliesToChannel (const int midiChannel)=0 |
| Returns true if the sound should be triggered by midi events on a given channel. | |
Protected Member Functions | |
| SynthesiserSound () | |
Describes one of the sounds that a Synthesiser can play.
A synthesiser can contain one or more sounds, and a sound can choose which midi notes and channels can trigger it.
The SynthesiserSound is a passive class that just describes what the sound is - the actual audio rendering for a sound is done by a SynthesiserVoice. This allows more than one SynthesiserVoice to play the same sound at the same time.
| SynthesiserSound::SynthesiserSound | ( | ) | [protected] |
| virtual SynthesiserSound::~SynthesiserSound | ( | ) | [virtual] |
Destructor.
| virtual bool SynthesiserSound::appliesToNote | ( | const int | midiNoteNumber | ) | [pure virtual] |
Returns true if this sound should be played when a given midi note is pressed.
The Synthesiser will use this information when deciding which sounds to trigger for a given note.
Implemented in SamplerSound.
| virtual bool SynthesiserSound::appliesToChannel | ( | const int | midiChannel | ) | [pure virtual] |
Returns true if the sound should be triggered by midi events on a given channel.
The Synthesiser will use this information when deciding which sounds to trigger for a given note.
Implemented in SamplerSound.