From 89e85142d0958d3e3a87fb155d698fc59eafd4c6 Mon Sep 17 00:00:00 2001 From: gramanas Date: Wed, 28 Jun 2023 22:40:47 +0300 Subject: Remove old note stuff --- src/synth_engine.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/synth_engine.c') diff --git a/src/synth_engine.c b/src/synth_engine.c index 9dc6457..a4d3d17 100644 --- a/src/synth_engine.c +++ b/src/synth_engine.c @@ -240,7 +240,6 @@ increment_synth(synth_t *synth) { synth->lfo.elapsed++; synth->adsr.elapsed++; - synth->n.elapsed++; for (int i = 0; i < MIDI_NOTES; i++) { if (!synth->midi_note[i].active) continue; @@ -437,12 +436,6 @@ init_synth(synth_t * synth) synth->midi_note[i].adsr = &(synth->adsr); } - synth->n.freq = 0; - synth->n.noteOn = 0; - synth->n.noteOff = 1; - synth->n.key = 0; - synth->n.elapsed = 0; - synth->octave = 3; synth->poly = 0; -- cgit v1.2.3