Commit 61447641 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Retrigger stolen notes in poly

parent bb44c64f
......@@ -5,6 +5,7 @@
#include "poly_voice.h"
#include "vibrato.h"
#include "midi.h"
#include "notes.h"
static uint8_t notes[NUM_VOICES];
static uint16_t current_bend;
......@@ -15,6 +16,9 @@ poly_init(void)
gate_init();
voice_init();
current_bend = BEND_CENTER;
for_each_voice(v) {
notes[v] = NUM_NOTES;
}
}
void
......@@ -33,7 +37,7 @@ poly_note_on(uint8_t note)
}
poly_set_pitch(v, note);
gate_on_legato(v);
gate_on(v);
notes[v] = note;
}
......@@ -42,6 +46,7 @@ poly_note_off(uint8_t note)
{
for_each_voice(v) {
if (notes[v] == note) {
notes[v] = NUM_NOTES;
voice_release(v);
gate_off(v);
}
......
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