Merge branch 'master' of https://github.com/tildearrow/furnace into command-palette
This commit is contained in:
commit
74bb1b1016
196 changed files with 11481 additions and 880 deletions
|
|
@ -605,14 +605,34 @@ void FurnaceGUI::doAction(int what) {
|
|||
case GUI_ACTION_PAT_EXPAND_SONG:
|
||||
doExpandSong(collapseAmount);
|
||||
break;
|
||||
case GUI_ACTION_PAT_LATCH: // TODO
|
||||
case GUI_ACTION_PAT_LATCH: {
|
||||
DivPattern* pat=e->curPat[cursor.xCoarse].getPattern(e->curOrders->ord[cursor.xCoarse][curOrder],true);
|
||||
latchIns=pat->data[cursor.y][2];
|
||||
latchVol=pat->data[cursor.y][3];
|
||||
latchEffect=pat->data[cursor.y][4];
|
||||
latchEffectVal=pat->data[cursor.y][5];
|
||||
latchTarget=0;
|
||||
latchNibble=false;
|
||||
break;
|
||||
case GUI_ACTION_PAT_SCROLL_MODE: // TODO
|
||||
break;
|
||||
case GUI_ACTION_PAT_CLEAR_LATCH: // TODO
|
||||
}
|
||||
case GUI_ACTION_PAT_CLEAR_LATCH:
|
||||
latchIns=-2;
|
||||
latchVol=-1;
|
||||
latchEffect=-1;
|
||||
latchEffectVal=-1;
|
||||
latchTarget=0;
|
||||
latchNibble=false;
|
||||
break;
|
||||
|
||||
case GUI_ACTION_INS_LIST_ADD:
|
||||
if (settings.insTypeMenu) {
|
||||
makeInsTypeList=e->getPossibleInsTypes();
|
||||
if (makeInsTypeList.size()>1) {
|
||||
displayInsTypeList=true;
|
||||
displayInsTypeListMakeInsSample=-1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
curIns=e->addInstrument(cursor.xCoarse);
|
||||
if (curIns==-1) {
|
||||
showError("too many instruments!");
|
||||
|
|
@ -1281,7 +1301,7 @@ void FurnaceGUI::doAction(int what) {
|
|||
} else if (sample->depth==DIV_SAMPLE_DEPTH_8BIT) {
|
||||
for (unsigned int i=start; i<end; i++) {
|
||||
sample->data8[i]=-sample->data8[i];
|
||||
if (sample->data16[i]==-128) sample->data16[i]=127;
|
||||
if (sample->data8[i]==-128) sample->data8[i]=127;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1392,7 +1412,8 @@ void FurnaceGUI::doAction(int what) {
|
|||
i==DIV_INS_ES5506 ||
|
||||
i==DIV_INS_K007232 ||
|
||||
i==DIV_INS_GA20 ||
|
||||
i==DIV_INS_K053260) {
|
||||
i==DIV_INS_K053260 ||
|
||||
i==DIV_INS_C140) {
|
||||
makeInsTypeList.push_back(i);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue