Crates.io | bytebeat |
lib.rs | bytebeat |
version | 0.4.0 |
source | src |
created_at | 2023-04-08 07:55:59.345178 |
updated_at | 2023-12-18 19:01:28.539919 |
description | Bytebeat written in Rust. |
homepage | |
repository | https://github.com/chaosprint/bytebeat-rs.git |
max_upload_size | |
id | 833488 |
size | 57,202 |
WARNING ⚠️ Lower your volume when play the video below❗️
installation:
cargo install bytebeat
then in your terminal:
bytebeat "((t >> 10) & 42) * t"
try different sample rate:
bytebeat "((t >> 10) & 42) * t" --sr 8000
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.
pull request is welcomed!