3 unstable releases
0.2.1 | Apr 9, 2023 |
---|---|
0.2.0 | Apr 9, 2023 |
0.1.0 | Apr 8, 2023 |
#132 in Audio
7KB
123 lines
bytebeat-rs
WARNING ⚠️ Lower your volume when play the video below❗️
usage
installation:
cargo install bytebeat
then in your terminal:
bytebeat "(t>>7)*(t>>9)|t>>6"
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>>7)*(t>>9)|t>>6
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
~0.1–9.5MB
~86K SLoC