importScripts
so 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:
time+=input.length/audioContext.sampleRate;
Make sure you do time+(sample/audioContext.sampleRate)
for the DSP output data.
time*=44100/48000;
.
Hi! I'm pretty new to this but i've been trying to use tinyrave in Atom. I've installed the package and can make a sine wave to sound but when adding certain types of example code I get this error:
Uncaught TypeError: Cannot read property 'remove' of undefined
/Users/bkwrm/.atom/packages/AtomPackage/node_modules/atom-message-panel/lib/MessagePanelView.js:189
Show Stack Trace
The error was thrown from the TinyRave package. You can help by creating an issue. Please explain what actions triggered this error.
Once I get this error tinyrave doesn't work at all in Atom until I quit and restart again. This seems really cool so I'd love to be able to get some help. Thanks in advance for your time.