<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ldlabs.org - Blog &#187; mpd</title>
	<atom:link href="http://www.ldlabs.org/blog/tag/mpd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ldlabs.org/blog</link>
	<description>Linux Tips &#38; c.</description>
	<lastBuildDate>Tue, 24 Jan 2012 08:09:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>mpd client for kde4</title>
		<link>http://www.ldlabs.org/blog/2009/05/20/mpd-client-for-kde4/</link>
		<comments>http://www.ldlabs.org/blog/2009/05/20/mpd-client-for-kde4/#comments</comments>
		<pubDate>Wed, 20 May 2009 08:55:57 +0000</pubDate>
		<dc:creator>Francesco Apollonio</dc:creator>
				<category><![CDATA[recensione]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mpd]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[program]]></category>
		<category><![CDATA[utility]]></category>
		<category><![CDATA[varie]]></category>

		<guid isPermaLink="false">http://blog.ldlabs.org/?p=507</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
float:left;
position: fixed;
top:40%;
left:60px;
z-index:1;
#F0F4F9 
}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:110px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
float:left;
height:30px;
width:100%;
#F0F4F9}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:110px;
margin:4px 4px 4px 4px;
}

</style>
Sonata è senza dubbio uno tra i migliori client per mpd che si possano trovare in giro, ha una sola pecca (dato che utilizzo Kde): utilizza GTK. Ricercando qualche client scritto in Qt4 mi sono imbattuto in questi due di cui vi parlo: QMpdClient e montypc. Partiamo da quest&#8217;ultimo, montypc. È ancora in sviluppo ma [...]]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
float:left;
position: fixed;
top:40%;
left:60px;
z-index:1;
#F0F4F9 
}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:110px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
float:left;
height:30px;
width:100%;
#F0F4F9}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:110px;
margin:4px 4px 4px 4px;
}

</style>
<p><strong>Sonata</strong> è senza dubbio uno tra i migliori client per <em>mpd</em> che si possano trovare in giro, ha una sola pecca (dato che utilizzo <em>Kde</em>): utilizza <strong>GTK</strong>.</p>
<p>Ricercando qualche client scritto in <em>Qt4 </em>mi sono imbattuto in questi due di cui vi parlo: <a href="http://bitcheese.net/wiki/QMPDClient" target="_blank"><em>QMpdClient</em></a> e <a href="http://jerous.thimhallan.org/montypc/" target="_blank">montypc</a>.</p>
<p>Partiamo da quest&#8217;ultimo, <strong>montypc</strong>. È ancora in sviluppo ma già ora fa paura:</p>
<div id="attachment_515" class="wp-caption aligncenter" style="width: 310px"><a rel="attachment wp-att-515" href="http://blog.ldlabs.org/wp-content/uploads/2009/05/montypc11.png"><img class="size-medium wp-image-515 colorbox-507" title="montypc11" src="http://blog.ldlabs.org/wp-content/uploads/2009/05/montypc11-300x168.png" alt="montypc" width="300" height="168" /></a><p class="wp-caption-text">montypc</p></div>
<p>L&#8217;unica pecca è che ancora <strong>non</strong> permette l&#8217;editing della <strong>playlist</strong> (cosa non da poco), features interessanti sono ad esempio la visualizzazione di informazioni su albums ed artisti mostrando la pagina <em>wikipedia</em> o <em>last.fm</em> associata.</p>
<p><em>QMpdClient</em> invece è molto più completo anzi diciamo che è prefettamente utilizzabile, eccovi alcuni screenshots:</p>
<p><a rel="attachment wp-att-509" href="http://blog.ldlabs.org/wp-content/uploads/2009/05/qmpdclient1.png"><img class="aligncenter size-medium wp-image-509 colorbox-507" title="qmpdclient1" src="http://blog.ldlabs.org/wp-content/uploads/2009/05/qmpdclient1-300x168.png" alt="qmpdclient1" width="300" height="168" /></a>ed ecco la visuale Lyrics:</p>
<div id="attachment_510" class="wp-caption aligncenter" style="width: 310px"><a rel="attachment wp-att-510" href="http://blog.ldlabs.org/wp-content/uploads/2009/05/qmpdclient2.png"><img class="size-medium wp-image-510 colorbox-507" title="qmpdclient2" src="http://blog.ldlabs.org/wp-content/uploads/2009/05/qmpdclient2-300x168.png" alt="Visualizzazione del testo della canzone" width="300" height="168" /></a><p class="wp-caption-text">Visualizzazione del testo della canzone</p></div>
<p>Peccato che sia per il primo che per il secondo non si sia integrato il sistema di notifiche in <em>kde4, </em>speriamo in un miglioramento di entrambi ma per ora, data la mancanza dell&#8217;editor della playlist in<em> montypc,</em> preferisco utilizzare <em>QMpdClient</em>.</p>
<div id="bottomcontainerBox">
			<div class="buttons">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.ldlabs.org%2Fblog%2F2009%2F05%2F20%2Fmpd-client-for-kde4%2F&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe></div>
			<div class="buttons">
			<g:plusone size="medium" href="http://www.ldlabs.org/blog/2009/05/20/mpd-client-for-kde4/"></g:plusone>
			</div>
			<div class="buttons">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.ldlabs.org/blog/2009/05/20/mpd-client-for-kde4/"  data-text="mpd client for kde4" data-count="horizontal">Tweet</a>
			</div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.ldlabs.org/blog/2009/05/20/mpd-client-for-kde4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mpcplay, semplice aprire un file musicale con mpd</title>
		<link>http://www.ldlabs.org/blog/2009/03/06/mpcplay-semplice-aprire-un-file-musicale-con-mpd/</link>
		<comments>http://www.ldlabs.org/blog/2009/03/06/mpcplay-semplice-aprire-un-file-musicale-con-mpd/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 09:35:06 +0000</pubDate>
		<dc:creator>Francesco Apollonio</dc:creator>
				<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mpd]]></category>
		<category><![CDATA[program]]></category>
		<category><![CDATA[utility]]></category>
		<category><![CDATA[varie]]></category>

		<guid isPermaLink="false">http://www.ldlabs.org/blog/?p=81</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
float:left;
position: fixed;
top:40%;
left:60px;
z-index:1;
#F0F4F9 
}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:110px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
float:left;
height:30px;
width:100%;
#F0F4F9}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:110px;
margin:4px 4px 4px 4px;
}

</style>
Avevo la necessità di trovare un modo rapido per aprire files e cartelle direttamente facendoci click dal files-manager, ed ecco che è nato questo semplice script (che utilizza mpc). 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 [...]]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
float:left;
position: fixed;
top:40%;
left:60px;
z-index:1;
#F0F4F9 
}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:110px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
float:left;
height:30px;
width:100%;
#F0F4F9}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:110px;
margin:4px 4px 4px 4px;
}

</style>
<p>Avevo la necessità di trovare un modo rapido per aprire files e cartelle direttamente facendoci click dal files-manager, ed ecco che è nato questo semplice script (che utilizza mpc).</p>

<div class="wp_codebox"><table><tr id="p812"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
</pre></td><td class="code" id="p81code2"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash                                                                                                                                                                         </span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> usage <span style="color: #7a0874; font-weight: bold;">&#123;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Errore nei parametri&quot;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Usage: mpcplay [PARAMETERS] fileName&quot;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;-ao --add-only: Aggiunge solo alla playlist&quot;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;-p --play: Avvia anche la riproduzione (Default)&quot;</span>
        <span style="color: #7a0874; font-weight: bold;">exit</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>                                                                
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> splitName <span style="color: #7a0874; font-weight: bold;">&#123;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #660033;">-F</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$musicRootDirectory</span>&quot;</span> <span style="color: #ff0000;">'{print $2}'</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$#</span> <span style="color: #660033;">-lt</span> <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #007800;">$#</span> <span style="color: #660033;">-gt</span> <span style="color: #000000;">2</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
        usage
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #007800;">action</span>=<span style="color: #ff0000;">&quot;-p&quot;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$#</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">2</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #007800;">action</span>=<span style="color: #ff0000;">&quot;$1&quot;</span>
        <span style="color: #7a0874; font-weight: bold;">shift</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #007800;">lastParameter</span>=<span style="color: #ff0000;">&quot;$@&quot;</span>
<span style="color: #007800;">musicRootDirectory</span>=<span style="color: #ff0000;">&quot;Music/&quot;</span>
&nbsp;
<span style="color: #007800;">fileName</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$lastParameter</span>&quot;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$lastParameter</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">egrep</span> <span style="color: #ff0000;">'^/'</span><span style="color: #000000; font-weight: bold;">`</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #007800;">fileName</span>=<span style="color: #ff0000;">&quot;<span style="color: #780078;">`pwd`</span>/<span style="color: #007800;">$lastParameter</span>&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #007800;">trackName</span>=<span style="color: #000000; font-weight: bold;">`</span>splitName <span style="color: #ff0000;">&quot;<span style="color: #007800;">$fileName</span>&quot;</span><span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
mpc <span style="color: #c20cb9; font-weight: bold;">clear</span> <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
mpc add <span style="color: #ff0000;">&quot;<span style="color: #007800;">$trackName</span>&quot;</span> <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
&nbsp;
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$action</span>&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
        <span style="color: #ff0000;">'-ao'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Added <span style="color: #007800;">$trackName</span>&quot;</span> <span style="color: #000000; font-weight: bold;">;;</span>
        <span style="color: #ff0000;">'--add-only'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Added <span style="color: #007800;">$trackName</span>&quot;</span> <span style="color: #000000; font-weight: bold;">;;</span>
        <span style="color: #ff0000;">'-p'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> mpc play <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
            <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Playing <span style="color: #007800;">$trackName</span>&quot;</span> <span style="color: #000000; font-weight: bold;">;;</span>
        <span style="color: #ff0000;">'--play'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> mpc play <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
            <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Playing <span style="color: #007800;">$trackName</span>&quot;</span> <span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">esac</span></pre></td></tr></table></div>

<p>La configurazione è semplice, basta sostituire il parametro <em>musicRootDirectory </em>con la directory relativa impostata come <em>music_</em><em>directory</em> in mpd. Ad esempio nel mio <em>mpd.conf</em>:</p>
<pre>music_directory    "/home/kekko/Music"</pre>
<p>e la variabile <em>musicRootDirectory</em> è:</p>
<pre>musicRootDirectory="Music/"</pre>
<p>Semplice vero?</p>
<div id="bottomcontainerBox">
			<div class="buttons">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.ldlabs.org%2Fblog%2F2009%2F03%2F06%2Fmpcplay-semplice-aprire-un-file-musicale-con-mpd%2F&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe></div>
			<div class="buttons">
			<g:plusone size="medium" href="http://www.ldlabs.org/blog/2009/03/06/mpcplay-semplice-aprire-un-file-musicale-con-mpd/"></g:plusone>
			</div>
			<div class="buttons">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.ldlabs.org/blog/2009/03/06/mpcplay-semplice-aprire-un-file-musicale-con-mpd/"  data-text="mpcplay, semplice aprire un file musicale con mpd" data-count="horizontal">Tweet</a>
			</div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.ldlabs.org/blog/2009/03/06/mpcplay-semplice-aprire-un-file-musicale-con-mpd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

