Skip to content

Commit

Permalink
DEVICES: blepsynth/blepsynth.cc: reorder parameter groups
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Janik <[email protected]>
  • Loading branch information
tim-janik committed Nov 1, 2023
1 parent ae7361e commit 90bf331
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions devices/blepsynth/blepsynth.cc
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,20 @@ class BlepSynth : public AudioProcessor {

oscparams (0);

start_group ("Mix");
pid_mix_ = add_param ("Mix", "Mix", 0, 100, 0, "%");
pid_vel_track_ = add_param ("Velocity Tracking", "VelTr", 0, 100, 50, "%");
// TODO: this probably should default to 0dB once we have track/mixer volumes
pid_post_gain_ = add_param ("Post Gain", "Gain", -24, 24, -12, "dB");

oscparams (1);

start_group ("Volume Envelope");
pid_attack_ = add_param ("Attack", "A", 0, 100, 20.0, "%");
pid_decay_ = add_param ("Decay", "D", 0, 100, 30.0, "%");
pid_sustain_ = add_param ("Sustain", "S", 0, 100, 50.0, "%");
pid_release_ = add_param ("Release", "R", 0, 100, 30.0, "%");

start_group ("Filter");

pid_cutoff_ = add_param ("Cutoff", "Cutoff", CUTOFF_MIN_MIDI, CUTOFF_MAX_MIDI, 60); // cutoff as midi notes
Expand Down Expand Up @@ -351,27 +365,13 @@ class BlepSynth : public AudioProcessor {
skfilter_mode_choices += { "HP8"_uc, "8 Pole Highpass, 48dB/Octave" };
pid_skfilter_mode_ = add_param ("SKFilter Mode", "Mode", std::move (skfilter_mode_choices), 2, "", "Sallen-Key Filter Mode to be used");

oscparams (1);

start_group ("Volume Envelope");
pid_attack_ = add_param ("Attack", "A", 0, 100, 20.0, "%");
pid_decay_ = add_param ("Decay", "D", 0, 100, 30.0, "%");
pid_sustain_ = add_param ("Sustain", "S", 0, 100, 50.0, "%");
pid_release_ = add_param ("Release", "R", 0, 100, 30.0, "%");

start_group ("Filter Envelope");
pid_fil_attack_ = add_param ("Attack", "A", 0, 100, 40, "%");
pid_fil_decay_ = add_param ("Decay", "D", 0, 100, 55, "%");
pid_fil_sustain_ = add_param ("Sustain", "S", 0, 100, 30, "%");
pid_fil_release_ = add_param ("Release", "R", 0, 100, 30, "%");
pid_fil_cut_mod_ = add_param ("Env Cutoff Modulation", "CutMod", -96, 96, 36, "semitones"); /* 8 octaves range */

start_group ("Mix");
pid_mix_ = add_param ("Mix", "Mix", 0, 100, 0, "%");
pid_vel_track_ = add_param ("Velocity Tracking", "VelTr", 0, 100, 50, "%");
// TODO: this probably should default to 0dB once we have track/mixer volumes
pid_post_gain_ = add_param ("Post Gain", "Gain", -24, 24, -12, "dB");

start_group ("Keyboard Input");
pid_c_ = add_param ("Main Input 1", "C", false, GUIONLY);
pid_d_ = add_param ("Main Input 2", "D", false, GUIONLY);
Expand Down

0 comments on commit 90bf331

Please sign in to comment.