From 1fa0e8e1ceb17242d16339ad13e45c7388b6a862 Mon Sep 17 00:00:00 2001 From: Noah Gardner Date: Fri, 25 Sep 2026 10:44:59 -0400 Subject: [PATCH] docs: hub imports at v0.2.9 and a plain Bend install Install now leads with plain Bend: import 0x05eb91b04a37c34a9abe2324661894f5 (ezaudio v0.2.9, on hub.bend-lang.com) and bend fetches it on the first run. ez is the second option. Every Bend block in the README was checked (or run) with bend 2.0.27 from an empty HOME with only bend on PATH. Co-Authored-By: Claude Opus 5.5 (1M context) --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d2cf897..b6e1f07 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,19 @@ Audio for [Bend 2](https://github.com/bendlang/bend). ## Install -Use with [Bend](https://github.com/bendlang/bend) or install easily with [ez](https://github.com/Emerging-Patterns/ez): +With [Bend](https://github.com/bendlang/bend) alone there is nothing to +install: import ezaudio by its hub name and `bend` fetches it from +[the hub](https://hub.bend-lang.com) into `~/.bend/lib` on the first run. +`0x05eb91b04a37c34a9abe2324661894f5` is ezaudio v0.2.9. + +``` +import 0x05eb91b04a37c34a9abe2324661894f5/main.bend as Au +``` + +Or with [ez](https://github.com/Emerging-Patterns/ez), which records the +package in `ez.toml` (`ez init` makes one): ``` -ez init ez add Emerging-Patterns/ezaudio ``` @@ -24,7 +33,7 @@ the filterbank. `count`, `fill`, `trim`, and `concat` are the raw-frame helpers. Resampling is not in this version. ``` -import ./ezaudio/main.bend as Au +import 0x05eb91b04a37c34a9abe2324661894f5/main.bend as Au def main() -> U32: Au.rate(Au.clip(8000, 1, Au.s16(), [0, 1]))