more keyboard interact. mouse interact

This commit is contained in:
2021-09-05 23:23:01 +02:00
parent dda58872ad
commit e0b3720126
3 changed files with 66 additions and 22 deletions

View File

@@ -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;
}