🎥 Make videos programmatically with React
Attribute pitch shifting algorithm
Jonny Burger841cfec86673
diff --git a/packages/media/src/audio/pitch-shift.ts b/packages/media/src/audio/pitch-shift.tsindex 8fa6f8b7c5..d0790c4a8e 100644--- a/packages/media/src/audio/pitch-shift.ts+++ b/packages/media/src/audio/pitch-shift.ts@@ -1,5 +1,7 @@import type {AudioBufferSlice} from '../make-iterator-with-priming';+// The pitch-shifting algorithm is adapted from Vanilagy's WSOLA audio+// stretcher: https://gist.github.com/Vanilagy/05f7901f4c4398356657e3a86c7aee05const REFERENCE_SAMPLE_RATE = 48_000;const REFERENCE_HOP_SIZE = 512;