implement note off resets slides flag

This commit is contained in:
tildearrow 2022-02-08 17:17:01 -05:00
parent 43c9c58034
commit e0b0da2072
1 changed files with 3 additions and 3 deletions

View File

@ -466,7 +466,7 @@ void DivEngine::processRow(int i, bool afterDelay) {
//chan[i].note=-1;
chan[i].keyOn=false;
chan[i].keyOff=true;
if (chan[i].inPorta) {
if (chan[i].inPorta && song.noteOffResetsSlides) {
if (chan[i].stopOnOff) {
chan[i].portaNote=-1;
chan[i].portaSpeed=-1;
@ -487,7 +487,7 @@ void DivEngine::processRow(int i, bool afterDelay) {
//chan[i].note=-1;
chan[i].keyOn=false;
chan[i].keyOff=true;
if (chan[i].inPorta) {
if (chan[i].inPorta && song.noteOffResetsSlides) {
if (chan[i].stopOnOff) {
chan[i].portaNote=-1;
chan[i].portaSpeed=-1;
@ -948,7 +948,7 @@ bool DivEngine::nextTick(bool noAccum) {
if (--chan[i].cut<1) {
chan[i].oldNote=chan[i].note;
//chan[i].note=-1;
if (chan[i].inPorta) {
if (chan[i].inPorta && song.noteOffResetsSlides) {
chan[i].keyOff=true;
chan[i].keyOn=false;
if (chan[i].stopOnOff) {