Skip to content

Instantly share code, notes, and snippets.

@gabochi
Created October 16, 2024 02:39
Show Gist options
  • Save gabochi/2f05c850ca246afeaf34662c6e9d857c to your computer and use it in GitHub Desktop.
Save gabochi/2f05c850ca246afeaf34662c6e9d857c to your computer and use it in GitHub Desktop.

Escribir archivo bytebeat en bash

for t in {0..8192}; do printf "\x$(printf %x $(( t<<(t>>10&3) &255)))"; done > bytebeat.raw

8192 es simplemente el largo del archivo en samples, bash es lento y por eso lo hice corto (1 segundo)

Ejecutarlo

cat bytebeat.raw | aplay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment