Skip to content

Commit

Permalink
Cleaning up properly after auditioning notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rcomian committed Dec 11, 2018
1 parent 996e43c commit ce1f16d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/PianoRollModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1188,8 +1188,10 @@ PlayPositionDragging::PlayPositionDragging(PianoRollWidget* widget, PianoRollMod
}

PlayPositionDragging::~PlayPositionDragging() {
module->auditionStep = -1;
module->gateOut.reset();
module->auditionStep = -1;
module->retriggerAudition = false;
module->previousStep = module->currentStep;
}

void PlayPositionDragging::onDragMove(EventDragMove& e) {
Expand Down Expand Up @@ -1248,6 +1250,9 @@ void KeyboardDragging::onDragMove(EventDragMove& e) {

NotePaintDragging::~NotePaintDragging() {
module->gateOut.reset();
module->auditionStep = -1;
module->retriggerAudition = false;
module->previousStep = module->currentStep;
}

void NotePaintDragging::onDragMove(EventDragMove& e) {
Expand Down

0 comments on commit ce1f16d

Please sign in to comment.