mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-05 20:35:06 +00:00
GUI: finish the blank ins up
This commit is contained in:
parent
d15c276f74
commit
0d99d29ceb
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue