Music Player Daemon Community Wiki


525pages on
this wiki
Add New Page
Talk0 Share

To use mpd with Predixis MusicMagicMixer:

MusicMagic needs a command line program to call, so a script similar to m3uhandler is needed... However, clicking on a single mp3 sends the handler an mp3 filename as opposed to an m3u... And the m3u/mp3 generated has the complete path, which mpc doesn't like... so we strip it.

       ## configure this for your MPD music dir
       ## clear the current list (optional)
       mpc clear;
       case $1 in
          *.mp3 ) echo $1 | sed -e "s/$musicdir//" | mpc add ;;
          *.m3u ) cat $1 | grep $musicdir | sed -e "s/$musicdir//" | mpc add ;;
         ## handle other file extensions (ogg, etc) just in case you need it...
          *) echo $1 | sed -e "s/$musicdir//" | mpc add ;;
       #play the music (also optional)
       mpc play;

Save this as musichandler (eg), chmod +x it, and enter it as the command line program for MusicMagic to use under Configuration Options to play music

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki