more SMS work
it is able to play some modules... the next step is to bind this to the Genesis platform
This commit is contained in:
parent
d9f076ef64
commit
3172fd37ed
7 changed files with 147 additions and 2 deletions
31
src/engine/macroInt.h
Normal file
31
src/engine/macroInt.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef _MACROINT_H
|
||||
#define _MACROINT_H
|
||||
|
||||
#include "instrument.h"
|
||||
|
||||
class DivMacroInt {
|
||||
DivInstrument* ins;
|
||||
int volPos, arpPos, dutyPos, wavePos;
|
||||
public:
|
||||
unsigned char vol, arp, duty, wave;
|
||||
bool hasVol, hasArp, hasDuty, hasWave;
|
||||
bool hadVol, hadArp, hadDuty, hadWave;
|
||||
void next();
|
||||
void init(DivInstrument* which);
|
||||
DivMacroInt():
|
||||
ins(NULL),
|
||||
vol(0),
|
||||
arp(0),
|
||||
duty(0),
|
||||
wave(0),
|
||||
hasVol(false),
|
||||
hasArp(false),
|
||||
hasDuty(false),
|
||||
hasWave(false),
|
||||
hadVol(false),
|
||||
hadArp(false),
|
||||
hadDuty(false),
|
||||
hadWave(false) {}
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue