Changed EFxx to EExx at request of tildearrow

This commit is contained in:
MooingLemur 2023-07-05 15:29:11 -07:00
parent fba48149a5
commit a8a02b9ebb
5 changed files with 5 additions and 5 deletions

View File

@ -13,5 +13,5 @@ currently Furnace does not support the PCM channel's stereo mode, though (except
- `2`: triangle
- `3`: noise
- `22xx`: **set duty cycle.** range is `0` to `3F`.
- `EFxx`: **ZSM synchronization event.**
- `EExx`: **ZSM synchronization event.**
- Where `xx` is the event payload. This has no effect in how the music is played in Furnace, but the ZSMKit library for the Commander X16 interprets these events inside ZSM files and optionally triggers a callback routine. This can be used, for instance, to cause game code to respond to beats or at certain points in the music.

View File

@ -236,7 +236,7 @@ enum DivDispatchCmds {
DIV_CMD_NES_LINEAR_LENGTH,
DIV_CMD_SYNC_MESSAGE, // (value)
DIV_CMD_EXTERNAL, // (value)
DIV_ALWAYS_SET_VOLUME, // () -> alwaysSetVol

View File

@ -416,7 +416,7 @@ int DivPlatformVERA::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_SYNC_MESSAGE:
case DIV_CMD_EXTERNAL:
rWriteZSMSync(c.value);
break;
case DIV_ALWAYS_SET_VOLUME:

View File

@ -236,7 +236,7 @@ const char* cmdName[]={
"NES_LINEAR_LENGTH",
"SYNC_MESSAGE",
"EXTERNAL",
"ALWAYS_SET_VOLUME"
};
@ -915,6 +915,7 @@ void DivEngine::processRow(int i, bool afterDelay) {
//printf("\x1b[1;36m%d: extern command %d\x1b[m\n",i,effectVal);
extValue=effectVal;
extValuePresent=true;
dispatchCmd(DivCommand(DIV_CMD_EXTERNAL,effectVal));
break;
case 0xef: // global pitch
globalPitch+=(signed char)(effectVal-0x80);

View File

@ -1460,7 +1460,6 @@ void DivEngine::registerSystems() {
{
{0x20, {DIV_CMD_WAVE, "20xx: Set waveform"}},
{0x22, {DIV_CMD_STD_NOISE_MODE, "22xx: Set duty cycle (0 to 3F)"}},
{0xEF, {DIV_CMD_SYNC_MESSAGE, "EFxx: ZSM sync event"}},
}
);