Skip to content

Release 4: groundwork for the app

Choose a tag to compare

@niklastshiang niklastshiang released this 14 Nov 14:24
· 543 commits to main since this release

Groundwork for the desktop app: everything the GTK application will need from the library, usable from Python without a display.

Upgrade note

Run uv run stickler setup once after updating. Models now count as set up only after their setup has finished, and an existing install does not have the new record of that yet. Until it does, stickler doctor reports "weights missing" for every model with weights except Beat This!, and stickler notate --mode quality stops with "not set up" instead of running. Weights you already have are used again; the step only writes the record.

Added

  • Progress: notate, transcribe_song and setup_adapters report each step as it starts and ends, and whether it came from the cache. stickler notate and stickler setup print the steps.
  • Cancellation: api.CancelToken stops a running analysis or setup. The model or setup process ends within a second, and a cancelled step leaves nothing in the cache. In the terminal, Ctrl+C does the same; press it twice to stop at once.
  • Readiness: api.mode_ready("fast") lists the models of a mode that are not set up. An analysis names them before it starts any model, instead of failing halfway.
  • Bar map: Notation.bars gives, for every bar of the song, its start and end in seconds and the bar of the sheet music it is written as, through repeats, pickups and multi-bar rests.
  • Corrections: api.Corrections fixes half or double tempo, the beats per bar and which beat is the first "one". On an analysed song a correction takes well under a second and runs no model.
  • api.render_hits: the detected hits as a WAV file of clicks, as long as the song, in three pitches (kick, snare and toms, cymbals).

Changed

  • stickler doctor checks the environments and weights the same way as the analysis does. An environment left behind by an interrupted setup, or a half-finished download, no longer counts as ready.
  • stickler setup removes leftover partial downloads from an interrupted setup.
  • The library runs on Python 3.12 to 3.14; the models keep their own Python 3.12 environments.

Fixed

  • Ctrl+C during stickler notate or stickler setup no longer leaves the model running in the background.

Full changelog: v3...v4