Skip to main content

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

Project description

Install

Install the actual MOC player/server

% sudo apt-get install -y moc

or

% brew install moc
% jackd -d coreaudio
Note: if using a Mac, you need to run jack in another terminal EVERY TIME (i.e. jackd -d coreaudio).

Verify that the MOC server can start

% mocp
Press q to quit.

Install with pip

% pip3 install mocp

Usage

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


Release history Release notifications

History Node

0.4.4

History Node

0.4.3

History Node

0.4.2

History Node

0.4.1

History Node

0.4.0

This version
History Node

0.3.6

History Node

0.3.5

History Node

0.3.4

History Node

0.3.3

History Node

0.3.2

History Node

0.3.1

History Node

0.3.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
mocp-0.3.6-py3-none-any.whl (7.7 kB) Copy SHA256 hash SHA256 Wheel py3 Nov 2, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page