Skip to content

Instantly share code, notes, and snippets.

View fiWhy's full-sized avatar
💭
Monday starts on saturday

Denys fiWhy

💭
Monday starts on saturday
View GitHub Profile
@fiWhy
fiWhy / tuner.js
Created July 23, 2020 14:09 — forked from eric-wood/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;