mirror of
https://github.com/yokemura/Magical8bitPlug2.git
synced 2026-02-09 12:10:07 -05:00
Keep arpeggiated also in the release phase
This commit is contained in:
@ -47,6 +47,8 @@ struct TonalVoice : public BaseVoice // The base for Pulse and Triangle
|
||||
int currentArpeggioFrame = 0;
|
||||
double arpeggioFrameTimer = 0;
|
||||
double arpeggioFrameLength = 0; // Unit: seconds. Set non-zero value to enable arpeggio
|
||||
int retireBuffer[10];
|
||||
int currentNumRetireBuffer = 0;
|
||||
|
||||
void startNote (int midiNoteNumber, float velocity,
|
||||
SynthesiserSound*, int currentPitchWheelPosition) override;
|
||||
@ -74,4 +76,5 @@ struct TonalVoice : public BaseVoice // The base for Pulse and Triangle
|
||||
bool isArpeggioEnabled() {
|
||||
return arpeggioFrameLength > 0;
|
||||
}
|
||||
bool isInReleasePhase();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user