Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pedalboard/plugins/Bitcrush.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ template <typename SampleType> class Bitcrush : public Plugin {
};

virtual void prepare(const juce::dsp::ProcessSpec &spec) override {
scaleFactor = pow(2, bitDepth);
scaleFactor = pow(2, bitDepth - 1) + 1;
inverseScaleFactor = 1.0 / scaleFactor;
}
virtual void reset() override {}
Expand Down
Loading