Skip to content

Release/0.5.0 - #83

Merged
laurenceyoon merged 19 commits into
mainfrom
release/0.5.0
Nov 15, 2026
Merged

laurenceyoon merged 19 commits into
mainfrom
release/0.5.0

Conversation

@laurenceyoon

Copy link
Copy Markdown
Collaborator

A new MIDI score follower, Windows wheels, and faster SPARC evaluation. Compatible with 0.4, except that smoothness values change (see below).

Added

  • Bloch and Dannenberg's dynamic-programming follower for MIDI (method="dannenberg").
  • Windows wheels and a source distribution on PyPI.

Changed

  • SPARC resamples the position path at 3 kHz (SPARC_SAMPLE_RATE) instead of 50 Hz, so smoothness values differ from 0.4.0; pass fs=50 to compute_sparc to reproduce them.
  • SPARC windows are computed without a full FFT per window: a 5-minute piece now takes seconds instead of about a minute and a half.
  • arzt_multi_fold builds only the repeat unfoldings it uses, so scores with many repeats no longer stall. The hypotheses and their order are unchanged.

What's Changed

Full Changelog: v0.4.0...v0.5.0

darth-alexus and others added 19 commits October 28, 2026 21:01
- Close temp files before writing to them; Windows can't reopen a
  NamedTemporaryFile that is still open.
- Don't assume audio device names are unique: Windows lists each device
  once per host API.
- Write TSVs with newline="" so csv doesn't emit \r\r\n on Windows.
- Run the unit tests on windows-latest too, with FluidSynth from Chocolatey.
- README: the conda system-deps step fails on Windows (no fluidsynth or
  gcc=12.1.0 for win-64); document the build tools and FluidSynth ZIP
  setup instead, and fix the FluidSynth path pyfluidsynth looks in.
The TISMIR paper reports SPARC at 3 kHz, while compute_sparc sampled the
held position path at 50 Hz, so the benchmark's smoothness values did not
match the paper's. At 3 kHz every audio frame interval (25, 30, 50,
62.5 Hz) spans a whole number of samples and closely spaced MIDI updates
stay apart. The rate is SPARC_SAMPLE_RATE, now compute_sparc's default.

A full FFT per window is about 140 times slower at that rate. A held
path's speed is zero except where a report changes it, and SPARC reads
only the bins up to fc, so windowed_spectral_arc_lengths keeps each
window's spectrum as a running sum of its nonzero samples at those bins
while the windows slide forward, correcting the one-sided gradient at
each window's edges. Where that is not cheaper (low rates), it slices
and transforms each window as before. The values are the same either
way: on random paths at 50, 200 and 3000 Hz every window keeps its
status and agrees to 4e-12. A 5-minute piece takes about 7 s at 3 kHz
(90 s with a full FFT) and 0.55 s at 50 Hz.

smoothness values change; fs=50 reproduces the 0.4.0 ones.
On Ubuntu runners the apt step usually takes about 25 s, but 14 of the last
54 Ubuntu jobs took over a minute and several stalled for 20-45 minutes
until cancelled: a slow package mirror, waited on without a limit.

Retry dropped downloads, fail the system-package steps after 10 minutes
and the job after 30, so a stalled install becomes a quick re-run. Install
less on Ubuntu: no recommended packages, which skips qsynth, a Qt GUI for
FluidSynth (libfluidsynth3 still brings a soundfont, though matchmaker
synthesizes with partitura's bundled one), and no python3-pyaudio (pip
builds PyAudio from portaudio19-dev for the setup-python interpreter the
tests run in).
…ding

Bound Multi-Fold repeat enumeration without changing candidate order
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@laurenceyoon
laurenceyoon merged commit 7775d36 into main Nov 15, 2026
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.

3 participants