BrU32

JS Web Audio API Circut Disruption SRC POC V1

Jul 28th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <script>
  2. var p=prompt("Enter:1 For 26Mhz Jammer Enter:2 For 58Mhz Jammer And 3 For 200Mhz You can Enter 12 for two or 123 to run all three concurrently:");
  3. if(p.length==1){
  4. //if(p.substring(0,1)=='1'){
  5. var context= new AudioContext();
  6. var oscillator=context.createOscillator();
  7. oscillator.frequency.value='20000000.1';
  8. oscillator.frequency.type='sine'
  9. oscillator.connect(context.destination);
  10. oscillator.start(0);
  11.  
  12. }
  13. if(p.length==2){
  14. var context= new AudioContext();
  15. var oscillator=context.createOscillator();
  16. oscillator.frequency.value='5800000';
  17. oscillator.frequency.type='sine'
  18. oscillator.connect(context.destination);
  19. oscillator.start(0);
  20. }
  21. if(p.length==3){
  22. var context= new AudioContext();
  23. var oscillator=context.createOscillator();
  24. oscillator.frequency.value='26200000.1';
  25. oscillator.frequency.type='sine'
  26. oscillator.connect(context.destination);
  27. oscillator.start(0)
  28. }
  29. </script>
Advertisement
Add Comment
Please, Sign In to add comment