I'm a beginner learning javascript. I've got various projects in mind with an interactive page on my site related to microtonal frequencies and planetary frequencies.
I need to be able to play my audio sample .wav file in a loop but have the audio sample timestretched with a corresponding change in pitch.
I tried myAudio.playbackRate = 0.5;
which plays the audio 0.5 slower but keeps pitch same.
I researched and found something. But how do i set preservesPitch
to false or true? And this only works in 'Google Chrome' I think, so other program i found is here :
https://github.com/janesconference/KievII/blob/master/dsp/pitchshift.js
Can't seem to get it working, i don't know how i am supposed to modify it, where do i paste my Audio .wav file URL in the program ?
Any other tips related to this would be much appreciated.
Thanks in advance for your time and help.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…