implement more effects and bugfixes

enough to play time trax intro near flawless
This commit is contained in:
tildearrow 2021-05-15 03:13:21 -05:00
parent eb692ca9a9
commit 9a97c38cc6
4 changed files with 141 additions and 14 deletions

View file

@ -11,7 +11,7 @@ struct DivChannelState {
int volume, volSpeed;
int vibratoDepth, vibratoRate, vibratoPos;
int tremoloDepth, tremoloRate, tremoloPos;
bool doNote;
bool doNote, legato;
DivChannelState():
note(-1),
@ -26,7 +26,7 @@ struct DivChannelState {
tremoloDepth(0),
tremoloRate(0),
tremoloPos(0),
doNote(false) {}
doNote(false), legato(false) {}
};
class DivEngine {
@ -50,6 +50,7 @@ class DivEngine {
void nextRow();
void nextTick();
bool perSystemEffect(int ch, unsigned char effect, unsigned char effectVal);
bool perSystemPostEffect(int ch, unsigned char effect, unsigned char effectVal);
void renderSamples();
public: