diff options
author | Florian Jung <flo@thinkpad.(none)> | 2011-01-05 15:47:55 +0100 |
---|---|---|
committer | Florian Jung <flo@thinkpad.(none)> | 2011-01-05 15:50:41 +0100 |
commit | 3d95a25600b5cab8a7e5245b7a581bd8c8939276 (patch) | |
tree | be3c2d1b14dd309e48c4f541e67020fed47f5a6c /note_compiler/programs.h | |
parent | 5e731c349b63a557b2e705ce3cd741f90c62c694 (diff) |
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
Diffstat (limited to 'note_compiler/programs.h')
-rw-r--r-- | note_compiler/programs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/note_compiler/programs.h b/note_compiler/programs.h index daf238f..f290e35 100644 --- a/note_compiler/programs.h +++ b/note_compiler/programs.h @@ -76,6 +76,7 @@ struct oscillator_t struct env_settings_t { + bool enabled; float attack; bool attack_const; float decay; @@ -114,6 +115,8 @@ struct program_t fixed_t sync_factor; bool sync_factor_const; + + bool use_pfactor; }; #endif |