From 80fdc1e39d864f05f271c8035715ab4c155a2002 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Sun, 9 Jan 2011 17:46:26 +0100 Subject: Improved note-compiler: optimizing output now works properly Previously, output was always considered as non-const, even if is was zero and without any controller-influence, because output had always pfactor-influence. Now, a pfactor-influenced output which is constant zero is considered as still constant, because pfactor*0 is always 0. --- note_compiler/programs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'note_compiler/programs.h') diff --git a/note_compiler/programs.h b/note_compiler/programs.h index d7acd61..9025ba1 100644 --- a/note_compiler/programs.h +++ b/note_compiler/programs.h @@ -47,6 +47,7 @@ struct oscillator_t bool *fm_strength_const; fixed_t output; bool output_const; + bool output_no_pfactor; int waveform; bool waveform_const; fixed_t factor; -- cgit v1.2.3