summaryrefslogtreecommitdiff
path: root/note_compiler/programs.h
AgeCommit message (Collapse)Author
2011-01-09Improved note-compiler: optimizing output now works properlyFlorian Jung
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.
2011-01-08Added some of the bugfixes to the note_compiler and removed use_pfactorFlorian Jung
2011-01-05Note-compiler is _mostly_ complete; plus some tiny bugfixesFlorian Jung
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
2010-12-31Add initial code for the note-compilerFlorian Jung
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.