Skip to content

Commit

Permalink
Port the surge phaser to sst-effects
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Sep 30, 2023
1 parent 3e0b59f commit 04b5c31
Show file tree
Hide file tree
Showing 7 changed files with 428 additions and 4 deletions.
24 changes: 24 additions & 0 deletions include/sst/effects/Chorus.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* sst-effects - an open source library of audio effects
* built by Surge Synth Team.
*
* Copyright 2018-2023, various authors, as described in the GitHub
* transaction log.
*
* sst-effects is released under the GNU General Public Licence v3
* or later (GPL-3.0-or-later). The license is found in the "LICENSE"
* file in the root of this repository, or at
* https://www.gnu.org/licenses/gpl-3.0.en.html
*
* The majority of these effects at initiation were factored from
* Surge XT, and so git history prior to April 2023 is found in the
* surge repo, https://github.com/surge-synthesizer/surge
*
* All source in sst-effects available at
* https://github.com/surge-synthesizer/sst-effects
*/

#ifndef INCLUDE_SST_EFFECTS_CHORUS_H
#define INCLUDE_SST_EFFECTS_CHORUS_H

#endif // SURGE_CHORUS_H
2 changes: 2 additions & 0 deletions include/sst/effects/EffectCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ template <typename FXConfig> struct EffectTemplateBase : public FXConfig::BaseCl
width.multiply_block(S, FXConfig::blockSize >> 2);
sdsp::decodeMS<FXConfig::blockSize>(M, S, L, R);
}

static constexpr int slowrate{8}, slowrate_m1{slowrate - 1};
};
} // namespace sst::effects::core

Expand Down
Loading

0 comments on commit 04b5c31

Please sign in to comment.