Skip to content

🛠️ Command line script to play songs and shift pitch/speed.

License

Notifications You must be signed in to change notification settings

afska/play-and-shift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks