Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Credits

claudius is built on other people’s work: the libraries it is made of, the code it ports, the models it listens with, the fonts it draws with, the sounds it plays and the research its engine follows. This page names them, each under its licence. Every library is on Libraries, which the book writes from Cargo.lock.

Models

claudius runs these on the computer itself, on ONNX Runtime or, for Cactus’s models, needle-infer. Each is downloaded from Hugging Face the first time something needs it, and none of them writes music: they listen, tag and read (design 0011, 0014, 0015).

ModelWhat claudius does with itFromLicence
CLAP, larger generalthe ears: how much a sound, a phrase or a song is like words (“a person singing”), and finding sounds by meaningLAION (Wu et al., ICASSP 2023); the ONNX export is Xenova’sApache-2.0
AST, fine-tuned on AudioSetthe ears: which of AudioSet’s sounds a recording holdsMIT (Gong, Chung & Glass, Interspeech 2021); the ONNX export is Xenova’sBSD-3-Clause
CED-Tinythe ears: whether a voice sings in a recording’s separated vocals or an instrument the separation left thereDinkel et al. (CED, ICASSP 2024), as its authors export it to ONNXApache-2.0
Basic Pitchthe notes played or sung in a take or a recordingSpotify (Bittner et al., ICASSP 2022)Apache-2.0
Spleeter, four stemsa recording taken apart into its voice, drums, bass and the restDeezer (Hennequin et al., JOSS 2020), MIT; the ONNX export is Best-Practice’s, Apache-2.0MIT, Apache-2.0
Audiobox Aestheticsthe critic: how much listeners would enjoy a song, and how well it is madeMeta (Tjandra et al., 2025); the ONNX export is Microck’sCC BY 4.0
potion-base-8Mfinding a command, a sound or a genre by the meaning of the words for itMinish Lab (Model2Vec)MIT
Needlereading a request in plain words, in the paletteCactus ComputeApache-2.0
Whistlehearing a request said aloudCactus ComputeApache-2.0

Code it ports

CrateA port ofLicence
earshotearshot, the Python library of “ears” for code: its models run on ONNX Runtime, its signal processing (mel front ends, loudness, onsets, the beat grid) written again in RustMIT
claudius (dsp::stretch)Signalsmith Stretch 1.3.1 and the STFT of its linear library, by Geraint Luff / Signalsmith Audio: the time-stretch and pitch-shift every recording plays through, in the app and the browserMIT
whistleCactus’s JAX reference for Whistle (cactus-compute/cactus at bafcf73: whistle.py, architecture.py, export.py, quantize.py) and the engine’s behaviour Cactus documentsApache-2.0

claudius’s patterns follow TidalCycles’ and Strudel’s mini-notation and spread Euclidean rhythms with Bjorklund’s algorithm as they run it (design 0004): the notation is theirs, the implementation claudius’s own, with none of their code.

Encoders, decoders and the programs it may call

MP3, FLAC and Opus are written by rusty_mp3, flacenc and opus-pure, and Ogg Vorbis by libvorbis with aoTuV’s and Lancer’s tuning (aotuv_lancer_vorbis_sys, BSD-3-Clause), built in (Exporting). symphonia reads the recordings claudius opens, and opus-pure decodes the Opus among them. AAC and Apple Lossless come from the system’s encoder, Core Audio’s afconvert on macOS, and ffmpeg elsewhere and for a file symphonia cannot read, when it is installed: claudius runs them as programs and ships neither.

Fonts and icons

FontWhereLicence
Interthe studio’s text, and Infinite Radio’s pageSIL Open Font License 1.1
Lucidethe studio’s icons, and Infinite Radio’s page’sISC
the fonts egui ships (epaint_default_fonts: Hack, Noto Emoji, Ubuntu, and emoji-icon-font)the studio, for what Inter does not covereach its own, as that crate lists them

Words

The command palette never takes an English word for a slip of another. The English words it knows (crates/claudius-intent/data/english.txt) are SCOWL’s list of size 35, in American and British spelling, from Kevin Atkinson’s English Speller Database, whose words come mostly from Alan Beale’s 12dicts and ENABLE2K, both in the public domain. Its notice:

Copyright 2000-2026 by Kevin Atkinson

Permission to use, copy, modify, distribute, and sell any part of the English Speller Database (ESDB, previously known as SCOWLv2), or word lists created from it, is hereby granted without fee, provided that the above copyright notice appears in all copies and that both the above copyright notice and this notice appear in supporting documentation. Kevin Atkinson makes no representations about the suitability of this database for any purpose. It is provided “as is” without express or implied warranty.

Sounds

The sample packs are public domain, CC0 and CC BY recordings, each credited as its licence asks (their credits, design 0007). A song that samples a recording from Freesound, Wikimedia Commons, Openverse, ccMixter or Jamendo keeps that recording’s credit with what plays it (credits).

Research

What the engine draws on, by the part of it that does. A paper new to the engine goes here in the pull request that uses it.

Listening to a recording

  • Ellis (2007), “Beat tracking by dynamic programming”, Journal of New Music Research 36(1): doi:10.1080/09298210701653344. The beats.
  • Krumhansl & Kessler (1982), “Tracing the dynamic changes in perceived tonal organization in a spatial representation of musical keys”, Psychological Review 89(4): doi:10.1037/0033-295X.89.4.334. The key.
  • de Cheveigné & Kawahara (2002), “YIN, a fundamental frequency estimator for speech and music”, JASA 111(4): doi:10.1121/1.1458024. The pitch of a voice.
  • Mauch et al. (2015), “Computer-aided melody note transcription using the Tony software: accuracy and efficiency”, TENOR 2015: paper. The notes a voice sings.
  • Moulines & Charpentier (1990), “Pitch-synchronous waveform processing techniques for text-to-speech synthesis using diphones”, Speech Communication 9(5-6): doi:10.1016/0167-6393(90)90021-Z. TD-PSOLA, which moves a voice to the song’s key with its formants kept.
  • ITU-R BS.1770, “Algorithms to measure audio programme loudness and true-peak audio level”: recommendation. Loudness.
  • Foote (2000), “Automatic audio segmentation using a measure of audio novelty”, ICME 2000: doi:10.1109/ICME.2000.869637. Where a section starts: the novelty of how alike the bars either side are.
  • Paulus, Müller & Klapuri (2010), “Audio-based music structure analysis”, ISMIR 2010: paper. Sections by novelty, by what repeats, and by what holds alike.
  • Goto (2006), “A chorus section detection method for musical audio signals and its application to a music listening station”, IEEE Transactions on Audio, Speech, and Language Processing 14(5): doi:10.1109/TSA.2005.863204. A chorus is what comes back.
  • Smith, Burgoyne, Fujinaga, De Roure & Downie (2011), “Design and creation of a large-scale database of structural annotations”, ISMIR 2011, and its annotations, SALAMI (CC0), which measure where the analysis hears sections start and what they are.

Sampling a recording

  • Bohak & Marolt (2012), ISMIR 2012: paper. A singer’s rests part the phrases.
  • Nakano, Ogata, Goto & Hiraga (2008), “Analysis and automatic detection of breath sounds in unaccompanied singing voice”, ICMPC 2008: paper. And so do their breaths.
  • Jehan (2005), “Creating music by listening”, PhD thesis, MIT: thesis. A cut goes back to the quiet before an onset.
  • Kool, van Hoof & Welling (2019), “Stochastic beams and where to find them: the Gumbel-top-k trick for sampling sequences without replacement”, ICML 2019: arXiv:1903.06059. Another take of the pieces, and of a flip, drawn among the good ones.
  • Stoller, Durand & Ewert (2019), “End-to-end lyrics alignment for polyphonic music using an audio-to-character recognition model”, ICASSP 2019: arXiv:1902.06797. JamendoLyrics, the songs whose every word is timed, which measure how often a cut falls inside one, and, by their stanzas, where sung sections start and which come back.

Rhythm and feel

  • Toussaint (2005), “The Euclidean algorithm generates traditional musical rhythms”, Bridges 2005: paper. Euclidean rhythms.
  • Longuet-Higgins & Lee (1984), “The rhythmic interpretation of monophonic music”, Music Perception 1(4): doi:10.2307/40285271. Syncopation.
  • Hennig et al. (2011), “The nature and perception of fluctuations in human musical rhythms”, PLOS ONE 6(10): doi:10.1371/journal.pone.0026457. The drift a player’s timing wanders with.

Effects and the mix

  • Bristow-Johnson, “Cookbook formulae for audio equalizer biquad filter coefficients”, published by the W3C as the Audio EQ Cookbook. An equalizer’s and a filter’s bands, as the renderer runs them and the signal flow draws their curves.

The critic

The critic’s page says what each of them does in it.