Skip to content

Instantly share code, notes, and snippets.

@r4dian
Created March 15, 2022 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r4dian/0c42ab7bb150515063674a3a67afa625 to your computer and use it in GitHub Desktop.
Save r4dian/0c42ab7bb150515063674a3a67afa625 to your computer and use it in GitHub Desktop.
Generate a test tone, where the comment in the .wav data is the command used to create it .... [bash / zsh]
sox -V -r 48000 -n -b 16 -c 2 --comment "$(tail -1 $HISTFILE | sed 's/.\{15\}//')" tone.wav synth 30 sin 220 vol -12dB; #test tone: a3 note / 220Hz, -12dB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment