basic channels mixing pressing SPACE

This commit is contained in:
2021-09-15 12:20:57 +02:00
parent d5262780f4
commit 636fd2c0fb
3 changed files with 23 additions and 10 deletions

View File

@@ -4,8 +4,7 @@
Sint16 notes[64];
toneGen::toneGen(const int note_length) {
this->note_length = note_length;
toneGen::toneGen() {
this->current_pos = 0;
this->note = 34;
@@ -24,6 +23,10 @@ toneGen::toneGen(const int note_length) {
this->f = -AUDIO_FORMAT_MAX_VALUE;
}
void toneGen::setNoteLength(const int note_length) {
this->note_length = note_length;
}
void toneGen::setup(const uint8_t note, const uint8_t instrument, const uint8_t volume, const uint8_t effect) {
this->current_pos = 0;