summaryrefslogtreecommitdiff
path: root/note_compiler/programs.h
diff options
context:
space:
mode:
authorFlorian Jung <flo@thinkpad.(none)>2011-02-08 15:58:19 +0100
committerFlorian Jung <flo@thinkpad.(none)>2011-02-08 15:58:19 +0100
commita51271035a8591f8221e9ca6bccc5b98e29f23e1 (patch)
treea0f0259b19d65d0a9b4ce39e14037f78937a9cf4 /note_compiler/programs.h
parent080ddd252d94b9304db3858bc3b7f79cf2f89f33 (diff)
First try to make the compiler up-to-dateupdated_compiler
Diffstat (limited to 'note_compiler/programs.h')
-rw-r--r--note_compiler/programs.h40
1 files changed, 25 insertions, 15 deletions
diff --git a/note_compiler/programs.h b/note_compiler/programs.h
index d7acd61..b311696 100644
--- a/note_compiler/programs.h
+++ b/note_compiler/programs.h
@@ -35,11 +35,31 @@ enum parameter_enum
FILTER_TREM_LFO,
SYNC_FACTOR,
+ FREQ_ATTACK,
+ FREQ_DECAY,
+ FREQ_SUSTAIN,
+ FREQ_RELEASE,
+ FREQ_HOLD,
+ FREQ_ENV_AMOUNT,
PARAMETER_N_ENTRIES,
UNKNOWN=-1
};
+struct env_settings_t
+{
+ bool enabled;
+ float attack;
+ bool attack_const;
+ float decay;
+ bool decay_const;
+ float sustain;
+ bool sustain_const;
+ float release;
+ bool release_const;
+ bool hold;
+ bool hold_const;
+};
struct oscillator_t
{
@@ -51,6 +71,11 @@ struct oscillator_t
bool waveform_const;
fixed_t factor;
bool factor_const;
+
+ float freq_env_amount;
+ bool freq_env_amount_const;
+ env_settings_t freq_env;
+
fixed_t tremolo_depth;
bool tremolo_depth_const;
@@ -74,21 +99,6 @@ struct oscillator_t
bool sync_const;
};
-struct env_settings_t
-{
- bool enabled;
- float attack;
- bool attack_const;
- float decay;
- bool decay_const;
- float sustain;
- bool sustain_const;
- float release;
- bool release_const;
- bool hold;
- bool hold_const;
-};
-
struct filter_params_t
{
bool enabled;