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. --- synth/Makefile | 3 ++- synth/util.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'synth') diff --git a/synth/Makefile b/synth/Makefile index 7146da2..f84441c 100644 --- a/synth/Makefile +++ b/synth/Makefile @@ -1,5 +1,6 @@ CXX=g++ -CXXFLAGS=-Wall -g +CFLAGS=-Wall -g +CXXFLAGS=$(CFLAGS) LDFLAGS=-lm `pkg-config --cflags --libs jack` OBJ=channel.o cli.o defines.o envelope.o filter.o globals.o jack.o load.o main.o note.o note_skel.o parser.o programs.o readwave.o util.o diff --git a/synth/util.cpp b/synth/util.cpp index ca213fd..51e6fda 100644 --- a/synth/util.cpp +++ b/synth/util.cpp @@ -192,7 +192,7 @@ string extract_val(string s) if (p!=string::npos) return s.substr(p+1); else - return ""; + return s; } string fileext(string f) -- cgit v1.2.3