furnace/src/engine/pattern.h

23 lines
461 B
C
Raw Normal View History

2022-01-17 04:21:27 +00:00
#include "safeReader.h"
struct DivPattern {
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();
};
struct DivChannelData {
2021-05-11 20:26:38 +00:00
unsigned char effectRows;
// 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
};