Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand All @@ -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]))
Expand Down
Loading