2022-01-17 04:21:27 +00:00
|
|
|
#include "safeReader.h"
|
|
|
|
|
2021-05-11 20:08:08 +00:00
|
|
|
struct DivPattern {
|
2022-01-19 22:34:20 +00:00
|
|
|
short data[256][32];
|
2022-01-17 04:21:27 +00:00
|
|
|
SafeReader* compile(int len=256, int fxRows=1);
|
2021-12-09 06:44:40 +00:00
|
|
|
DivPattern();
|
2021-05-11 20:08:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct DivChannelData {
|
2021-05-11 20:26:38 +00:00
|
|
|
unsigned char effectRows;
|
2021-05-11 20:08:08 +00:00
|
|
|
// data goes as follows: data[ROW][TYPE]
|
|
|
|
// TYPE is:
|
|
|
|
// 0: note
|
|
|
|
// 1: octave
|
|
|
|
// 2: instrument
|
|
|
|
// 3: volume
|
|
|
|
// 4-5+: effect/effect value
|
2021-12-09 06:44:40 +00:00
|
|
|
DivPattern* data[128];
|
|
|
|
DivPattern* getPattern(int index, bool create);
|
2021-12-15 22:32:08 +00:00
|
|
|
void wipePatterns();
|
2021-12-09 06:44:40 +00:00
|
|
|
DivChannelData();
|
2021-05-11 20:26:38 +00:00
|
|
|
};
|