Commit 9b536fec authored by Jacob Vosmaer's avatar Jacob Vosmaer

cosmetic changes

parent 55718174
......@@ -7,9 +7,9 @@
#include <util/delay.h>
#define NUM_NOTES 128
static uint8_t notes_array[NUM_NOTES];
static uint8_t _notes_array[NUM_NOTES];
static struct list notes = {
.array = notes_array,
.array = _notes_array,
.sup = NUM_NOTES,
};
......@@ -49,8 +49,8 @@ mono_note_on(uint8_t n)
}
l_push(&notes, n);
mono_set_pitch();
for (uint8_t v = 0; v < NUM_VOICES; v++) {
gate_on(v);
}
......@@ -65,7 +65,7 @@ mono_set_pitch(void)
uint8_t n = l_first(&notes);
for (uint8_t v = 0; v < NUM_VOICES; v++) {
int16_t detune = (detune_factor[v] * detune_amount);
int16_t detune = detune_factor[v] * detune_amount;
detune += vibrato;
dac_set_note2(v, n, detune, current_bend);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment