Skip to content

πŸŽ› πŸ”Š A Python library for audio.

clang-format.

Peter Sobotb11514d7f034
diff --git a/pedalboard/plugins/PitchShift.h b/pedalboard/plugins/PitchShift.h
index d34d070..836c0f9 100644
--- a/pedalboard/plugins/PitchShift.h
+++ b/pedalboard/plugins/PitchShift.h
@@ -35,7 +35,7 @@ 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: