Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

Get rid of visuals #4

Open
dy opened this issue Jun 21, 2017 · 0 comments
Open

Get rid of visuals #4

dy opened this issue Jun 21, 2017 · 0 comments

Comments

@dy
Copy link
Member

dy commented Jun 21, 2017

It should just calc spectrum, not draw it.

let spectrum = require('audio-spectrum')
let show = require('regl-spectrum')()

let arr = spectrum(buf, {channel: 1})
//arr here contains magnitudes.

//↓ this should be spectrum renderer
show(arr)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant