2023-11-18 16:50:27 +05:30
|
|
|
## Example usage
|
|
|
|
|
|
|
|
```text
|
2023-11-25 23:33:27 +05:30
|
|
|
$ echo 't&((t>>7)-t)&t>>8' | python ./bytebeat_compiler.py - -p 44100 -v && ./build/render_bytebeat
|
2024-06-16 12:24:46 +05:30
|
|
|
:: C bytebeat generator: compiler unit
|
2023-11-17 00:31:41 +05:30
|
|
|
Compiling
|
2024-06-16 12:24:46 +05:30
|
|
|
cc -Ofast -march=native -mtune=native -Wall -Wextra -Wpedantic -pedantic -Wno-unused-variable -Wno-unused-but-set-variable -Wno-dangling-else -Wno-parentheses -std=c99 ./build/substituted.c ./src/fwrite_le.c -o ./build/render_bytebeat -I./include
|
2023-11-17 00:31:41 +05:30
|
|
|
:: C bytebeat generator runtime unit
|
|
|
|
|
|
|
|
Sample rate: 44100 Hz
|
|
|
|
Channels: 1 (mono)
|
|
|
|
Bit depth: unsigned 8-bit
|
|
|
|
Duration: 30 seconds
|
|
|
|
|
2024-06-16 12:24:46 +05:30
|
|
|
Writing WAVE headers...
|
|
|
|
remaining samples = 0 (100.00% done) (part 21/21)
|
2023-11-17 00:31:41 +05:30
|
|
|
Done!
|
|
|
|
|
|
|
|
$
|
2023-11-18 16:50:27 +05:30
|
|
|
```
|