JSFiddle - React, Tailwind, and code Playground

by Ehsan Ziya

JavaScript

$(document).ready(function(){
    var context = new webkitAudioContext();
    var mastergain = context.createGain();
    mastergain.gain.value = 1;
    mastergain.connect(context.destination);
    
    
    function osc(){
    this.oscillator = context.createOscillator();
    this.gain = context.createGain();
    this.oscillator.noteOn(0);
    this.oscillator.connect(this.gain);
    this.gain.connect(mastergain);
    
    }
    
    
    //var osctest = new osc();




});