Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Monday starts on saturday

Denys fiWhy

💭
Monday starts on saturday
View GitHub Profile
View tuner.js
window.AudioContext = window.AudioContext || window.webkitAudioContext;
var context = new AudioContext();
var analyser = context.createAnalyser();
var source;
var freqData;
var samples = 128;
var initStream = function(stream) {
analyser.fftSize = samples;