more configuration

This commit is contained in:
2024-05-21 13:43:40 +02:00
parent faf75e158a
commit 2827046b8b
14 changed files with 74 additions and 19 deletions

View File

@ -1,5 +1,4 @@
#include <stdbool.h>
#include <sys/param.h>
#include <stddef.h>
#include "psg.h"
#include "sequencer.h"
@ -22,14 +21,13 @@ const t_tone plingVoice1[] = {
t_melodies pling = {
.melodies = { { .tones = plingVoice1 } },
.amplitude = 12,
.numOfMelodies = 1,
.pace = 200,
.chip = 1
};
void playPling() {
pling.amplitude = MIN((configGetAmplitude() + 4), 15);
pling.amplitude = configGetEffectsAmplitudePtr();
sequencerPlayMelodies(&pling);
}