audioplayers icon indicating copy to clipboard operation
audioplayers copied to clipboard

Is it possible to adjust playback pitch?

Open davebound opened this issue 4 years ago • 5 comments

davebound avatar Sep 03 '20 11:09 davebound

Seems not:

setRate() is present in WrappedMediaPlayer (https://github.com/luanpotter/audioplayers/blob/f508de034fed81d0d74482926df7c8720122250d/android/src/main/java/xyz/luan/audioplayers/WrappedMediaPlayer.java#L104) but there is no setPitch(), although it should be fairly easy to add that (for Android - don't know about iOS)

davebound avatar Sep 03 '20 11:09 davebound

I would be ok with a PR if it's easy to do (eg one param on the player).

However, as an alternative, unless you want to modulate the pitch dynamically, you can generate the file you want with the right pitch and save the device some processing time.

luanpotter avatar Oct 13 '20 12:10 luanpotter

pitch adjustment would be great so you could make a music sampler!

jtkeyva avatar Nov 17 '20 05:11 jtkeyva

is this feature available or planned?

kekko7072 avatar Jan 09 '22 16:01 kekko7072

@kekko7072 you can try to implement it yourself and make MR, if you want to afford some time :)

Gustl22 avatar Sep 03 '22 10:09 Gustl22