https://github.com/stellartux/bytebeat
just some bytebeat bleeps and bloops
https://github.com/stellartux/bytebeat
bytebeat
Last synced: about 2 months ago
JSON representation
just some bytebeat bleeps and bloops
- Host: GitHub
- URL: https://github.com/stellartux/bytebeat
- Owner: stellartux
- Created: 2022-11-22T21:33:17.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-16T05:45:08.000Z (about 3 years ago)
- Last Synced: 2025-02-28T08:15:44.199Z (over 1 year ago)
- Topics: bytebeat
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Bytebeat
Monorepo for various bytebeat experiments. To play a song with `aplay`,
run `make $(SONGNAME)`. To play a song with another playback method, compile the
song by running `make o/tiny/$(SONGNAME).com`, or
`make MODE=$(MODE) o/$(MODE)/$(SONGNAME).com`.
## Playback
On Linux with ALSA, piping the audio to `aplay` should just work. On Windows and
Mac, it's possible to play raw audio by piping to VLC.
## Song Info
### `ones-and-zeroes`
Seeded pseudo-random arpeggiation, pass in seed phrases or play with the
default seed.
```sh
ones-and-zeroes.com | aplay
ones-and-zeroes.com | vlc --demux=rawaud --rawaud-channels=1 --rawaud-samplerate=8000
ones-and-zeroes.com 'Pass in seed phrases' 'Each phrase is played for 30 seconds' | aplay
```
### `headachegoldfish`
A C and JavaScript polyglot bytebeat. Play by compiling in C, or running with
Node, Deno or QuickJS.
```sh
headachegoldfish.com | aplay --rate=14080
headachegoldfish.com | vlc --demux=rawaud --rawaud-channels=1 --rawaud-samplerate=14080
node src/headachegoldfish.c | aplay -r 14080
deno run src/headachegoldfish.c | aplay -r 14080
qjs --std src/headachegoldfish.c | aplay -r 14080
```