blob: 767da303ca9bb0aa84aa134d4a512362191031c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Line Audiolizer
Turn lines of code (or text files) into sound, written in Rust.
Prints stdin, playing a sine wave tone for each line. The pitch of the tone depends on the length (or rather, UTF-8 width) of the line.
Idea by [scplusplus](https://github.com/scplusplus).
## Example
Play own source code:
```sh
cargo run < src/main.rs
```
Fancy print while playing, using [batcat](https://github.com/sharkdp/bat):
```sh
cargo run < src/main.rs | batcat --paging never --language rust
```
For available options, see:
```sh
cargo run -- --help
```
|