BrU32

JS LFO/HFO Movie FX Flying Sauser SRC

Jul 25th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <script>
  2. var context = new AudioContext();
  3. var lfo = context.createOscillator();
  4. lfo.frequency.value = 12.0;
  5. var hfo = context.createOscillator();
  6. hfo.frequency.value = prompt('enter');
  7. var modulationGain = context.createGain();
  8. modulationGain.gain.value = 50;
  9. lfo.connect(modulationGain);
  10. modulationGain.connect(hfo.detune);
  11. hfo.connect(context.destination);
  12. hfo.start(0);
  13. lfo.start(0);
  14. </script>
Add Comment
Please, Sign In to add comment