howler.js
howler.js copied to clipboard
Support for time stretching
Hi, Thank you for your fantastic library ! I need one other feature, a way to manipulate time-stretching so that you can change the speed of the song, without impacting on the pitch. It seems that there is at least one other js open source library that is doing this, like Kali https://github.com/Infinity/Kali
Can you implement this feature, or help me integrating this feature?
This is out of the scope of the core library, but would make for an interesting plugin. Just as an FYI, if you force HTML5 mode and change the rate, the speed will change without affecting pitch.
let's try this out :)
what are the main disadvantages to using html5 mode ?
Can I ask you why rate behaves differently in html5 and in webaudio? Is this a bug in one of the two (html5 I believe)? Is there a risk that html5 "rate" feature changes in the future ?
It isn't a bug, this is just how it was implemented in HTML5 Audio. I am not aware of any plans for that to change.
I need this feature!
I would also love to have this feature available as an alternative to .rate!
+1 for that
+1
Does anyone have experience with a good JavaScript client library for time stretching then?
Looking for a way to slow down the audio that preserves the pitch and sounds good.
FYI:
-
playbackRate
onHTMLAudioElement
works, but the quality is poor. -
.playbackRate.value
onAudioContext
(Web Audio API) affects the pitch (so slow = sounds like some kind of monster) - SoundTouchJS… still evaluating, but the demo breaks (need to reload it when updating a parameter) and sounds bad for values under 0.8.
+1 for this feature