fix the macroInt fixes
This commit is contained in:
parent
8a1ba5a544
commit
06840de4c7
|
@ -402,19 +402,14 @@ void DivMacroInt::init(DivInstrument* which) {
|
||||||
if (macroSource[i]!=NULL) {
|
if (macroSource[i]!=NULL) {
|
||||||
macroList[i]->prepare(*macroSource[i],e);
|
macroList[i]->prepare(*macroSource[i],e);
|
||||||
// check ADSR mode
|
// check ADSR mode
|
||||||
if ((macroSource[i]->open&6)==4) {
|
if ((macroSource[i]->open&6)==2) {
|
||||||
hasRelease=false;
|
|
||||||
} else if ((macroSource[i]->open&6)==2) {
|
|
||||||
if (macroSource[i]->val[8]>0) {
|
if (macroSource[i]->val[8]>0) {
|
||||||
hasRelease=true;
|
hasRelease=true;
|
||||||
}
|
}
|
||||||
} else {
|
} else if (macroSource[i]->rel<macroSource[i]->len) {
|
||||||
hasRelease=(macroSource[i]->rel<macroSource[i]->len);
|
hasRelease=true;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
hasRelease=false;
|
|
||||||
}
|
}
|
||||||
if (hasRelease) break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue