codingjoe / MusicBeam

MusicBeam is a multi plattform software to use a projector as a rgb laser.
https://www.musicbeam.org/
MIT License
270 stars 50 forks source link

BPM Trigger additionally to the speed trigger #38

Open kroeder opened 8 years ago

kroeder commented 8 years ago

Next Feature Idea: a BPM Button which blocks the speed value I'm pretty sure either minim or another library out there is able to check the current BPM of a song and then triggers the current effect per beat

This could be additionally to the speed trigger

1) Speed is more a blocker: a effect trigger only triggers within a time value calculated by speed + H/S/K/P 2) BPM triggers a effect by beat

I'm not sure how easy this is to implement, though If the BPM Trigger also needs H/S/K/P or just triggers every beat etc.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/36488126-bpm-trigger-additionally-to-the-speed-trigger?utm_campaign=plugin&utm_content=tracker%2F444396&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F444396&utm_medium=issues&utm_source=github).
codingjoe commented 8 years ago

Love the idea. But that would require getting music from a different source. You'd need to analyse the track in advance. I think this is gonna be very difficult.

kragebein commented 8 years ago

Love the idea. But that would require getting music from a different source. You'd need to analyse the track in advance. I think this is gonna be very difficult.

The big parties i'm at in holland uses live analysing. When the beat stops, it usually takes a second or two before the lights decide to stop rocking it to the beat.

Wouldnt it be possible to use a buffer of audio in for, lets say 2 seconds and adjust the beat after those two seconds?

codingjoe commented 8 years ago

Hi @kragebein! Just to understand you right? That is something you are experiencing with processional lighting software?

I think it should be possible to calculate the current BPM on the fly, but I haven't looked into the math behind that yet.

kragebein commented 8 years ago

Correct! Like Defqon and Qlimax etc!

muscarina commented 3 years ago

Another thing many lighting software decks use is manual tap BPM detection, should be easier to implement.