From 037a854c90c213eef86661d4240f23b4d2a0c47f Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Wed, 6 May 2020 22:31:58 +0200 Subject: [PATCH] Use 7 voices --- voice.c | 2 +- voice.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/voice.c b/voice.c index a88b141..8f88a32 100644 --- a/voice.c +++ b/voice.c @@ -24,7 +24,7 @@ struct { .dac = {.channel = 6, .offset = 52, .scale = 8382}}, }; -uint8_t voice_map[NUM_VOICES] = {2, 3, 4, 5, 6, 7}; +uint8_t voice_map[NUM_VOICES] = {1, 2, 3, 4, 5, 6, 7}; struct gate *gate(uint8_t v) { if (v >= NUM_VOICES) { diff --git a/voice.h b/voice.h index b95b360..49230e9 100644 --- a/voice.h +++ b/voice.h @@ -5,7 +5,7 @@ enum { NUM_SEMITONES = 12 }; -enum { NUM_VOICES = 6, MAX_VOICES = 8 }; +enum { NUM_VOICES = 7, MAX_VOICES = 8 }; #define for_each_voice(var) for (uint8_t var = 0; var < NUM_VOICES; var++) -- GitLab