Revert "effects for controlling volume slides"
This reverts commit 629667d460
.
This commit is contained in:
parent
b1a4ddd9af
commit
5a961a5485
|
@ -15,12 +15,6 @@ however, effects are continuous (unless specified), which means you only need to
|
||||||
- `F8xx`: **Single tick volume slide up.** adds `x` to volume on first tick only.
|
- `F8xx`: **Single tick volume slide up.** adds `x` to volume on first tick only.
|
||||||
- `F9xx`: **Single tick volume slide down.** subtracts `x` from volume on first tick only.
|
- `F9xx`: **Single tick volume slide down.** subtracts `x` from volume on first tick only.
|
||||||
- ---
|
- ---
|
||||||
- `D8xx`: **Set volume slide bottom boundary.**
|
|
||||||
- the default is 0.
|
|
||||||
- `D9xx`: **Set volume slide top boundary.**
|
|
||||||
- the default is the channel's maximum volume.
|
|
||||||
- `DCxx`: **Delayed mute.** sets volume to 0 after `xx` ticks.
|
|
||||||
- ---
|
|
||||||
- `07xy`: **Tremolo.** changes volume to be "wavy" with a sine LFO. `x` is the speed. `y` is the depth.
|
- `07xy`: **Tremolo.** changes volume to be "wavy" with a sine LFO. `x` is the speed. `y` is the depth.
|
||||||
- tremolo is downward only.
|
- tremolo is downward only.
|
||||||
- maximum tremolo depth is -60 volume steps.
|
- maximum tremolo depth is -60 volume steps.
|
||||||
|
|
|
@ -98,10 +98,6 @@ const char* DivEngine::getEffectDesc(unsigned char effect, int chan, bool notNul
|
||||||
break;
|
break;
|
||||||
case 0xc0: case 0xc1: case 0xc2: case 0xc3:
|
case 0xc0: case 0xc1: case 0xc2: case 0xc3:
|
||||||
return _("Cxxx: Set tick rate (hz)");
|
return _("Cxxx: Set tick rate (hz)");
|
||||||
case 0xd8:
|
|
||||||
return _("D8xx: Set volume slide bottom boundary");
|
|
||||||
case 0xd9:
|
|
||||||
return _("D9xx: Set volume slide top boundary");
|
|
||||||
case 0xdc:
|
case 0xdc:
|
||||||
return _("DCxx: Delayed mute");
|
return _("DCxx: Delayed mute");
|
||||||
case 0xe0:
|
case 0xe0:
|
||||||
|
@ -2114,7 +2110,6 @@ void DivEngine::reset() {
|
||||||
chan[i]=DivChannelState();
|
chan[i]=DivChannelState();
|
||||||
if (i<chans) chan[i].volMax=(disCont[dispatchOfChan[i]].dispatch->dispatch(DivCommand(DIV_CMD_GET_VOLMAX,dispatchChanOfChan[i]))<<8)|0xff;
|
if (i<chans) chan[i].volMax=(disCont[dispatchOfChan[i]].dispatch->dispatch(DivCommand(DIV_CMD_GET_VOLMAX,dispatchChanOfChan[i]))<<8)|0xff;
|
||||||
chan[i].volume=chan[i].volMax;
|
chan[i].volume=chan[i].volMax;
|
||||||
chan[i].volTop=chan[i].volMax;
|
|
||||||
if (song.linearPitch==0) chan[i].vibratoFine=4;
|
if (song.linearPitch==0) chan[i].vibratoFine=4;
|
||||||
}
|
}
|
||||||
extValue=0;
|
extValue=0;
|
||||||
|
|
|
@ -133,7 +133,7 @@ struct DivAudioExportOptions {
|
||||||
struct DivChannelState {
|
struct DivChannelState {
|
||||||
std::vector<DivDelayedCommand> delayed;
|
std::vector<DivDelayedCommand> delayed;
|
||||||
int note, oldNote, lastIns, pitch, portaSpeed, portaNote;
|
int note, oldNote, lastIns, pitch, portaSpeed, portaNote;
|
||||||
int volume, volSpeed, cut, volCut, legatoDelay, legatoTarget, rowDelay, volMax, volBottom, volTop;
|
int volume, volSpeed, cut, volCut, legatoDelay, legatoTarget, rowDelay, volMax;
|
||||||
int delayOrder, delayRow, retrigSpeed, retrigTick;
|
int delayOrder, delayRow, retrigSpeed, retrigTick;
|
||||||
int vibratoDepth, vibratoRate, vibratoPos, vibratoPosGiant, vibratoShape, vibratoFine;
|
int vibratoDepth, vibratoRate, vibratoPos, vibratoPosGiant, vibratoShape, vibratoFine;
|
||||||
int tremoloDepth, tremoloRate, tremoloPos;
|
int tremoloDepth, tremoloRate, tremoloPos;
|
||||||
|
@ -163,8 +163,6 @@ struct DivChannelState {
|
||||||
legatoTarget(0),
|
legatoTarget(0),
|
||||||
rowDelay(0),
|
rowDelay(0),
|
||||||
volMax(0),
|
volMax(0),
|
||||||
volBottom(0),
|
|
||||||
volTop(0),
|
|
||||||
delayOrder(0),
|
delayOrder(0),
|
||||||
delayRow(0),
|
delayRow(0),
|
||||||
retrigSpeed(0),
|
retrigSpeed(0),
|
||||||
|
|
|
@ -932,14 +932,6 @@ void DivEngine::processRow(int i, bool afterDelay) {
|
||||||
clockDrift=0;
|
clockDrift=0;
|
||||||
subticks=0;
|
subticks=0;
|
||||||
break;
|
break;
|
||||||
case 0xd8: // vol slide bottom
|
|
||||||
chan[i].volBottom=(effectVal<<8)|0xff;
|
|
||||||
if (chan[i].volBottom>chan[i].volMax) chan[i].volBottom=chan[i].volMax;
|
|
||||||
break;
|
|
||||||
case 0xd9: // vol slide top
|
|
||||||
chan[i].volTop=(effectVal<<8)|0xff;
|
|
||||||
if (chan[i].volTop>chan[i].volMax) chan[i].volTop=chan[i].volMax;
|
|
||||||
break;
|
|
||||||
case 0xdc: // delayed mute
|
case 0xdc: // delayed mute
|
||||||
if (effectVal>0 && (song.delayBehavior==2 || effectVal<nextSpeed)) {
|
if (effectVal>0 && (song.delayBehavior==2 || effectVal<nextSpeed)) {
|
||||||
chan[i].volCut=effectVal+1;
|
chan[i].volCut=effectVal+1;
|
||||||
|
@ -1103,13 +1095,13 @@ void DivEngine::processRow(int i, bool afterDelay) {
|
||||||
break;
|
break;
|
||||||
case 0xf8: // single volume ramp up
|
case 0xf8: // single volume ramp up
|
||||||
chan[i].volSpeed=0; // add compat flag?
|
chan[i].volSpeed=0; // add compat flag?
|
||||||
chan[i].volume=MIN(chan[i].volume+effectVal*256,chan[i].volTop);
|
chan[i].volume=MIN(chan[i].volume+effectVal*256,chan[i].volMax);
|
||||||
dispatchCmd(DivCommand(DIV_CMD_VOLUME,i,chan[i].volume>>8));
|
dispatchCmd(DivCommand(DIV_CMD_VOLUME,i,chan[i].volume>>8));
|
||||||
dispatchCmd(DivCommand(DIV_CMD_HINT_VOLUME,i,chan[i].volume>>8));
|
dispatchCmd(DivCommand(DIV_CMD_HINT_VOLUME,i,chan[i].volume>>8));
|
||||||
break;
|
break;
|
||||||
case 0xf9: // single volume ramp down
|
case 0xf9: // single volume ramp down
|
||||||
chan[i].volSpeed=0; // add compat flag?
|
chan[i].volSpeed=0; // add compat flag?
|
||||||
chan[i].volume=MAX(chan[i].volume-effectVal*256,chan[i].volBottom);
|
chan[i].volume=MAX(chan[i].volume-effectVal*256,0);
|
||||||
dispatchCmd(DivCommand(DIV_CMD_VOLUME,i,chan[i].volume>>8));
|
dispatchCmd(DivCommand(DIV_CMD_VOLUME,i,chan[i].volume>>8));
|
||||||
dispatchCmd(DivCommand(DIV_CMD_HINT_VOLUME,i,chan[i].volume>>8));
|
dispatchCmd(DivCommand(DIV_CMD_HINT_VOLUME,i,chan[i].volume>>8));
|
||||||
break;
|
break;
|
||||||
|
@ -1596,19 +1588,19 @@ bool DivEngine::nextTick(bool noAccum, bool inhibitLowLat) {
|
||||||
if (chan[i].volSpeed!=0) {
|
if (chan[i].volSpeed!=0) {
|
||||||
chan[i].volume=(chan[i].volume&0xff)|(dispatchCmd(DivCommand(DIV_CMD_GET_VOLUME,i))<<8);
|
chan[i].volume=(chan[i].volume&0xff)|(dispatchCmd(DivCommand(DIV_CMD_GET_VOLUME,i))<<8);
|
||||||
chan[i].volume+=chan[i].volSpeed;
|
chan[i].volume+=chan[i].volSpeed;
|
||||||
if (chan[i].volume>chan[i].volTop) {
|
if (chan[i].volume>chan[i].volMax) {
|
||||||
chan[i].volume=chan[i].volTop;
|
chan[i].volume=chan[i].volMax;
|
||||||
chan[i].volSpeed=0;
|
chan[i].volSpeed=0;
|
||||||
dispatchCmd(DivCommand(DIV_CMD_HINT_VOLUME,i,chan[i].volume>>8));
|
dispatchCmd(DivCommand(DIV_CMD_HINT_VOLUME,i,chan[i].volume>>8));
|
||||||
dispatchCmd(DivCommand(DIV_CMD_VOLUME,i,chan[i].volume>>8));
|
dispatchCmd(DivCommand(DIV_CMD_VOLUME,i,chan[i].volume>>8));
|
||||||
dispatchCmd(DivCommand(DIV_CMD_HINT_VOL_SLIDE,i,0));
|
dispatchCmd(DivCommand(DIV_CMD_HINT_VOL_SLIDE,i,0));
|
||||||
} else if (chan[i].volume<chan[i].volBottom) {
|
} else if (chan[i].volume<0) {
|
||||||
chan[i].volSpeed=0;
|
chan[i].volSpeed=0;
|
||||||
dispatchCmd(DivCommand(DIV_CMD_HINT_VOL_SLIDE,i,0));
|
dispatchCmd(DivCommand(DIV_CMD_HINT_VOL_SLIDE,i,0));
|
||||||
if (song.legacyVolumeSlides) {
|
if (song.legacyVolumeSlides) {
|
||||||
chan[i].volume=chan[i].volTop+1;
|
chan[i].volume=chan[i].volMax+1;
|
||||||
} else {
|
} else {
|
||||||
chan[i].volume=chan[i].volBottom;
|
chan[i].volume=0;
|
||||||
}
|
}
|
||||||
dispatchCmd(DivCommand(DIV_CMD_VOLUME,i,chan[i].volume>>8));
|
dispatchCmd(DivCommand(DIV_CMD_VOLUME,i,chan[i].volume>>8));
|
||||||
dispatchCmd(DivCommand(DIV_CMD_HINT_VOLUME,i,chan[i].volume>>8));
|
dispatchCmd(DivCommand(DIV_CMD_HINT_VOLUME,i,chan[i].volume>>8));
|
||||||
|
|
|
@ -478,8 +478,8 @@ const FurnaceGUIColors fxColors[256]={
|
||||||
GUI_COLOR_PATTERN_EFFECT_INVALID,
|
GUI_COLOR_PATTERN_EFFECT_INVALID,
|
||||||
GUI_COLOR_PATTERN_EFFECT_INVALID,
|
GUI_COLOR_PATTERN_EFFECT_INVALID,
|
||||||
GUI_COLOR_PATTERN_EFFECT_INVALID,
|
GUI_COLOR_PATTERN_EFFECT_INVALID,
|
||||||
GUI_COLOR_PATTERN_EFFECT_VOLUME, // D8
|
GUI_COLOR_PATTERN_EFFECT_INVALID,
|
||||||
GUI_COLOR_PATTERN_EFFECT_VOLUME, // D9
|
GUI_COLOR_PATTERN_EFFECT_INVALID,
|
||||||
GUI_COLOR_PATTERN_EFFECT_INVALID,
|
GUI_COLOR_PATTERN_EFFECT_INVALID,
|
||||||
GUI_COLOR_PATTERN_EFFECT_INVALID,
|
GUI_COLOR_PATTERN_EFFECT_INVALID,
|
||||||
GUI_COLOR_PATTERN_EFFECT_VOLUME, // DC
|
GUI_COLOR_PATTERN_EFFECT_VOLUME, // DC
|
||||||
|
|
Loading…
Reference in a new issue