Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript emit sound

function beep() {
  var context = new AudioContext();
  var oscillator = context.createOscillator();
  oscillator.type = "sine";
  oscillator.frequency.value = 800;
  oscillator.connect(context.destination);
  oscillator.start(); 
  // Beep for 500 milliseconds
  setTimeout(function () {
      oscillator.stop();
  }, 500);
}

beep();

// See source for a parametrized sound
Comment

PREVIOUS NEXT
Code Example
Javascript :: js convert double to int 
Javascript :: express send raw html 
Javascript :: get keys of dictionary js 
Javascript :: get x characters from string javascript 
Javascript :: input type number react native 
Javascript :: add span after input jquery 
Javascript :: js download json 
Javascript :: convert binary to decimal javascript 
Javascript :: expo update react native 
Javascript :: js conditional object property 
Javascript :: adonis js sort by 
Javascript :: js cleartimeout 
Javascript :: length of elements with display none 
Javascript :: npm ERR! errno ECONNRESET 
Javascript :: how to just have createdAt mongoose 
Javascript :: jquery set max attribute value 
Javascript :: alert confirm prompt javascript 
Javascript :: javascript remove space from string 
Javascript :: ecmascript 
Javascript :: remove attribute javascript 
Javascript :: get device type using javascript 
Javascript :: moment js day name language 
Javascript :: regex password validation 
Javascript :: jquery post failure 
Javascript :: get all rooms socket.io 
Javascript :: javasscript get the content inbetween a select tag 
Javascript :: how to find the width of outerconatiner in react native 
Javascript :: check solidity version in current project folder truffle 
Javascript :: detect mi browser 
Javascript :: htaccess to deploy react app to cpanel 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =