4/18/2023 0 Comments Simple desktops sine![]() As mentioned above, the sound class might be where you would store data that is needed to create the sound (such as a wavetable). In our simple case, it just returns true for both the appliesToNote() and appliesToChannel() functions. It just needs to report whether this sound should play on particular MIDI channels and specific notes or note ranges on that channel. ![]() Our sound class is very simple, it doesn't even need to contain any data. Note If you need to keep a pointer to a SynthesiserSound object you should store it in a YourSoundClass::Ptr variable for this memory management to work. ![]() The SynthesiserSound class is a type of ReferenceCountedObject class therefore the lifetime of SynthesiserSound objects is handled automatically. SynthesiserSound objects can be shared between Synthesiser objects if you wish. The Synthesiser object manages the lifetime of the voices. Warning SynthesiserVoice objects must be added to one and only one Synthesiser object.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |