24 lines
528 B
C++
24 lines
528 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
#define D_MIDIBITMAP
|
|
|
|
class Assigner {
|
|
public:
|
|
uint8_t ram[256];
|
|
uint16_t a = 0, b = 0, c = 0, eal = 0, eah = 0;
|
|
uint32_t bc, de, hl, ea = 0;
|
|
|
|
void noteOn(uint8_t c);
|
|
void voiceOn();
|
|
void resetVoices();
|
|
// void clearNotes();
|
|
// void assignNote();
|
|
|
|
private:
|
|
uint8_t bitMask[24] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80,
|
|
0xfe, 0xfd, 0xfb, 0xf7, 0xef, 0xdf, 0xbf, 0x7f};
|
|
}; |