summaryrefslogtreecommitdiff
path: root/note_compiler/programs.h
diff options
context:
space:
mode:
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;