VR Nightclub - Computercraft Realtime Beat Detection

I've been working on a realtime beat detection system for Computercraft, to host club nights in FTB (with a couple of mods added)

I'm using the web displays mod, with youtube-sync, then on a laptop I'm running custom beat detection software, which acts as a web api for computercraft to pull the beat detection from. It's not perfect due to game lag, and the youtube sync being slightly out of sync, but I'm very happy with the results:

https://www.youtube.com/watch?v=hUbeUy6U4nY&feature=youtu.be

​

It's led to some fun club nights in VR.

Posted May 27, 2020, 3:18 PM UTC

75

nice

3
Yummychickenblue•

Wow I hope to work on a project similar to this using OpenComputers, openfm, icecast, and liquidsoap. Would you mind sharing your beat detection code?

2
andy3471OP•

I'll happily share it, it'll take me some time to write up some guidance though, it's very janked together.

I'm running Ubuntu desktop on a laptop for it, using GBD framework to detect the beats, and then a web server, my application just basically takes the best count and puts it in index.html on the web server, then in computercraft, it just repeatedly checks that URL, and if the number increases, does a beat.

I'll share it when I'm next at my pc, with a bit more info on setting it up.

I was actually trying to find a way of doing with live DJ'd music, I didn't realise you could do live shoutcast radio with opencomputers, so maybe I could do it that way for that, good thinking.

4
Yummychickenblue•

openfm is an OpenComputers plugin that plays ip radio streams in minecraft, so it's not native OC. I believe it supports computercraft as well but I selected OpenComputers for the ftp socket functionality that I plan to use to build an interactive player/queueing system.

2
sjgold•

I think your either a wizard or a mad scientist....

This is kind of epic. I wish you the best of luck

1