afska / play-and-shift

πŸ› οΈ Command line script to play songs and shift pitch/speed.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

play-and-shift

🎡 Play any song from your terminal changing its pitch or speed 🎡

Usage

cd ~/your/music/directory
ls
# ReallyCoolSong.mp3
# SongTunedInEFlat.mp3
# SongTunedInESharp.mp3

plp "eflat" 1 # plays the song 1 semitone higher
plp "esharp" -1 # plays the song 1 semitone lower
pls "cool" 0.5 # plays the song a 50% slower
pls "cool" 1.5 # plays the song a 50% faster

Install

Unix-based systems

  • πŸ“¦ Install mplayer with your favorite package manager
  • βœ”οΈ Make sure the command mplayer works on your shell
  • πŸ“ Copy the scripts to some directory, let's say ~/play-and-shift
  • πŸ›£οΈ Add that directory to the PATH environment variable:
export PATH=$PATH:~/play-and-shift
# add this to the end of ~/.bashrc

Windows

  • πŸ’» Install Git Bash
  • πŸ“ Copy the scripts to some folder, lets say C:\scripts
  • 🌱 Move the contents of the windows folder to the root of C:\scripts
  • πŸ›£οΈ Add that directory to the PATH environment variable:
    • From the Start Menu, search Edit the system environment variables
    • Click Environment Variables...
    • Edit your user's Path variable
    • Add the C:\scripts folder

About

πŸ› οΈ Command line script to play songs and shift pitch/speed.

License:MIT License


Languages

Language:HTML 99.8%Language:Shell 0.2%