Commit 0618427f authored by Jacob Vosmaer's avatar Jacob Vosmaer

Remove repeated code and "optimizations"

parent 05dc0e84
......@@ -111,15 +111,12 @@ void
mono_pitch_bend(uint16_t bend)
{
current_bend = bend;
mono_set_pitch();
}
void
mono_update_clock(uint8_t delta)
{
if (delta == 0) {
return;
}
(void) delta;
mono_set_pitch();
}
......@@ -44,10 +44,6 @@ pitch_set_note(uint8_t voice, uint8_t note, int16_t detune, uint16_t bend)
void
pitch_update_clock(uint8_t delta)
{
if (delta == 0) {
return;
}
for_each_voice(v) {
if (_decay_counter[v] <= delta) {
_decay_counter[v] = 0;
......
......@@ -121,17 +121,12 @@ void
poly2_pitch_bend(uint16_t bend)
{
current_bend = bend;
for_each_voice(v) {
poly2_set_pitch(v, current_note[v]);
}
}
void
poly2_update_clock(uint8_t delta)
{
if (delta == 0) {
return;
}
(void) delta;
for_each_voice(v) {
poly2_set_pitch(v, current_note[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