importScriptsso I cannot use TinyRave functions I've made here. Is there a workaround?
(repost where I solved the pitch problem)
Does your code look like this? (the output audio pitch goes higher when you decrease the sampleRate and vice versa):
sampleRate=44100; //inside the audio processor (input is buffer data) time+=input.length/sampleRate;
Did you know that you can't change the audioContext's sampleRate? The default is 48000Hz (but not for all browsers probably) so you should do this instead:
Make sure you do
time+(sample/audioContext.sampleRate) for the DSP output data.