mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 23:55:24 +13:00
made changes in repo
hg-commit-id: 1145e088ee27
This commit is contained in:
parent
21caa525cc
commit
4d0797bc3a
30 changed files with 1748 additions and 0 deletions
43
music/pokeredmusicdisasm/Octave.h
Normal file
43
music/pokeredmusicdisasm/Octave.h
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
#ifndef OCTAVE_H
|
||||
#define OCTAVE_H
|
||||
|
||||
#include "AbstractData.h"
|
||||
|
||||
//Represents 1 octave value
|
||||
class Octave : public AbstractData
|
||||
{
|
||||
public:
|
||||
// Constructors
|
||||
Octave();
|
||||
Octave(unsigned char* byte); // Parse Immidiately
|
||||
Octave(unsigned char octave, bool); // Set value
|
||||
|
||||
// Direct Getters / Setters
|
||||
unsigned char GetOctave();
|
||||
void SetOctave(unsigned char value);
|
||||
|
||||
// Overides
|
||||
virtual std::string GenAsm();
|
||||
virtual bool IsValid(unsigned char* byte);
|
||||
virtual bool Parse(unsigned char* byte);
|
||||
virtual unsigned int Arguments();
|
||||
|
||||
std::string LookupOctString();
|
||||
|
||||
const enum OctaveCode : unsigned char
|
||||
{
|
||||
oct0 = 0xE7,
|
||||
oct1 = 0xE6,
|
||||
oct2 = 0xE5,
|
||||
oct3 = 0xE4,
|
||||
oct4 = 0xE3,
|
||||
oct5 = 0xE2,
|
||||
oct6 = 0xE1,
|
||||
oct7 = 0xE0,
|
||||
};
|
||||
|
||||
private:
|
||||
unsigned char octave;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue