modV icon indicating copy to clipboard operation
modV copied to clipboard

Low/Mid/High ranges for BeatDetektor

Open 2xAA opened this issue 1 year ago • 0 comments

BeatDetektor works best when limited to a BPM range. Currently we have it set to detect between 85 and 169 BPM, which doesn't allow detection of faster music. https://github.com/vcync/modV/blob/next/src/application/setup-beat-detektor.js#LL4C41-L4C48

A solution to this would be to spawn three instances of Beat Detektor, low BPM, medium BPM and high BPM, then have an instance selectable through the BPM configuration.

The BeatDetektor instance does nothing when it isn't called, so CPU won't be affected, only a small amount of memory.

2xAA avatar Jun 11 '23 10:06 2xAA