chrvadala / music-beat-detector

music-beat-detector is a library that analyzes a music stream and detects any beat. It can be used to control lights or any magic effect by the music wave.
MIT License
252 stars 25 forks source link

Piping to the scheduler without a Speaker instance #3

Closed ghost closed 5 years ago

ghost commented 5 years ago

Is there a way to chain musicBeatDetector.getAnalyzer() and musicBeatScheduler.start() without piping to a Speaker instance? For context: https://github.com/konsumer/tplink-lightbulb/issues/35

chrvadala commented 5 years ago

Yes, of course. You can use a writer stream like this:

fs.createWriteStream('/dev/null')
ghost commented 5 years ago

Perfect, this worked. Thank you!