mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added a velocity argument to the synthesiser noteOff methods.
This commit is contained in:
parent
56d2ae6a75
commit
527d1459df
6 changed files with 44 additions and 23 deletions
|
|
@ -127,7 +127,7 @@ void SamplerVoice::startNote (const int midiNoteNumber,
|
|||
}
|
||||
}
|
||||
|
||||
void SamplerVoice::stopNote (const bool allowTailOff)
|
||||
void SamplerVoice::stopNote (float /*velocity*/, bool allowTailOff)
|
||||
{
|
||||
if (allowTailOff)
|
||||
{
|
||||
|
|
@ -197,7 +197,7 @@ void SamplerVoice::renderNextBlock (AudioSampleBuffer& outputBuffer, int startSa
|
|||
|
||||
if (attackReleaseLevel <= 0.0f)
|
||||
{
|
||||
stopNote (false);
|
||||
stopNote (0.0f, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -216,7 +216,7 @@ void SamplerVoice::renderNextBlock (AudioSampleBuffer& outputBuffer, int startSa
|
|||
|
||||
if (sourceSamplePosition > playingSound->length)
|
||||
{
|
||||
stopNote (false);
|
||||
stopNote (0.0f, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue