Skip to content

Commit

Permalink
use pb setter instead of juce setter in noisegate (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
iCorv committed Aug 28, 2022
1 parent 26f5ad5 commit 8023297
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pedalboard/plugins/NoiseGate.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ inline void init_noisegate(py::module &m) {
.def(py::init([](float thresholddB, float ratio, float attackMs,
float releaseMs) {
auto plugin = std::make_unique<NoiseGate<float>>();
plugin->getDSP().setThreshold(thresholddB);
plugin->getDSP().setRatio(ratio);
plugin->getDSP().setAttack(attackMs);
plugin->getDSP().setRelease(releaseMs);
plugin->setThreshold(thresholddB);
plugin->setRatio(ratio);
plugin->setAttack(attackMs);
plugin->setRelease(releaseMs);
return plugin;
}),
py::arg("threshold_db") = -100.0, py::arg("ratio") = 10,
Expand All @@ -69,4 +69,4 @@ inline void init_noisegate(py::module &m) {
.def_property("release_ms", &NoiseGate<float>::getRelease,
&NoiseGate<float>::setRelease);
}
}; // namespace Pedalboard
}; // namespace Pedalboard

0 comments on commit 8023297

Please sign in to comment.