Skip to content

Commit

Permalink
Update stereo tool (and many other procs)
Browse files Browse the repository at this point in the history
* rename stereo field manipulator and improve UI
* update sst-effects
* update basic-blocks
  • Loading branch information
luismrguimaraes authored Sep 11, 2024
1 parent 9f0fcf8 commit 8b729d3
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 9 deletions.
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

0 comments on commit 8b729d3

Please sign in to comment.