mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-07 08:05:23 +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
37
music/pokeredmusicdisasm/Modulation.h
Normal file
37
music/pokeredmusicdisasm/Modulation.h
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#ifndef MODULATION_H
|
||||
#define MODULATION_H
|
||||
|
||||
#include "AbstractData.h"
|
||||
|
||||
//Represents 1 modulation value
|
||||
class Modulation : public AbstractData
|
||||
{
|
||||
public:
|
||||
// Constructors
|
||||
Modulation();
|
||||
Modulation(unsigned char* byte); // Parse Immidiately
|
||||
Modulation(unsigned char delay, unsigned char depth, unsigned char rate, bool); // Set value
|
||||
|
||||
// Direct Getter/Setter Functions
|
||||
unsigned char GetDelay();
|
||||
void SetDelay(unsigned char value);
|
||||
|
||||
unsigned char GetDepth();
|
||||
void SetDepth(unsigned char value);
|
||||
|
||||
unsigned char GetRate();
|
||||
void SetRate(unsigned char value);
|
||||
|
||||
// Re-implemented
|
||||
virtual std::string GenAsm();
|
||||
virtual bool IsValid(unsigned char* byte);
|
||||
virtual bool Parse(unsigned char* byte);
|
||||
virtual unsigned int Arguments();
|
||||
|
||||
private:
|
||||
unsigned char delay;
|
||||
unsigned char depth;
|
||||
unsigned char rate;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue