bellprint
Work out which church tower you can hear in a recording, from the pitches of its bells.
Status: early research software. On simulated recordings it puts the right tower first about seven times in ten; on real recordings, about one time in three. See Accuracy.
Why the whole ring
Dove's Guide lists about 7,000 rings of bells and, for most bells, the pitch of its nominal: the partial you hear as the bell's note.
The biggest bell, the tenor, is not enough on its own. The 5,976 English rings with a recorded tenor share only 1,553 distinct tenor frequencies, and a typical tenor matches 19 towers to within ±0.5 Hz.
A whole ring is far more distinctive: the number of bells, the intervals between them and their absolute pitch. bellprint matches all of that against Dove's 46,983 per-bell nominals (6,362 rings have every bell measured).
Quick start
pip install bellprint
bellprint locate recording.flac
bellprint locate recording.mp3 --near 51.75,-1.26,20 --start 12 --end 40 --json
| Option | Does |
|---|---|
--near lat,lon[,km] |
Only consider towers in this circle (default radius 30 km) |
--use-geotag |
Use the GPS position stored in the file (MP4/MOV/M4A/3GP, FLAC) as --near; an explicit --near wins |
--start, --end |
Analyse only these seconds of the file; pick the part where the bells ring |
--top N |
Number of candidates to list |
--json |
Full report: spectral lines, candidates, scores, confidence |
--dove DIR |
Use a newer dove.csv and bells.csv instead of the built-in snapshot |
- Reads WAV, FLAC, MP3, AAC/M4A and Ogg Vorbis natively.
- From Python,
bellprint.locate("recording.flac", near="51.75,-1.26,20")returns the same report as a dict. - Prebuilt wheels cover Linux, macOS and Windows. From a checkout, use
cargo run --release -p bp-cli -- locate ....
How it works
-
Find the lines. Average the clip's power spectrum over time (Welch). This keeps the short-lived nominal of every blow, even when the bells ring in only part of the clip. Keep the peaks up to 2.5 kHz that stand out from a moving-median floor; if loud noise leaves too few, fall back to a high percentile over time. Bells pitched above 2.5 kHz are skipped, not counted as missing.
-
Model each bell. Each bell predicts lines at its hum, prime, tierce, quint, nominal, superquint and octave nominal, within tolerances from published measurements (research/acoustics.md). Bells cast from 1896 on, when true-harmonic tuning began, get much tighter hum and prime tolerances.
-
Score every ring. Each Dove ring is scored on how many of its nominals are present and how well its predicted partials explain the lines, compared with chance. A nominal a little further off than Dove lists still earns partial credit. Bands often ring only part of a ring, so these variants are scored too, at a small penalty:
- the back or front bells of a larger ring;
- the ring without its semitone bells or extra treble.
One pitch shift is fitted per clip. Its prior peaks sharply at the offsets that 44.1/48 kHz and 24/25 fps mix-ups produce, since most real clips sit within a few cents of one of them.
-
Rank. List candidate towers with relative probabilities. These are not calibrated: too cautious on clean audio, too confident on real recordings (research/matcher.md). So the top pick also gets a confidence label from its margin over the runner-up:
Confidence Margin (nats) Right on simulated Right on real high ≥ 2 97 % 90 % medium 1–2 77 % 59 % low < 1 38 % 17 % The thresholds were set on the simulation; the real-recording rates are held out (research/matcher_twins.md).
Two experimental options did worse than the default and stay opt-in: --extraction blows keeps only lines
that rise when a bell strikes, and --auto-window analyses only the most bell-like 10 s windows.
Accuracy
| Benchmark | Right tower first | In top 5 |
|---|---|---|
| Simulated: 200 random Dove rings | 72 % | 88 % |
| Real: recordings of 141 named towers | 50 / 141 | 71 / 141 |
Simulated. 8 s of rounds at 10 dB SNR with distractor tones, ±8 c speed error and ±3 c Dove error, 5 % of rings retuned, and hum and prime spread by each bell's tuning era. The simulator shares no code or constants with the matcher's bell model, but it is kinder than reality: no reverb, no automatic gain control, and ringing for the whole clip.
Real. Whole clips as published, without --near (data/corpus). Every hit is far
above chance (about 1 in 7,000 per clip), but most clips still miss. Chimes, clock bells and carillons are
largely absent from Dove and can't match at all.
The viral claim that a few seconds of the tenor identify a tower has not been reproduced, and its original post could not be traced (research/prior_work.md).
Development
- Build, test and benchmark commands: CONTRIBUTING.md.
- Background research and sources: research/.
- The header image is drawn from a real corpus clip by
tools/readme_figure.py.
Responsible use
This tool can place a recording, and so the person who made it, on a map. Use it on your own recordings, on
material published for this purpose, or with the recordist's consent. Don't use it to find, track or expose
people. --use-geotag reads location metadata only from the file you pass, and only when you ask.
Credits and data
- Bell data: Dove's Guide for Church Bell Ringers, © Central Council of Church
Bell Ringers, CC BY-SA 4.0. The files in
data/dove/keep that licence (data/dove/README.md). Not endorsed by the Central Council. - Bell acoustics: Bill Hibbert's published measurements and thesis, among the sources in research/.
- Real-recording corpus: links to recordings on Freesound, archive.org (including Radio Aporee), BBC Sound Effects, SoundCloud and Vimeo, credited per entry in the manifests. No audio is redistributed.
- Structure follows dopplerprint.
Licence
Code: MIT, see LICENSE. Data keeps its own licence (above).
Metadata
Release files for bellprint 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bellprint-0.1.0.tar.gz | 2.8 MB | With provenance | Details for bellprint-0.1.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| bellprint-0.1.0-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details for bellprint-0.1.0-cp311-abi3-win_amd64.whl |
| bellprint-0.1.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | CPython 3.11 | abi3 | Linux glibc 2.17+ x86-64 | Details for bellprint-0.1.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| bellprint-0.1.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | CPython 3.11 | abi3 | Linux glibc 2.17+ ARM64 | Details for bellprint-0.1.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
| bellprint-0.1.0-cp311-abi3-macosx_11_0_arm64.whl | CPython 3.11 | abi3 | macOS 11.0+ ARM64 | Details for bellprint-0.1.0-cp311-abi3-macosx_11_0_arm64.whl |
| bellprint-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl | CPython 3.11 | abi3 | macOS 10.12+ x86-64 | Details for bellprint-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl |
Total release size: 32.4 MB
Release files / bellprint-0.1.0.tar.gz
| Download URL | bellprint-0.1.0.tar.gz |
|---|---|
| Size | 2.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ddf2e7161e1d1a9b2b9d04c53c56272d0c010e5c2ae4914a94dd287713cdf3b6
|
|
BLAKE2b-256 checksum How to use checksums |
66c179d37ea2104036cdbcfb3e89eeac58839fa19b792e5a3183bfc52ebbdb1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / bellprint-0.1.0-cp311-abi3-win_amd64.whl
| Download URL | bellprint-0.1.0-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
51716443db08a0742a265685e1cb39e9c172368d6c47eb1fd50385e8e7869c87
|
|
BLAKE2b-256 checksum How to use checksums |
1cf8c7605117b763b3a96a5e70073603367355c4274f271eb04be124c463b06e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / bellprint-0.1.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | bellprint-0.1.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 8.3 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
198c3519b0598f674f0606da3d1848538bec70cb57b6933cc4f741df80280c59
|
|
BLAKE2b-256 checksum How to use checksums |
8717ee89f9786c56ced917ee17fb8da13ef9ac5f36971994192ad1ea8552ec62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / bellprint-0.1.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | bellprint-0.1.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 7.5 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
c29e6dd556f7ec19995a51bfccb65647f6e9cd1f894b855c95fb17dc51644ff7
|
|
BLAKE2b-256 checksum How to use checksums |
2b2df47ed7d4c34919f7083006b00f67a2584a16b6d777be7f3e3c7aa02a319c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / bellprint-0.1.0-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | bellprint-0.1.0-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 4.6 MB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
bf5acfc4053a6c3d20deef162e6da5b4763f4f4e4f10e82b8c041fbdc72eadb8
|
|
BLAKE2b-256 checksum How to use checksums |
887917d31eff153f4b5b056514a8e50160f6f4a3ce45d1ec34a20c2f1a533562
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / bellprint-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl
| Download URL | bellprint-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 4.6 MB |
| Tags | CPython 3.11 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
05750863eb0bfa35c2fed97b2b73360de7ba1714c64cd69408b6e23377b591d5
|
|
BLAKE2b-256 checksum How to use checksums |
1bd450bedffcd29cc748e6488a787900b949b0e95658218fc0b0bcfb605e3195
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logSecurity for bellprint 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 6 files in this release have been uploaded with provenance metadata.
Attestation for bellprint-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.