more work on ui, first functionality

This commit is contained in:
2021-09-05 20:36:44 +02:00
parent c9a428c4c2
commit dda58872ad
4 changed files with 278 additions and 23 deletions

33
note.h Normal file
View File

@@ -0,0 +1,33 @@
#pragma once
#include <cstdint>
class Note {
public:
Note();
Note(const uint16_t note);
Note(const uint8_t note, const uint8_t instrument, const uint8_t volume, const uint8_t effect);
Note(const uint8_t note, const uint8_t octave, const uint8_t instrument, const uint8_t volume, const uint8_t effect);
void Set(const uint16_t note);
void SetAbsoluteNote(const uint8_t note);
void SetNote(const uint8_t note);
void SetOctave(const uint8_t octave);
void SetInstrument(const uint8_t instrument);
void SetVolume(const uint8_t volume);
void SetEffect(const uint8_t effect);
const uint16_t Get();
const uint8_t GetAbsoluteNote();
const uint8_t GetNote();
const uint8_t GetOctave();
const uint8_t GetInstrument();
const uint8_t GetVolume();
const uint8_t GetEffect();
private:
uint8_t note;
uint8_t octave;
uint8_t instrument;
uint8_t volume;
uint8_t effect;
};