x-haui

moc - music on console

moc (music on console) is a console audio player for LINUX/UNIX designed to be powerful and easy to use.

Although I really appreciate this tiny musicplayer, I'm not completely satisfied with it yet. That's the reason for this section on my site.

shuffle/repeat patch

A lot of moc's functions can be easily controlled via commandline switches. By default, there's no way to determine whether shuffle/repeat is turned on or off, without checking the ncurses-interface of moc. So, I created a small patch, that enables moc to display these two values along with the song information on the command line.

Applying this patch is pretty easy:

patch interface.c patch

Download

Example:

State: PAUSE File: /my/favorite/musicfile.mp3 Title: foobar Artist: foo SongTitle: foobar Album: bar TotalTime: 01:28 TimeLeft: 00:54 TotalSec: 88 CurrentTime: 00:34 CurrentSec: 34 Bitrate: 192Kbps AvgBitrate: 199Kbps Rate: 44KHz
Shuffle: on
Repeat: off

now playing script for irssi


My moc now playing and controlling script for irssi is available here.