JSFiddle

  • Sine Wave The Hard Way #4 is the latest revision

    No-Library (pure JS), HTML, CSS, Babel + JSX

    const REAL_TIME_FREQUENCY = 440;
    const ANGULAR_FREQUENCY = REAL_TIME_FREQUENCY * 2 * Math.PI;
    
    let audioContext = new AudioContext();
    let myBuffer = audioContext.createBuffer(1, 88200, 44100 ...
  • Sine Wave The Hard Way #6 is the latest revision

    No-Library (pure JS), HTML, CSS, JavaScript

    const REAL_TIME_FREQUENCY = 440;
    const ANGULAR_FREQUENCY = REAL_TIME_FREQUENCY * 2 * Math.PI;
    
    let audioContext = new AudioContext();
    let myBuffer = audioContext.createBuffer(1, 88200, 44100 ...