From 3d95a25600b5cab8a7e5245b7a581bd8c8939276 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Wed, 5 Jan 2011 15:47:55 +0100 Subject: Note-compiler is _mostly_ complete; plus some tiny bugfixes The note-compiler can read a program-definition and emits a cpp-file which implements that definition. This implementation is optimized. HOWEVER, the compiler still does not emit a set_param() function. this will lead to a linker error because the function is not implemented (but defined). After adding an empty implementation by hand the emitted compiles well, and also seems to work when used in the synth. TODO: - implement set_param() - compiler must emit a loader-function (which returns a new Note) - use that loader function in the synth --- synth/note.cpp | 1 - synth/note.h | 7 ------- synth/parser.cpp | 2 +- 3 files changed, 1 insertion(+), 9 deletions(-) (limited to 'synth') diff --git a/synth/note.cpp b/synth/note.cpp index 8ab0546..2f192f2 100644 --- a/synth/note.cpp +++ b/synth/note.cpp @@ -1,4 +1,3 @@ -#include #include #include "note.h" diff --git a/synth/note.h b/synth/note.h index 0e76505..aab471c 100644 --- a/synth/note.h +++ b/synth/note.h @@ -51,13 +51,6 @@ class Note : public NoteSkel oscillator_t *oscillator; filter_params_t filter_params; } orig; - -/* *einstellungen: oszillatoren, deren lautstärke etc. - * note - * lautstärke - * *pitchbend - * *portamento time - */ }; diff --git a/synth/parser.cpp b/synth/parser.cpp index 96648d6..a2ab747 100644 --- a/synth/parser.cpp +++ b/synth/parser.cpp @@ -286,7 +286,7 @@ program_t parse(string fn) pfactor_formula_t pfactor; - fixed_t sync_factor; + fixed_t sync_factor=0; -- cgit v1.2.3