diff options
author | U-Fish-PC\Daniel <corrnondacqb@yahoo.com> | 2013-10-31 14:35:51 -0400 |
---|---|---|
committer | U-Fish-PC\Daniel <corrnondacqb@yahoo.com> | 2013-10-31 14:35:51 -0400 |
commit | 1a34c1a43f03fa7408b9853537cdda7615b8b577 (patch) | |
tree | 69b90bc5d7ec0b0214bb4d1fbd709e5f3e608184 /music/pokeredmusicdisasm/Note.h | |
parent | e73d3d24aa7519b384c2ea0dcaf5d0ce034705ec (diff) | |
parent | 7ecf8b1714264ff7891480a1da9beb978356b666 (diff) |
Merge branch 'master' of https://github.com/iimarckus/pokered
Conflicts:
main.asm
Diffstat (limited to 'music/pokeredmusicdisasm/Note.h')
-rw-r--r-- | music/pokeredmusicdisasm/Note.h | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/music/pokeredmusicdisasm/Note.h b/music/pokeredmusicdisasm/Note.h deleted file mode 100644 index 599d66f7..00000000 --- a/music/pokeredmusicdisasm/Note.h +++ /dev/null @@ -1,73 +0,0 @@ -#ifndef NOTE_H
-#define NOTE_H
-
-#include "AbstractData.h"
-
-// Holds a single note
-class Note : public AbstractData
-{
-public:
- // Constructors
- Note();
- Note(unsigned char* byte); // Parse Immidiately
- Note(unsigned char pitch, unsigned char delay,bool); // Set value
-
- // Reimplementations
- virtual std::string GenAsm();
- virtual bool IsValid(unsigned char* byte);
- virtual bool Parse(unsigned char* byte);
- virtual unsigned int Arguments();
-
- // Getters and Setters
- unsigned char GetPitch();
- void SetPitch(unsigned char value);
-
- unsigned char GetDelay();
- void SetDelay(unsigned char value);
-
- // Specific Methods
- std::string LookupPitchStr();
- std::string LookupDelayStr();
-
- enum pitch_code : unsigned char
- {
- noteC = 0x0,
- noteCS = 0x1,
- noteD = 0x2,
- noteDS = 0x3,
- noteE = 0x4,
- noteF = 0x5,
- noteFS = 0x6,
- noteG = 0x7,
- noteGS = 0x8,
- noteA = 0x9,
- noteAS = 0xA,
- noteB = 0xB,
- noteRst = 0xC
- };
-
- enum delay_code : unsigned char
- {
- note16 = 0x0,
- note8 = 0x1,
- note8_16 = 0x2,
- note4 = 0x3,
- note4_16 = 0x4,
- note4_8 = 0x5,
- note4_8_16 = 0x6,
- note2 = 0x7,
- note2_16 = 0x8,
- note2_8 = 0x9,
- note2_8_16 = 0xA,
- note2_4 = 0xB,
- note2_4_16 = 0xC,
- note2_4_8 = 0xD,
- note2_4_8_16 = 0xE,
- note1 = 0xF
- };
-private:
- unsigned char pitch;
- unsigned char delay;
-};
-
-#endif
\ No newline at end of file |