Skip to content

Commit

Permalink
take 10
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoerdvankreel committed Nov 4, 2024
1 parent 7145bb1 commit 296554c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions param_reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ <h3>Global LFO</h3>
<td>Block</td>
<td>None</td>
<td>Saw</td>
<td>Free Static 1</td>
<td>FreeStatic 1</td>
<td>Sin</td>
<td>N/A</td>
</tr>
Expand Down Expand Up @@ -2054,7 +2054,7 @@ <h3>Voice LFO</h3>
<td>Voice</td>
<td>Automate</td>
<td>Saw</td>
<td>Free Static 2</td>
<td>FreeStatic 2</td>
<td>Sin</td>
<td>N/A</td>
</tr>
Expand Down
10 changes: 5 additions & 5 deletions src/firefly_synth/firefly_synth/lfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,30 +477,30 @@ lfo_topo(int section, gui_position const& pos, bool global, bool is_fx)
non_mseg_section.gui.merge_with_section = section_non_mseg_phase;
non_mseg_section.gui.autofit_row = 0;
auto& shape = result.params.emplace_back(make_param(
make_topo_info_basic("{7D48C09B-AC99-4B88-B880-4633BC8DFB37}", "Shape", param_shape, 1),
make_topo_info("{7D48C09B-AC99-4B88-B880-4633BC8DFB37}", true, "Shape", "Shp", "Shape", param_shape, 1),
make_param_dsp_automate_if_voice(!global), make_domain_item(wave_shape_type_items(wave_target::lfo, global), "Sin"),
make_param_gui_single(section_non_mseg, gui_edit_type::autofit_list, { 0, 0 },
make_label(gui_label_contents::name, gui_label_align::left, gui_label_justify::near))));
shape.gui.bindings.enabled.bind_params({ param_type }, [](auto const& vs) { return vs[0] != type_off; });
shape.info.description = std::string("Selects waveform: various periodic functions plus smooth and static noise.");
auto& seed = result.params.emplace_back(make_param(
make_topo_info_basic("{19ED9A71-F50A-47D6-BF97-70EA389A62EA}", "Seed", param_seed, 1),
make_topo_info("{19ED9A71-F50A-47D6-BF97-70EA389A62EA}", true, "Seed", "Sed", "Seed", param_seed, 1),
make_param_dsp_automate_if_voice(!global), make_domain_step(1, 255, 1, 0),
make_param_gui_single(section_non_mseg, gui_edit_type::hslider, { 1, 0 },
make_label(gui_label_contents::name, gui_label_align::left, gui_label_justify::near))));
seed.gui.bindings.visible.bind_params({ param_type, param_shape }, [](auto const& vs) { return !is_noise_voice_rand(vs[1]); });
seed.gui.bindings.enabled.bind_params({ param_type, param_shape }, [](auto const& vs) { return vs[0] != type_off && is_noise_not_voice_rand(vs[1]); });
seed.info.description = "Seed value for static and smooth noise generators.";
auto& voice_rnd_source = result.params.emplace_back(make_param(
make_topo_info_basic("{81DAE640-815C-4D61-8DDE-D4CAD70309EF}", "Source", param_voice_rnd_source, 1),
make_topo_info("{81DAE640-815C-4D61-8DDE-D4CAD70309EF}", true, "Source", "Src", "Source", param_voice_rnd_source, 1),
make_param_dsp_automate_if_voice(!global), make_domain_step(0, on_voice_random_count - 1, 1, 1),
make_param_gui_single(section_non_mseg, gui_edit_type::list, { 1, 0 },
make_label(gui_label_contents::name, gui_label_align::left, gui_label_justify::near))));
voice_rnd_source.gui.bindings.visible.bind_params({ param_type, param_shape }, [](auto const& vs) { return is_noise_voice_rand(vs[1]); });
voice_rnd_source.gui.bindings.enabled.bind_params({ param_type, param_shape }, [](auto const& vs) { return vs[0] != type_off && is_noise_voice_rand(vs[1]); });
voice_rnd_source.info.description = "Per-voice random stream source for static and smooth noise generators.";
auto& x_mode = result.params.emplace_back(make_param(
make_topo_info("{A95BA410-6777-4386-8E86-38B5CBA3D9F1}", true, "Skew X Mode", "Skew X", "Skew X", param_skew_x, 1),
make_topo_info("{A95BA410-6777-4386-8E86-38B5CBA3D9F1}", true, "Skew X Mode", "X", "Skew X", param_skew_x, 1),
make_param_dsp_automate_if_voice(!global), make_domain_item(wave_skew_type_items(), "Off"),
make_param_gui_single(section_non_mseg, gui_edit_type::autofit_list, { 0, 2 },
make_label(gui_label_contents::name, gui_label_align::left, gui_label_justify::near))));
Expand All @@ -514,7 +514,7 @@ lfo_topo(int section, gui_position const& pos, bool global, bool is_fx)
x_amt.gui.bindings.enabled.bind_params({ param_type, param_skew_x }, [](auto const& vs) { return vs[0] != type_off && vs[1] != wave_skew_type_off; });
x_amt.info.description = "Horizontal skew amount.";
auto& y_mode = result.params.emplace_back(make_param(
make_topo_info("{5D716AA7-CAE6-4965-8FC1-345DAA7141B6}", true, "Skew Y Mode", "Skew Y", "Skew Y", param_skew_y, 1),
make_topo_info("{5D716AA7-CAE6-4965-8FC1-345DAA7141B6}", true, "Skew Y Mode", "Y", "Skew Y", param_skew_y, 1),
make_param_dsp_automate_if_voice(!global), make_domain_item(wave_skew_type_items(), "Off"),
make_param_gui_single(section_non_mseg, gui_edit_type::autofit_list, { 1, 2 },
make_label(gui_label_contents::name, gui_label_align::left, gui_label_justify::near))));
Expand Down
8 changes: 4 additions & 4 deletions src/firefly_synth/firefly_synth/waves.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ wave_make_name_shape(int shape, wave_target target)
case wave_shape_type_cos_cos_cos: return "CsCsCs";
case wave_shape_type_sqr_or_fold: return target == wave_target::shaper ? "Fldbk": "Sqr";
case wave_shape_type_smooth_1: return "Smooth 1";
case wave_shape_type_smooth_free_1: return "Free Smooth 1";
case wave_shape_type_smooth_free_1: return "FreeSmth 1";
case wave_shape_type_static_1: return "Static 1";
case wave_shape_type_static_free_1: return "Free Static 1";
case wave_shape_type_static_free_1: return "FreeStatic 1";
case wave_shape_type_smooth_2: return "Smooth 2";
case wave_shape_type_smooth_free_2: return "Free Smooth 2";
case wave_shape_type_smooth_free_2: return "FreeSmth 2";
case wave_shape_type_static_2: return "Static 2";
case wave_shape_type_static_free_2: return "Free Static 2";
case wave_shape_type_static_free_2: return "FreeStatic 2";
default: assert(false); return {};
}
}
Expand Down

0 comments on commit 296554c

Please sign in to comment.