#synth #dsp #music #synthesizer

app bytebeat

Bytebeat written in Rust

5 releases (3 breaking)

0.4.0 Dec 18, 2023
0.3.0 Dec 18, 2023
0.2.1 Apr 9, 2023
0.2.0 Apr 9, 2023
0.1.0 Apr 8, 2023

#1181 in Audio

Custom license

20KB
517 lines

bytebeat-rs

WARNING ⚠️ Lower your volume when play the video below❗️

https://user-images.githubusercontent.com/35621141/230710706-76a2a4a8-a4e9-4819-b755-802103b76ba4.mp4

usage

installation:

cargo install bytebeat

then in your terminal:

bytebeat "((t >> 10) & 42) * t"

try different sample rate:

bytebeat "((t >> 10) & 42) * t" --sr 8000

basic idea on bytebeat

you have a t that keeps increamenting from 0, 1, 2, to u32::MAX.

in the source code:

let result = ((t));
t += 1;

where ((t)) will be replaced by the rules you define:

for example ((t >> 10) & 42) * t

the output will be a float: (result % 256) as f32 / 255.0 * 2.0 - 1.0

what kind of tune it will make depends on the rules you define.

contribution

pull request is welcomed!

Dependencies

~8–37MB
~574K SLoC