Post here your patches, tips, themes, scripts and so on.
Submitted by garuma on Mon, 2011-04-11 21:32
Hey all,
Out of interest and relative boredom, I wrote a PulseAudio backend (currently based on the simple API) that work for the basic functionality (i.e. outputing PCM).
Supporting the rest of MOC simply requires using the normal API and coping ourselves with PA asynchronicity.
I will probably finish it up to do just that but, since you never know how things get pre-empted, I'm sharing my current patch just so that it doesn't bitrot: http://neteril.org/~jeremie/patch/pulse-simple.patch
Cheers.
Submitted by jstW on Wed, 2011-01-19 18:10
it request: mocp, python, lastfmsubmitd, notify-send, wget, Internet connection
how to use: satisfy all the dependencies. save script and change line " nick = 'Enter_your_nick_here'" in it. in moc-config file at option OnSongChange write " OnSongChange = "/path/2/script/nameOfScript "%a" "%t" "%d" "%r"" ". try to use it.
this script scrobbling song by lastfmsubmitd to last.fm and show picture of artist, name and title of song by notify.
you can find my script here http://is.gd/08BOU8
Submitted by Littlemaple on Wed, 2011-01-05 21:12
Hi guys, you may consider following scripts useful:
https://github.com/Littlemaple/Ubuntu-Scripts/blob/master/moc-player -- to command MOC using DELL Inspiron 6400 multimedia keys (for inspiration purposes mainly)
https://github.com/Littlemaple/Ubuntu-Scripts/blob/master/song -- song script
Song script in path or binded to a keyboard shortcut works in following way:
- you can type "song" into terminal and it notifies you about currently playing song
- you can type "song rm" and to instantly delete currently playing song
I was used to bind it to e.g. Win+S and press this combination when I wanted to know which song plays. No need to open terminal or whatever else. You just press it precisely when you want and it shows you what's playing. It doesn't disturb when every song starts and you can press it as many times as you want. Of course, your preferences may be different :) Uses python and libnotify. Enjoy.
Submitted by MutantTurkey on Wed, 2009-12-16 00:22
I've written a small program to help control moc when you are letting moc run in server mode.
Called MocIcon and inspired by Moc-Tray *written in perl* i decided to write this because i dislike perl, so i am rewriting this in C which is faster, lighter and doesn't require another depends.
She docks herself in any existing tray and lets the user Play/Pause Start/Stop Server FF/RW and eventually information via notify-send. mouseover for current song soon!
*see the site for full features & upcoming ideas*
MocIcon Website
I wrote it on sunday. so you can expect many numbers of improvements quickly
I post here because this is a MOC forum after all. :P
Tell Me if you like, or have any ideas.
Calvin Morrison
Submitted by m_a_xim on Wed, 2009-10-21 19:27
Hi,
I haven't managed to add midi support to MOC so I made a bash script that converts midi to wav (with Timidity) and adds them to /tmp/timiditym before automatically adding them to MOC's playlist.
The advantage over a simple integration of MIDI in MOC is that you can specify any timidity options you like (config file, reverb,...).
For instance, I have a directory full of Bach organ pieces specifically made for a specialized organ soundfont so I can simply add the right options to the timidity command.
Here is the script if any of you are interested:
#!/bin/bash
#timiditym.bash
#This script comes with no warranty of any kind.
#Feel free to share it as you like.
#read *.mid's with moc
#
#timidity -rm : remove all temp files
#
#timidity TIMIDITY_OPTIONS : makes wav files in /tmp/timiditym and adds
# them to moc playlist
mids=''
opts=''
if [ "$1" = '-rm' ]; then
rm -Rv /tmp/timiditym/
shift
fi
for i in "$@"; do
if ( echo "$i" | grep '\.[mM][iI][dD]$' ); then
mids=$(echo -e "$mids\n$i")
else
opts+=" $i"
fi
done
mkdir /tmp/timiditym
timiditycmd="timidity$opts"
oldIFS="$IFS"
IFS='
'
for i in $(echo "$mids"); do
of="/tmp/timiditym/$(basename "$i").wav";
eval "nice -n 5 $timiditycmd \"$i\" -Ow -o \"$of\""
mocp -a "$of";
done
IFS="$oldIFS"
Submitted by posix on Sun, 2009-08-09 10:37
http://moc.daper.net/node/355 — here is discussion about .cue sheet support, but in current version from SVN I've installed few days ago this feature is not exist, but it would be very useful. Does anybody know is it in TODO list or something?
p.s.: my friend is developer of GNU Gk, so I will ask him to help in writing this patch for MOC (but don't know how soon he accept this, unfortenatuly). It is all that I can do to help because my programming skills in C are very poor :)
Thanks for your answers.
Submitted by ralesk on Wed, 2009-07-29 22:19
I couldn’t find anything about this in the search, I wonder if MPRIS protocol support is planned for MOC. I’d love it :)
Submitted by Rotwang on Sun, 2009-03-01 15:30
Hi,
Tray icon controlling some mocp functions is very useful and convenient for me, so I've written simple script to do this task. It's written in perl/gtk (it was initially done in tcl/tk but i couldn't make tktray to build). You can spawn a console with mocp by left clicking on the tray icon, and right click brings pop-up menu with basic controls. I've set up even a google.code page ;] to share it with others.
http://code.google.com/p/moc-tray/
cheers
Pages