Midi sustain working when envelope is on (#3730)

* midi sustain working when envelope is on

* pressing sustain pedal again doesn't pause release
This commit is contained in:
Andrés
2017-08-02 02:20:09 -03:00
committed by Oskar Wallgren
parent 0e88a27389
commit 44028c8594
3 changed files with 13 additions and 2 deletions

View File

@@ -156,6 +156,11 @@ public:
return m_released;
}
bool isReleaseStarted() const
{
return m_releaseStarted;
}
/*! Returns total numbers of frames played so far */
f_cnt_t totalFramesPlayed() const
{
@@ -297,6 +302,7 @@ private:
// release of note
NotePlayHandleList m_subNotes; // used for chords and arpeggios
volatile bool m_released; // indicates whether note is released
bool m_releaseStarted;
bool m_hasParent; // indicates whether note has parent
NotePlayHandle * m_parent; // parent note
bool m_hadChildren;