Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript emit 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 :: how to check data type of javascript variable 
Javascript :: convert string to array in vue js 
Javascript :: protractor move mouse and click 
Javascript :: replace globally in javascript 
Javascript :: javascript select all table rows 
Javascript :: javascript truncate string 
Javascript :: firebase authentication logout 
Javascript :: regex find img tag 
Javascript :: ggg 
Javascript :: javascript add string to middle of string 
Javascript :: js promise all return json array 
Javascript :: javascript one time event listener 
Javascript :: js replace non a-z 
Javascript :: run javascript from uri 
Javascript :: enzyme check state 
Javascript :: jquery redirect to url 
Javascript :: check if class is active jquery 
Javascript :: random color code javascript 
Javascript :: ignore logs on android expo 
Javascript :: moment get time am pm 
Javascript :: new request javascript 
Javascript :: set dropdown value using jquery 
Javascript :: javascript detect scroll to bottom of page 
Javascript :: unpack array into variables javascript 
Javascript :: javascript console input 
Javascript :: javascript date today dd mm yyyy 
Javascript :: js test letter lowercase 
Javascript :: javascript how to push to an array while blindfolded 
Javascript :: queryselector with ul and not selecting particular li with id 
Javascript :: scroll to class jquery 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =