Last active
November 23, 2018 21:05
-
-
Save evadecker/f2d0b10bfdf9b1f2005ae3435926fdda to your computer and use it in GitHub Desktop.
Shift audio pitch up or down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Calculations courtesy of http://www.microsoftbob.com/post/Adjusting-Pitch-for-MP3-Files-with-FFmpeg | |
# Up half step | |
ffmpeg -i input.wav -filter:a "asetrate=r=46722.3224612449211671764955071340,atempo=0.94387431268169349664191315" output_up_halfstep.wav | |
# Up whole step | |
ffmpeg -i input.wav -filter:a "asetrate=r=49500.5763304433484812188074908520,atempo=0.8908987181403393047402262055" output_up_wholestep.wav | |
# Up 3 half steps | |
ffmpeg -i input.wav -filter:a "asetrate=r=52444.0337716199990422417487017170,atempo=0.84089641525371454303112547623321" output_up_3halfsteps.wav | |
# Down half step | |
ffmpeg -i inpute.wav -filter:a "asetrate=r=41624.8571892626832019083702090380,atempo=1.05946309435929526456182529494630" output_down_halfstep.wav | |
# Down whole step | |
ffmpeg -i input.wav -filter:a "asetrate=r=39288.6334699889633390439756665420,atempo=1.122462048309372981433533049679" output_down_wholestep.wav |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment