more keyboard interact. mouse interact
This commit is contained in:
13
note.cpp
13
note.cpp
@@ -8,7 +8,8 @@ const uint8_t get_note_from_wholenote(const uint8_t wholenote) {
|
||||
}
|
||||
|
||||
Note::Note() {
|
||||
note = octave = instrument = volume = effect = 0;
|
||||
note = octave = instrument = effect = 0;
|
||||
volume = 2;
|
||||
}
|
||||
|
||||
Note::Note(const uint16_t note) {
|
||||
@@ -53,6 +54,16 @@ void Note::SetNote(const uint8_t note) {
|
||||
this->note = note;
|
||||
}
|
||||
|
||||
void Note::SetFirstNote(const uint8_t note, const uint8_t octave, const uint8_t instrument, const uint8_t volume, const uint8_t effect) {
|
||||
if (GetAbsoluteNote() == 0) {
|
||||
this->octave = octave;
|
||||
this->instrument = instrument;
|
||||
this->volume = volume;
|
||||
this->effect = effect;
|
||||
}
|
||||
this->note = note;
|
||||
}
|
||||
|
||||
void Note::SetOctave(const uint8_t octave) {
|
||||
this->octave = octave;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user