Skip to main content

A Python library to control the MOC (music on console) audio player

Project description

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.

Install

% pip install mocp

Usage

% ipython
...

In [1]: import moc

In [2]: moc.find_and_play('~/music-dir/blah*')

In [3]: moc.go('12:15')         # jump to particular point in current track

In [4]: moc.go('1h23m12s')      # jump to particular point in current track

In [5]: moc.go(500)             # jump to particular point in current track

In [6]: moc.info_string()
Out[6]: '08:21 (501) of 95:35 into /home/user/music-dir/blah-thing/file.mp3'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mocp-0.3.3-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file mocp-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for mocp-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 358194ea15e8118e01ceb4c906e051b4b6186f8e7b983419de05f0d84c371ad6
MD5 e16cbbf388a72a1d608b7c057cdae9a7
BLAKE2b-256 29b58cf7f11bfa40f4227d8b1c45dbac4a1f668d0f7f0a44859964246ff4d94a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page