1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

MPE: Made MPESynthesiserVoice::noteOnTime public

This commit is contained in:
ed 2018-11-09 09:55:50 +00:00
parent 4363e8cd0d
commit 070a459db0

View file

@ -156,6 +156,11 @@ public:
*/
double getSampleRate() const noexcept { return currentSampleRate; }
/** This will be set to an incrementing counter value in MPESynthesiser::startVoice()
and can be used to determine the order in which voices started.
*/
uint32 noteOnTime = 0;
protected:
//==============================================================================
/** Resets the state of this voice after a sound has finished playing.
@ -180,8 +185,6 @@ private:
//==============================================================================
friend class MPESynthesiser;
uint32 noteOnTime = 0;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MPESynthesiserVoice)
};