Skip to content

Commit

Permalink
add tilt eq (#1290)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreya-Autumn authored Sep 9, 2024
1 parent ea3c693 commit 2c3d82e
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 8 deletions.
2 changes: 1 addition & 1 deletion libs/sst/sst-effects
4 changes: 4 additions & 0 deletions src-ui/app/edit-screen/components/ProcessorPane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ void ProcessorPane::rebuildControlsFromDescription()
layoutControlsEQNBandParm();
break;

case dsp::processor::proct_eq_tilt:
layoutControlsFromJSON("processors/tilteq.json");
break;

case dsp::processor::proct_eq_morph:
layoutControlsEQMorph();
break;
Expand Down
28 changes: 28 additions & 0 deletions src-ui/json-assets/processors/tilteq.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"defaults": {
"coordinate-system": "absolute",
"component": "knob",
"label-mode": "auto",
"type": "float"
},
"components": [
{
"index": 0,
"coordinates": [
15,
25,
70,
70
]
},
{
"index": 1,
"coordinates": [
105,
25,
70,
70
]
}
]
}
1 change: 1 addition & 0 deletions src/dsp/processor/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ enum ProcessorType
proct_eq_3band_parametric_A,
proct_eq_6band,
proct_eq_morph,
proct_eq_tilt,
proct_comb1,
proct_fx_bitcrusher,
proct_fx_distortion1,
Expand Down
19 changes: 12 additions & 7 deletions src/dsp/processor/processor_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
#include "sst/voice-effects/eq/EqNBandParametric.h"
#include "sst/voice-effects/eq/EqGraphic6Band.h"
#include "sst/voice-effects/eq/MorphEQ.h"
#include "sst/voice-effects/eq/TiltEQ.h"

#include "sst/voice-effects/filter/CytomicSVF.h"
#include "sst/voice-effects/filter/SSTFilters.h"
Expand Down Expand Up @@ -138,19 +139,20 @@ using eq3impl_os = sst::voice_effects::eq::EqNBandParametric<SCXTVFXConfig<2>, 3
} // namespace procimpl::detail

DEFINE_PROC(EQ3Band, procimpl::detail::eq3impl, procimpl::detail::eq3impl_os,
proct_eq_3band_parametric_A, "3 Band Parametric", "EQ & Utility", "eq-parm-3band");
proct_eq_3band_parametric_A, "3 Band Parametric", "EQ", "eq-parm-3band");
DEFINE_PROC(EQGraphic6Band, sst::voice_effects::eq::EqGraphic6Band<SCXTVFXConfig<1>>,
sst::voice_effects::eq::EqGraphic6Band<SCXTVFXConfig<2>>, proct_eq_6band,
"6 Band Graphic", "EQ & Utility", "eq-grp-6");
DEFINE_PROC(MorphEQ, sst::voice_effects::eq::MorphEQ<SCXTVFXConfig<1>>,
sst::voice_effects::eq::MorphEQ<SCXTVFXConfig<2>>, proct_eq_morph, "Morph", "Filters",
"eq-morph");
"6 Band Graphic", "EQ", "eq-grp-6");

DEFINE_PROC(TiltEQ, sst::voice_effects::eq::TiltEQ<SCXTVFXConfig<1>>,
sst::voice_effects::eq::TiltEQ<SCXTVFXConfig<2>>, proct_eq_tilt, "Tilt EQ", "EQ",
"eq-tilt");
DEFINE_PROC(VolPan, sst::voice_effects::utilities::VolumeAndPan<SCXTVFXConfig<1>>,
sst::voice_effects::utilities::VolumeAndPan<SCXTVFXConfig<2>>, proct_volpan,
"Volume & Pan", "EQ & Utility", "volume-pan");
"Volume & Pan", "Utility", "volume-pan");
DEFINE_PROC(Widener, sst::voice_effects::delay::Widener<SCXTVFXConfig<1>>,
sst::voice_effects::delay::Widener<SCXTVFXConfig<2>>, proct_fx_widener, "Widener",
"EQ & Utility", "fxstereo-fx", dsp::surgeSincTable);
"Utility", "fxstereo-fx", dsp::surgeSincTable);

DEFINE_PROC(GenVA, sst::voice_effects::generator::GenVA<SCXTVFXConfig<1>>,
sst::voice_effects::generator::GenVA<SCXTVFXConfig<2>>, proct_osc_VA, "VA Oscillator",
Expand All @@ -171,6 +173,9 @@ DEFINE_PROC(StringResonator, sst::voice_effects::delay::StringResonator<SCXTVFXC
sst::voice_effects::delay::StringResonator<SCXTVFXConfig<2>>, proct_stringResonator,
"String Resonator", "Generators", "stringex-fx", dsp::surgeSincTable);

DEFINE_PROC(MorphEQ, sst::voice_effects::eq::MorphEQ<SCXTVFXConfig<1>>,
sst::voice_effects::eq::MorphEQ<SCXTVFXConfig<2>>, proct_eq_morph, "Morph", "Filters",
"eq-morph");
DEFINE_PROC(CytomicSVF, sst::voice_effects::filter::CytomicSVF<SCXTVFXConfig<1>>,
sst::voice_effects::filter::CytomicSVF<SCXTVFXConfig<2>>, proct_CytomicSVF, "Fast SVF",
"Filters", "filt-cytomic");
Expand Down

0 comments on commit 2c3d82e

Please sign in to comment.