Skip to content

earshot 1.0.0 - #51

Merged
Leonxlnx merged 137 commits into
mainfrom
v1
Nov 20, 2026
Merged

Leonxlnx merged 137 commits into
mainfrom
v1

Conversation

@Leonxlnx

Copy link
Copy Markdown
Owner

earshot 1.0.0: the tool now makes sounds as well as listening to them.

  • earshot make "WORDS" answers from a catalogue of 922 designs in 384 families and renders a new take; 309 designs are learned from 692 recordings in the public domain and kept as numbers, not audio.
  • When the catalogue lacks the thing, the answer says so, and earshot build makes it from recorded parts named in words, heard and tuned by earshot's listening model.
  • The base install is lighter: the listening stack moved to the extra listen.
  • The full list is in CHANGELOG.md under 1.0.0; what earshot cannot do is in docs/LIMITS.md.

Checked

  • Windows with the listen extra: 4059 fast and 1672 slow tests passed, none failed (the full run was on 19 November; later commits ran the tests they touch).
  • Linux without the listen extra: the workflow "Fast tests (no models)" passed on a4a6be4 (3943 passed, 1709 skipped). The one commit after it only dates the changelog.
  • A clean install from GitHub: base, with the listen extra, and the MCP server over a stdio connection.

Not checked: macOS.

🤖 Generated with Claude Code

Bortlesboat and others added 30 commits November 15, 2026 00:25
…ark (#24)

Windows PowerShell 5.1 writes a UTF-8 byte order mark with Out-File -Encoding utf8 and Set-Content -Encoding UTF8 (as Notepad can), and UTF-16 with >. json.load on a UTF-8 text file refuses the first ("Unexpected UTF-8 BOM") and cannot decode the second, so timeline --cues, kit render / check and forge --render --params failed on a file written that way.

report.read_json parses the file's bytes, which json.loads decodes as UTF-8, UTF-8 with a byte order mark or UTF-16. A kit file that is not JSON, or not text, is still one KitError.
…talogue and its themes

The frame of v1's sound generation: a design is a function over shared controls (pitch, dur, a voice or material,
eight axes), registered with what it sounds like and which jobs it plays; a theme moves a whole set into one voice,
key and room. No designs yet.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
earshot make reads a request (job or sound words, feelings as axis offsets, material, voice, length, pitch, key),
ranks the catalogue, renders, audits and writes; make_set renders a themed set with a manifest; earshot sounds lists
the catalogue. No designs yet.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ontext, hints and priors

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… wavetable; 24 generators)

Folded energy of a 3 kHz pulse about 90 dB down; every generator at one loudness; tonal ones in tune.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ws, Hertz contact, doublets, resonators)

22 instruments: mallets, tines, bells, bowls, glass, coin. Partial ratios within 5 % and decay times within 25 % of
their literature targets over 66 notes; a harder strike is brighter; decay shortens with pitch.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… polarisations, felt hammer, body, pickup)

15 instruments. Inharmonicity within 10 % of target on 13 of 15 notes; a grand's prompt sound and aftersound; every
instrument beats the cheap-synth alternatives in earshot's ears; the two pianos are still heard as an electric piano.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…oice, chip sounds; a loudness cap by kind

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… their instrument; ticks that read as objects

Heard by earshot's ears: a metal bar damped after 70 ms, a glass damped early and every small metal plate read as an
electronic blip; with a floor on note length, a glass left to ring and a coin for the metal tick they read as what
they are (tap on a glockenspiel z 2.1 -> 3.3, share against the cheap-synth alternatives 0.04 -> 0.94).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… brand figures (logos, openings, endings)

Heard by earshot's ears with their default voices: 37 of 38 at z >= 2 (27 strong), all 38 ahead of the cheap-synth
alternatives.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…short voices

A floor of room tone and microphone noise 68 dB under the peak lies under every sound placed in a room. With it,
earshot's ears hear 29 of 31 notes and figures as their own description at z >= 3 (median 4.15) and the
real-or-synthesized score of acoustic notes rises (grand piano 0.57 -> 0.85, harp 0.17 -> 0.85, glockenspiel
0.49 -> 0.64).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…er filter, FM operators, chorus, echo; 28 patches)

Aliasing under -80 dB on sweeps and sync; no clicks at note on or off; pads 0.54-0.67 wide with a mono sum that loses
at most 1.1 dB; 27 of 29 patch renders heard as their own description at z >= 3.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…lm) and audio sprites with a map

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…the voice a figure really played is reported

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… to chime; bank priors

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…tream, waves, forest, night ...), seamless loops

Thousands of sized events per second with Poisson or clustered arrivals, band noise with realistic modulation and
cross-band correlation; loops are rendered circularly (level step at the seam at most 0.4 dB).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…est, night ...); --no-loop renders one once

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Laws of the instrument class measured on single notes of freely usable recordings (University of Iowa MIS piano,
VSCO-2 CE upright, glockenspiel, marimba, xylophone; the recordings stay outside the repository): partial levels,
early decay by partial, the soundboard knock, rise time. In earshot's ears the pianos now read as pianos: felt
piano z 2.45 -> 3.7-4.4, grand piano 2.75 -> 3.8-4.4, real-or-synthesized 0.82-0.98, and they win the forced
choice against an electric piano on 6 of 8 notes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…s, swings, hits, explosions, shots, doors, breaks, splashes, magic)

47 designs, layered from struck bodies, air, noise and event clouds; 87 tests.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…clocks, switches, keys, bells ...)

36 designs built from bounces, spin-down, stick-slip, cavity pops and bubbles; 89 tests. In earshot's ears 26 are
heard as their own description at z >= 3; a tearing paper, a struck match and peeling tape are not there yet.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…eport, a creak from irregular slips

In earshot's ears: step on grass z 0.45 -> 2.40, snow 1.20 -> 2.88, metal 1.77 -> 2.37, teleport in 1.54 -> 2.34,
all now ahead of the cheap-synth alternatives; an opening door, a soft landing and a slap are still weak.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… and hard filters; a larger lexicon

On 440 requests written without sight of the catalogue the first pick is right for 92 % (51 % before), the top three
for 95 %. On 220 further requests the changes had never met: 72 % and 78 %. Single-note figures play a glockenspiel.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Leonxlnx and others added 22 commits November 18, 2026 23:08
…efore a thing, a number used as the count, families of one sense, a timer that rings

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… key for the tick, a page for the slide, a broom for the soft whoosh, a dropped bag under the title and the logo, a breath of air for the riser

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…aps, snow and concrete steps, a wall switch, a plate breaking, a bite, clinking glasses, a camera, a punch, a whip

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…n mower, a tractor, a kettle, a coffee machine, a skateboard, hail on a roof, a shower, a workshop

Sixty short sounds and nine beds from public-domain recordings (BigSoundBank, CC0 uploads on Freesound), each
credited in the stores' CREDITS.md. The catalogue has 922 designs in 384 families, 309 learned from 692
recordings; the atlas covers all of them. No existing design or member changed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ireball spell, an energy shield going up, a plasma shot, a machine gun, a robot arm, a wind-up toy

Forty-one recipes are new, all built from recorded parts, for things no recording can give. Seventeen are gone
because the catalogue now has a recording of the thing itself, three because they stayed far from their thing.
Seven sketches were lifted over the rule (creaky ship, slot machine, desk fan, giant footsteps, champagne).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…wn thing doing a known thing, names of two words, German with endings; the film's plain requests lead to the film set; the texts count 922 designs and 95 recipes

A word ending in -ey, -way or -ory is a thing. A known thing doing an unknown thing gets no 'makes no' line. A
thing the cookbook only sketches gets a part of its sketch as the nearest sound. No instrument note is offered as
a starting point for a thing of the world. About 150 more German words, inflected adjectives and participles.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…is no hail on a car, darting is no dart, a popup window is no window; a foghorn, a refrigerator hum and mice squeaking find their recordings

A recorded thing steps back when a request reached it only through its member's name, through a comparison
('like a giant ship horn'), through what another thing does ('air blowing') or as the thing a product's job is
done to. Things recorded since are off the lists of what earshot does not make.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… tail where its recording had them: 110 recordings are held before the hit, 36 in the tail

Two repairs of the rebuild, each with its switch (learned.LEAD, learned.TAIL) and carried only by the members
on which the measure moved toward the recording and nothing else got worse. The interface set and the film set
play the same samples as before; eighteen recipes and six interface designs differ by less than -33 dB.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ond take of each recording

Chosen on one take, it moved some tails away from their recording on the next and changed lengths. The repair
before the strike holds on both and stays on.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…times, a pitch and a level drawn over time, a thing going by, a pulsing, a take drawn longer

New in the form: scatter (one clap becomes applause, one fly a swarm), level, bend, a moving pan, pass (Doppler,
nearer and brighter, across), spin (rotor, purring), stretch (0.5 to 2, where it stays clean), twelve layers, a
cookbook recipe as a layer. Four new recipes and the tornado answer on their own (99 recipes, 59 answer). The
changelog also says that the repair of the hiss after a sound is off.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… rendered, heard and tuned, and the answer says what is still off and which field to change

draft writes one to three recipes from recorded parts, hear measures and (with the listening extra) says what
the sound is heard as and how well it fits the words beside the catalogue's nearest design, tune moves the
numbers, build does all three and writes the sound and its recipe. CLI, Python and an MCP tool; make names it
where it has to say that it does not make a thing.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…hecks the verdict: 'hundreds of hoofbeats, for 6 s, getting louder' becomes a scattered layer of a real recording

Each --part phrase is grounded in a recorded design and its other words become the layer's fields (how many,
when, how long, passing, louder, lower, far, reversed, pulsing); the answer says which design each part became
and names a part the catalogue lacks. The automatic draft scatters collective things and always holds the plain
design make would hand over. The verdict needs a second listening model that the tuner never sees; advice is
tried before it is printed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…s the trotting horse, a low rumble the thunder, a train whistle the train

A part's thing is looked up in the designs' own words as well as by the reader; a design that names the thing
comes before one reached by a loose word, both words of a two-word thing before one, a recording before a
synthesized design (which the answer then names as such). Words that only describe never choose a design.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…built in code or an honest no, and build what is missing from parts named in words

Counts are today's (922 designs, 99 recipes of which 59 answer, 20 MCP tools, the film set as the code holds
it), every quoted command prints what the page shows, the limits say what the build measurements found, and the
changelog of 1.0 is one grouped entry.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…sts pass, the five request sets as their lists stand and with three new designs accepted

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…g overhead' are read as going by

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…e the runner context exists

The workflow failed before its first job on every push: runner.temp is not available in a job's env (the fix
proposed in #40). The fast tests now also run on pushes to v1, with 30 minutes, and numba is in the reduced
environment as it is in the base install.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… not installed

Five test modules import parts of earshot that need torch; without it they could not even be collected, so the
suite stopped before its first test in the reduced environment.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ithout it

On Linux without torch the fast tier ran for the first time: 3938 passed, and these 24 failed only because the
part of earshot they exercise is not in the reduced environment.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ng models on a base install, one line before the listening models download, and the MCP answer names the build tool

The texts say a few seconds for a sound, 1.1 GB to download and 2.2 GB on disk for the listening models, and
that a build of applause comes back as a sketch. The install hint is one line everywhere.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T21:33:18.544217Z 6e5c33c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@Leonxlnx
Leonxlnx merged commit 7a7f7c5 into main Nov 20, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6e5c33c818

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread earshot/make.py
Comment on lines +766 to +768
if listen and heard is None:
heard = _heard(paths[0] if paths[0].lower().endswith(('.wav', '.flac')) else _tmp_wav(pick['id'], seed, req),
([want] if want else []) + list(registry.get(pick['id']).says))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Listen to the rendered take rather than regenerating a single event

When listen=True and the output is OGG, MP3, M4A or WebM, this branch regenerates audio through _tmp_wav, which calls take without the original perform or lufs arguments. For example, a request for footsteps with events=8 writes a performance but evaluates a single footstep, so the returned heard verdict does not describe the delivered sound. Retain the first rendered buffer and write that buffer to a temporary WAV for listening instead.

Useful? React with 👍 / 👎.

Comment thread earshot/recipe.py
Comment on lines +932 to +933
at = [(dsp.n_of(t) if t > 0 else 0) - a0 for _, t, _ in p]
tr = np.zeros((max(a + len(y) for a, (y, _, _) in zip(at, p)), 2))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Bound the event timeline before allocating the layer buffer

A recipe with valid fields events={"count":32,"gap":1,"faster":2} places its last event about 2.15 billion seconds into the timeline, making this allocation request roughly 1.65 PB. Even a recipe-level dur=3 does not protect the process because _mix applies that cutoff only after allocating and mixing the complete tracks. Check the cumulative event span before rendering, or restrict allocation and placement to the requested output window, so accepted recipes cannot exhaust memory or terminate the MCP server.

Useful? React with 👍 / 👎.

Comment thread earshot/build.py
Comment on lines +1452 to +1454
import soundfile as sf
y, _ = sf.read(recipe, always_2d=True)
y = np.asarray(y, np.float64)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Resample existing sound files before auditing and hearing them

When hear receives an existing audio file whose sample rate is not 48 kHz, this branch discards its rate and passes the native samples to analysis that assumes 48 kHz throughout (measures, the registry audit and the listening models). A 24 kHz stereo WAV consequently reports half its actual duration and is evaluated at twice its actual pitch, corrupting both measurements and semantic judgments. Load through the shared audio loader or resample the samples to 48 kHz before analysis.

Useful? React with 👍 / 👎.

Leonxlnx added a commit that referenced this pull request Nov 22, 2026
…, not a new single event

Found by the Codex review of #51.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Leonxlnx added a commit that referenced this pull request Nov 22, 2026
…uffer is allocated

Found by the Codex review of #51: count 32, gap 1, faster 2 asked for about 1.6 PB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Leonxlnx added a commit that referenced this pull request Nov 22, 2026
Found by the Codex review of #51: a 24 kHz file was measured half as long and twice as high.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Leonxlnx Leonxlnx mentioned this pull request Nov 22, 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.

4 participants