dweb-audio-view
v0.5.1
Published
A simple audio visualizer using anime.js and rollup.js
Downloads
1
Readme
这是库的简介
巴拉巴拉
let mycanvas = new MyCanvas({
canvasDom: document.getElementById('canvas'),
width:600,
height:800
})
mycanvas.update()
function selectMusic(event){
console.log('selectMusic')
let file = event.target.files[0]
console.log(file.name)
let audioDom = document.getElementById('audio')
audioDom.src = URL.createObjectURL(file)
mycanvas.conectFile(audioDom)
}
function startAnime(){
mycanvas.startAnime()
}