From fce03717563eaf4fced702c0684b8af810c47f3a Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 3 Aug 2022 17:21:47 -0500 Subject: [PATCH] add "hint" commands --- src/engine/dispatch.h | 8 ++++++++ src/engine/playback.cpp | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/src/engine/dispatch.h b/src/engine/dispatch.h index f1418e481..86b2e229e 100644 --- a/src/engine/dispatch.h +++ b/src/engine/dispatch.h @@ -55,6 +55,14 @@ enum DivDispatchCmds { DIV_CMD_PRE_PORTA, // (inPorta, isPortaOrSlide) DIV_CMD_PRE_NOTE, // used in C64 (note) + // these will be used in ROM export. + // do NOT implement! + DIV_CMD_HINT_VIBRATO, // (speed, depth) + DIV_CMD_HINT_VIBRATO_SHAPE, // (shape) + DIV_CMD_HINT_PITCH, // (pitch) + DIV_CMD_HINT_ARPEGGIO, // (note1, note2) + DIV_CMD_HINT_VOL_SLIDE, // (amount, oneTick) + DIV_CMD_SAMPLE_MODE, // (enabled) DIV_CMD_SAMPLE_FREQ, // (frequency) DIV_CMD_SAMPLE_BANK, // (bank) diff --git a/src/engine/playback.cpp b/src/engine/playback.cpp index 6c4376573..b089b6f3e 100644 --- a/src/engine/playback.cpp +++ b/src/engine/playback.cpp @@ -57,6 +57,12 @@ const char* cmdName[]={ "PRE_PORTA", "PRE_NOTE", + "HINT_VIBRATO", + "HINT_VIBRATO_SHAPE", + "HINT_PITCH", + "HINT_ARPEGGIO", + "HINT_VOL_SLIDE", + "SAMPLE_MODE", "SAMPLE_FREQ", "SAMPLE_BANK",