Foliovision › Forums › FV Player › Requests and Feedback › Pitch shifter ?
-
Would it be possible to have an option to change the tune of the audio of the video in realtime ? (original pitch of a sound raised or lowered)
Like this player : https://29a.ch/timestretch/
-
-
Hello Cirdec,
I would say manipulating audio in web browser is one thing and manipulating the audio track of a video in web browser is something else.
I found how we can connect to the video audio track and add simple filters using Web Audio API: https://developer.mozilla.org/en-US/docs/Web/Guide/Audio_and_video_manipulation#audio_manipulation
And here’s how a sample can be played at a different pitch: https://zpl.fi/pitch-shifting-in-web-audio-api/
So the challenge here would be to connect these two pieces together and ensure compatibility with different browsers.
I wonder if this could be some FV Player Audio Effects plugin which could be used on a music teaching websites.
Thanks,
MartinHi Cédric and Marcel,
Thanks for your suggestion. For the moment this feature request is beyond the scope of FV Player. The biggest issue is where to put the interface.
By trying to serve every need, we would serve no needs.
If you can show us some use case examples along with good interface for the request, I have an open mind.
Thanks, Alec
- This reply was modified 2 years, 3 months ago by Alec Kinnear.
Hi Alec,
I absolutely see your point.
I own a online music school based on videos. Some instruments have only a small range or only work in one key. To use the videos for instruments in other keys I would need a pitch shifter. Actually I can see many reasons for a pitch shifter but I am not share if music platforms are your target customers.
I would see two ways to do this:-
Have a Pitch button like the AB and then a list to change the tonality (1 semitone up to 7 semitones up and 1 semitone down to 7 semitones down) like the speed dropdown
-
Have a pitch button which opens a text field or slider to change the tonality in cent (100ct= one semitone up, -300=three semitones down and so on)
For my particular reason it would be great to be able to create a list in the settings and then have a list in the player with the options set like
OPTION LIST:
+200 A
-0 G
-200 FAnd then the list to change the tonality in the player
A
G
FBut I think my use case might be a one off :)
Let me know if I can help in any way and thanks for reaching out.
Happy weekend
CheersMarcel
Hi Marcel,
Thanks for the images.
We’ve looked into creating a shift pitcher and done quite a bit of technical research. Basically to make it work, we’d have to disable almost all download protection. And then it’s ultra complicated.
My suggestion for musicians who wish to adjust pitch would be to do it not in the player but in a DAC or equalizer between the player and the amplification system.
Have you seen a pitch shifter in the wild actually being used as part of a pro video site (not just a proof of concept but in actual use), Marcel?
Thanks, Alec