From 021aaa4599718901bd45c06c440c736a892126d0 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Thu, 4 May 2023 07:22:20 -0500 Subject: [PATCH] synthio: remove unused 'phase' from Note objects --- shared-module/synthio/Note.c | 1 - shared-module/synthio/Note.h | 1 - 2 files changed, 2 deletions(-) diff --git a/shared-module/synthio/Note.c b/shared-module/synthio/Note.c index d31acb31f0..b6357559ee 100644 --- a/shared-module/synthio/Note.c +++ b/shared-module/synthio/Note.c @@ -142,7 +142,6 @@ void synthio_note_recalculate(synthio_note_obj_t *self, int32_t sample_rate) { void synthio_note_start(synthio_note_obj_t *self, int32_t sample_rate) { synthio_note_recalculate(self, sample_rate); - self->phase = 0; } uint32_t synthio_note_envelope(synthio_note_obj_t *self) { diff --git a/shared-module/synthio/Note.h b/shared-module/synthio/Note.h index 4b66997996..4efb197c07 100644 --- a/shared-module/synthio/Note.h +++ b/shared-module/synthio/Note.h @@ -37,7 +37,6 @@ typedef struct synthio_note_obj { int32_t sample_rate; - int32_t phase; int32_t frequency_scaled; int32_t amplitude_scaled; synthio_lfo_descr_t tremolo_descr, vibrato_descr;