Skip to content

Instantly share code, notes, and snippets.

@azarbayejani
Last active November 24, 2020 22:10
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 azarbayejani/39c60dfbeeb86640834bd485b86c0e14 to your computer and use it in GitHub Desktop.
Save azarbayejani/39c60dfbeeb86640834bd485b86c0e14 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Example usage: ./audio-pitch https://youtube-dl.bandcamp.com/ -0.21
# Above will play the track with pitch adjusted to -21%
link="$(youtube-dl -f bestaudio -g $1)"
ffplay -af "asetrate=44100*(1+$2),aresample=44100" $link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment