Metadata-Version: 2.0
Name: mocp
Version: 0.3.5
Summary: A Python library to control the MOC (music on console) audio player
Home-page: https://github.com/kenjyco/mocp
Author: Jonas Haag, Ken
Author-email: kenjyco@gmail.com
License: BSD
Download-URL: https://github.com/kenjyco/mocp/tarball/v0.3.5
Keywords: moc,mocp,console audio,mp3 player
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Multimedia :: Sound/Audio :: Players
Classifier: Intended Audience :: Developers
Requires-Dist: input-helper

Install
-------

Install the actual `MOC player/server <https://moc.daper.net/>`__

::

    % sudo apt-get install -y moc

    or

    % brew install moc
    % jackd -d coreaudio

..

    Note: if using a Mac, you need to run
    `jack <http://www.jackaudio.org/>`__ 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
-----

.. code:: python

    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'


