Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript make beep

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 :: javascript emit beep 
Javascript :: how to center a canvas in javascript 
Javascript :: npm run start specific port 
Javascript :: select second child in js 
Javascript :: fibonacci series in javascript 
Javascript :: get age by birthday js 
Javascript :: javascript download json 
Javascript :: page redirect after a few seconds 
Javascript :: js get url params 
Javascript :: take data from url parameter and change using htaccess new url 
Javascript :: axios try catch get error status cocxe 
Javascript :: stop settimeout 
Javascript :: how to check if 2 images are touching js 
Javascript :: npm ERR! 503 Service Unavailable: npm@latest 
Javascript :: express body-parser deprecated 
Javascript :: jquery cast to string 
Javascript :: destroy chart js 
Javascript :: get text in select jquery 
Javascript :: how to call create react app 
Javascript :: javascript remove element 
Javascript :: remove bearer from token in node js 
Javascript :: get current scroll height javascript 
Javascript :: console.time js 
Javascript :: serve a file in express 
Javascript :: div outside click event jquery 
Javascript :: get text of selected option js 
Javascript :: made clickable url in js 
Javascript :: TypeError: this.jsonEnabled is not a function 
Javascript :: scss mute warnings 
Javascript :: write json file in node js 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =