From ff2f14ab35cf1cb2ded11b4ae86d24dda738b445 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Fri, 31 Dec 2010 16:33:17 +0100 Subject: Add initial code for the note-compiler The note-compiler now has a Parser class which knows about possible parameter changes (by controller, velocity or simply user definition). Furthermore, several files were adapted (by stripping unneeded code, adding the bool foo_const variables etc.). Small fix in util.c which causes extract_var("foo") to return "foo" instead of "". Fixes in both Makefiles. --- note_compiler/main.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 note_compiler/main.cpp (limited to 'note_compiler/main.cpp') diff --git a/note_compiler/main.cpp b/note_compiler/main.cpp new file mode 100644 index 0000000..3d59c3b --- /dev/null +++ b/note_compiler/main.cpp @@ -0,0 +1,29 @@ +#include + +#include "parser.h" +#include "programs.h" +#include "util.h" +#include "../synth/fixed.h" + +using namespace std; + +int main(int argc, char** argv) +{ + Parser parser; + program_t p; + + parser.parse("../../velotest.prog"); + + p=parser.get_result(); + + cout << "n_osc="<