Skip to content

Add beat_callback parameter for streaming mode#50

Open
luisscholl wants to merge 3 commits intomjhydri:mainfrom
luisscholl:main
Open

Add beat_callback parameter for streaming mode#50
luisscholl wants to merge 3 commits intomjhydri:mainfrom
luisscholl:main

Conversation

@luisscholl
Copy link
Copy Markdown

Adds a callback parameter for the streaming mode. This allows a user of the library a simple hook for e. g. driving simple real-time audiovisualizers.

The default value of the callback keeps the previous behaviour of printing *beat! and beat!.

Hashim-K added a commit to Hashim-K/beatnet that referenced this pull request Apr 3, 2026
- Add onnx/exportModel.py and testModel.py from pasquale90/BeatNet fork
  for torch.onnx.export of BDA model to ONNX format
- Add pre-exported beatnet_bda.onnx model weights
- Add BeatNetDataset (torch Dataset subclass) from nikhilsos/BeatNet fork
  for training data loading with log-spectrogram features
- Add beat_callback parameter to BeatNet and particle_filter_cascade
  for programmatic beat/downbeat event handling (from PR mjhydri#50)
- Remove stale numba==0.54.1 pin (managed by conda)
- Remove numba from build-requires in pyproject.toml
- Set python_requires>=3.10, numpy<2.0
- Bump version to 1.2.0
- Fix dataloader imports to use package-relative paths

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Hashim-K added a commit to Hashim-K/beatnet that referenced this pull request Apr 3, 2026
- Add onnx/exportModel.py and testModel.py from pasquale90/BeatNet fork
  for torch.onnx.export of BDA model to ONNX format
- Add pre-exported beatnet_bda.onnx model weights
- Add BeatNetDataset (torch Dataset subclass) from nikhilsos/BeatNet fork
  for training data loading with log-spectrogram features
- Add beat_callback parameter to BeatNet and particle_filter_cascade
  for programmatic beat/downbeat event handling (from PR mjhydri#50)
- Remove stale numba==0.54.1 pin (managed by conda)
- Remove numba from build-requires in pyproject.toml
- Set python_requires>=3.10, numpy<2.0
- Bump version to 1.2.0
- Fix dataloader imports to use package-relative paths
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant