Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stereo Field Manipulator Rename and UI Improvement #1304

Merged
merged 6 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libs/sst/sst-basic-blocks
22 changes: 22 additions & 0 deletions src-ui/app/edit-screen/components/ProcessorPane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ void ProcessorPane::rebuildControlsFromDescription()
layoutControlsMicroGate();
break;

case dsp::processor::proct_stereotool:
layoutControlsStereoTool();
break;

case dsp::processor::proct_CytomicSVF:
layoutControlsFastSVF();
break;
Expand Down Expand Up @@ -899,6 +903,24 @@ void ProcessorPane::layoutControlsMicroGate()
lo::knob<55>(*floatEditors[3], 105, 75);
}

void ProcessorPane::layoutControlsStereoTool()
{
namespace lo = theme::layout;
namespace locon = lo::constants;

floatEditors[0] = createWidgetAttachedTo(floatAttachments[0], floatAttachments[0]->getLabel());
lo::knob<55>(*floatEditors[0], 25, 0);

floatEditors[1] = createWidgetAttachedTo(floatAttachments[1], floatAttachments[1]->getLabel());
lo::knob<55>(*floatEditors[1], 105, 0);

floatEditors[2] = createWidgetAttachedTo(floatAttachments[2], floatAttachments[2]->getLabel());
lo::knob<55>(*floatEditors[2], 25, 75);

floatEditors[3] = createWidgetAttachedTo(floatAttachments[3], floatAttachments[3]->getLabel());
lo::knob<55>(*floatEditors[3], 105, 75);
}

void ProcessorPane::layoutControlsVAOsc()
{
namespace lo = theme::layout;
Expand Down
1 change: 1 addition & 0 deletions src-ui/app/edit-screen/components/ProcessorPane.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ struct ProcessorPane : sst::jucegui::components::NamedPanel, HasEditor, juce::Dr

void layoutControls();
void layoutControlsMicroGate();
void layoutControlsStereoTool();
void layoutControlsSurgeFilters();
void layoutControlsFastSVF();
void layoutControlsWaveshaper();
Expand Down
3 changes: 1 addition & 2 deletions src/dsp/processor/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ enum ProcessorType
proct_shepard,
proct_Chorus,
proct_volpan,
proct_stereofieldmanip,
proct_stereotool,
proct_Compressor,
proct_autowah,

Expand All @@ -134,7 +134,6 @@ enum ProcessorType
proct_fx_distortion1,
proct_fx_clipper,
proct_fx_slewer,
proct_fx_stereotools,
proct_fx_limiter,
proct_fx_gate,
proct_fx_microgate,
Expand Down
9 changes: 4 additions & 5 deletions src/dsp/processor/processor_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
#include "sst/voice-effects/modulation/NoiseAM.h"
#include "sst/voice-effects/delay/Chorus.h"
#include "sst/voice-effects/utilities/VolumeAndPan.h"
#include "sst/voice-effects/utilities/StereoFieldManipulator.h"
#include "sst/voice-effects/utilities/StereoTool.h"
#include "sst/voice-effects/dynamics/Compressor.h"
#include "sst/voice-effects/dynamics/AutoWah.h"

Expand Down Expand Up @@ -156,10 +156,9 @@ DEFINE_PROC(TiltEQ, sst::voice_effects::eq::TiltEQ<SCXTVFXConfig<1>>,
DEFINE_PROC(VolPan, sst::voice_effects::utilities::VolumeAndPan<SCXTVFXConfig<1>>,
sst::voice_effects::utilities::VolumeAndPan<SCXTVFXConfig<2>>, proct_volpan,
"Volume & Pan", "Utility", "volume-pan");
DEFINE_PROC(StereoFieldManipulator,
sst::voice_effects::utilities::StereoFieldManipulator<SCXTVFXConfig<1>>,
sst::voice_effects::utilities::StereoFieldManipulator<SCXTVFXConfig<2>>,
proct_stereofieldmanip, "Stereo Field Manipulator", "Utility", "stereo-field-manip");
DEFINE_PROC(StereoTool, sst::voice_effects::utilities::StereoTool<SCXTVFXConfig<1>>,
sst::voice_effects::utilities::StereoTool<SCXTVFXConfig<2>>, proct_stereotool,
"Stereo Tool", "Utility", "stereo-tool");
DEFINE_PROC(Widener, sst::voice_effects::delay::Widener<SCXTVFXConfig<1>>,
sst::voice_effects::delay::Widener<SCXTVFXConfig<2>>, proct_fx_widener, "Widener",
"Utility", "fxstereo-fx", dsp::surgeSincTable);
Expand Down
Loading