mjhydri / BeatNet

BeatNet is state-of-the-art (Real-Time) and Offline joint music beat, downbeat, tempo, and meter tracking system using CRNN and particle filtering. (ISMIR 2021's paper implementation).
Creative Commons Attribution 4.0 International
334 stars 55 forks source link

How to do live processing of beats detected #45

Open trwa opened 2 weeks ago

trwa commented 2 weeks ago

In the streaming example of the README:

from BeatNet.BeatNet import BeatNet

estimator = BeatNet(1, mode='stream', inference_model='PF', plot=[], thread=False)

Output = estimator.process()

It is unclear to me how to process the beats as soon as they are detected, without waiting for .process() to return.

For example, is it currently possible to use some kind of callback? If so, how?