That would be really cool to have…
So here’s the break down:
Those two functions (setSpeed
, and setPitch
) basically wrap around SoLoud’s setRelativePlaySpeed
and setSamplerate
. To me, they provide the same effect although there’s a difference in how.
I believe, however, the original audio lib does it the same way, where pitch values directly affects the duration of the audio, so I went ahead and put those two in.
Now, there has been a request on the official repo to have built-in functionality to change pitch without affecting duration. It’s also commented that this is doable using FFTFilter.
So, to answer your question, I currently don’t know the “how”; I have only spent a little bit of time exploring SoLoud’s other features and functionality, and definitely not yet acquainted with it.
The Solar2D samples of SoLoud have a lot to chew on.
Anyone is welcome to provide insight on their experiments and findings.
I would also love to expand the module’s API facilitating SoLoud’s usage.