Open mysteryx93 opened 3 years ago
This would be a great feature for https://github.com/marcan/blitzloop
In general, the way you do this with any tempo-shifting algorithm is to follow it with a resampler, which gets you pack to the original tempo and changes the pitch (or any arbitrary combination, depending on the parameters). That's what rubberband does internally, AIUI.
Also if this pitch-shifting is done in 48000hz instead of 41000hz, it produces better output. It would be nice if it could do that internally.
Does an algorithm that subjectively "sounds better" when time-stretching also translate to "sounding better" when used for pitch shifting?
From my unscientific sampling of karaoke friends, all seem to prefer Soundtouch over rubberband. Also, rubberband eats up an entire core on a RPI 2 when increasing pitch.
I prefer soundtouch over rubberband. Rubberband is inconsistent, alters bass, and causes artefacts with some audios. SoundTouch better respects the source audio.
There are now many methods to change speed in MPV; and still no feature to change pitch without altering speed besides Rubberband (that doesn't produce good output for all types of audios).
I found that changing pitch with BASS audio gives better quality than the algorithm used in scaletempo. The licensing terms of BASS however won't be suitable for this project.
That's wishful thinking, but I'd love to be able to shift pitch in MPV with the same algorithm that BASS is using.
Also check the workaround posted here, it works with scaletempo: https://github.com/mpv-player/mpv/issues/9544
ah good to know it's actually possible to make it work!
In MPV v0.33.1, there is now "scaletempo2" audio filter that seemingly achieves better quality than scaletempo or rubberband. Scaletempo has a bug preventing from changing the pitch without altering the speed. Rubberband works but causes audio distortions IMO.
Now, scaletempo2 would look interesting, but it's designed to "Scales audio tempo without altering pitch". Would there be a way to extend it to allow shifting the pitch without altering audio tempo?