GUI: finish the blank ins up

This commit is contained in:
tildearrow 2022-06-04 00:19:04 -05:00
parent d15c276f74
commit 0d99d29ceb

View file

@ -537,7 +537,15 @@ void FurnaceGUI::doAction(int what) {
showError("too many instruments!");
} else {
if (settings.blankIns) {
memset(&e->song.ins[curIns]->fm,0,sizeof(DivInstrumentFM));
e->song.ins[curIns]->fm.fb=0;
for (int i=0; i<4; i++) {
e->song.ins[curIns]->fm.op[i]=DivInstrumentFM::Operator();
e->song.ins[curIns]->fm.op[i].ar=31;
e->song.ins[curIns]->fm.op[i].dr=31;
e->song.ins[curIns]->fm.op[i].rr=15;
e->song.ins[curIns]->fm.op[i].tl=127;
e->song.ins[curIns]->fm.op[i].dt=3;
}
}
wantScrollList=true;
MARK_MODIFIED;