π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
Make getScaleFactor a private member of PitchShift.
Peter Sobot702300f258e1
diff --git a/pedalboard/plugins/PitchShift.h b/pedalboard/plugins/PitchShift.hindex 75fed09..d34d070 100644--- a/pedalboard/plugins/PitchShift.h+++ b/pedalboard/plugins/PitchShift.h@@ -35,6 +35,8 @@ private:// Allow pitch shifting by up to 6 octaves up or down:static constexpr int MIN_SEMITONES = -6 * 12;static constexpr int MAX_SEMITONES = 6 * 12;++ double getScaleFactor() { return pow(2, (getSemitones() / 12)); }public:void setSemitones(double semitones) {@@ -51,7 +53,6 @@ public:}double getSemitones() { return _semitones; }- double getScaleFactor() { return pow(2, (getSemitones() / 12)); }void prepare(const juce::dsp::ProcessSpec &spec) override final {RubberbandPlugin::prepare(spec);