Last active
November 11, 2017 02:11
-
-
Save muhibbudins/7766ba9a1f08b975c4bcc1727b84c769 to your computer and use it in GitHub Desktop.
Script for Audio Context Tutorial at my medium account (https://medium.com/@muhibbudins)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const | |
source = document.getElementById('source'), | |
player = document.getElementById('player'), | |
canvas = document.getElementById('visualizer'), | |
name = document.getElementById('song_name'), | |
format = document.getElementById('song_format'), | |
blob = window.URL || window.webkitURL, | |
color = ['#1abc9c','#2ecc71','#3498db','#9b59b6','#34495e','#16a085','#27ae60','#2980b9','#8e44ad']; | |
// Check if blob is exist in this browser | |
if (!blob) { | |
console.warn('Your browser does not support Blob URLs.'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment