A Python library to control the MOC (music on console) audio player
Project DescriptionRelease History Download Files
The actual player must be installed on the system (i.e. sudo apt-get install moc or brew install moc).
Note: if using a Mac, you need to run jack in another terminal (i.e. jackd -d coreaudio). If moc was installed with homebrew, jack should have been installed as a requirement.
% pip install mocp
% ipython ... In : import moc In : moc.find_and_play('~/music-dir/blah*') In : moc.go('12:15') # jump to particular point in current track In : moc.go('1h23m12s') # jump to particular point in current track In : moc.go(500) # jump to particular point in current track In : moc.info_string() Out: '08:21 (501) of 95:35 into /home/user/music-dir/blah-thing/file.mp3'