Skip to content

Commit

Permalink
Attempt to reduce CPU usage
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwillis committed May 1, 2019
1 parent ff2aa6b commit 3f14e0d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion common/DragonflyVersion.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@

#define MAJOR_VERSION 1
#define MINOR_VERSION 9
#define PATCH_VERSION 1
#define PATCH_VERSION 2
#define VERSION_SUFFIX "beta"
12 changes: 9 additions & 3 deletions plugins/dragonfly-hall-reverb/DragonflyReverbDSP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,22 @@
#include "DragonflyReverbDSP.hpp"

DragonflyReverbDSP::DragonflyReverbDSP(double sampleRate) {
early.setSampleRate(sampleRate);
early.loadPresetReflection(FV3_EARLYREF_PRESET_1);
early.setMuteOnChange(false);
early.setdryr(0); // mute dry signal
early.setwet(0); // 0dB
early.setwidth(0.8);
early.setLRDelay(0.3);
early.setLRCrossApFreq(750, 4);
early.setDiffusionApFreq(150, 4);
early.setSampleRate(sampleRate);
early_send = 0.20;

late.setSampleRate(sampleRate);
late.setMuteOnChange(false);
late.setdryr(0); // mute dry signal
late.setwet(0); // 0dB
late.setdryr(0); // mute dry signal
late.setwidth(1.0);
late.setSampleRate(sampleRate);

for (uint32_t param = 0; param < paramCount; param++) {
newParams[param] = banks[DEFAULT_BANK].presets[DEFAULT_PRESET].params[param];
Expand Down
12 changes: 9 additions & 3 deletions plugins/dragonfly-room-reverb/DragonflyReverbDSP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,22 @@
#include "DragonflyReverbDSP.hpp"

DragonflyReverbDSP::DragonflyReverbDSP(double sampleRate) {
early.setSampleRate(sampleRate);
early.loadPresetReflection(FV3_EARLYREF_PRESET_1);
early.setMuteOnChange(false);
early.setdryr(0); // mute dry signal
early.setwet(0); // 0dB
early.setwidth(0.8);
early.setLRDelay(0.3);
early.setLRCrossApFreq(750, 4);
early.setDiffusionApFreq(150, 4);
early.setSampleRate(sampleRate);
early_send = 0.20;

late.setSampleRate(sampleRate);
late.setMuteOnChange(false);
late.setdryr(0); // mute dry signal
late.setwet(0); // 0dB
late.setdryr(0); // mute dry signal
late.setwidth(1.0);
late.setSampleRate(sampleRate);

for (uint32_t param = 0; param < paramCount; param++) {
newParams[param] = banks[DEFAULT_BANK].presets[DEFAULT_PRESET].params[param];
Expand Down

0 comments on commit 3f14e0d

Please sign in to comment.