Archive for the ‘Hi-Fi & Music’ Category

TapUI Fail

30 Jul 2009 13:19 by Rick

I have been puzzled why the battery on my MP3 player is sometimes inexplicably flat and at other times goes on for ages without a recharge. Now I have solved it.

The Samsung YP-T10 doesn’t have a off switch; it times out after a certain period of inactivity which is adjustable in the system preferences. When playing music files, I stop (actually pause) the song using the centre touch button and that counts as inactivity. However, when using the FM radio, the centre button is a MUTE—so I have been leaving it on for days at a time, hence it is flat when I come back to it. The only way to stop the radio is to back up to the root menu using the top left touch button. This activity doesn’t stop ordinary music playing at all.

TapAudio Routing in MacOS X 10.5 (Leopard)

26 Jul 2009 22:08 by Rick

This is a short tutorial on how the audio system works in MacOS X and how to get the best out of it.

If you are a basic user of sound, such as listening to iTunes, streamed music from the internet and perhaps the Skype telephone system then you will have found that it all works straight out of the box. What you will be using can be shown like this…

Simple Audio Routing

This shows the program in the centre and on each side are the audio selectors for default input and output shown as rotary switches to indicate that only one can be selected at a time. Simple programs always take input from ‘Default In’ and send output to ‘Default Out’. Obviously playback-only programs will only use the output side but others, like Skype, may use an input microphone as well. Depending on the model of your Mac you will have different inputs and outputs available. My experience is with a Mac Pro and I have on the input side ‘Line In’ (Analogue) and ‘Digital In’ (I don’t seem to have a Mic socket which I always thought was a bit odd). On the Output side I have ‘Line Out’ (Analogue), ‘Digital Out’, ‘Internal Speakers’ and ‘Headphones’. I have bought a USB desk microphone so that adds to the input options.

The selector switches allow you to control what channel is assigned to the default input and output and this is done using the Sound panel in System Preferences as you would expect. On some devices (the analogue ones) you also have a volume control and a mute which are shown as variable pots and the analogue stereo output ones will have pan controls. Digital channels have fixed volumes and pan.

So, if for example, you have connected your desktop speakers to the ‘Line Out’ socket then you would switch ‘Default Output” to “Line Out’ and everything will be fine. Quite honestly, I find the Preferences panel confusing, especially the volume controls. If you are regularly switching things around then a useful accessory to get is SoundSource from Rogue Amoeba. This puts a control up on the menu bar which does the same as the System Preferences (and more) in a more convenient and intuitive form. For instance you can assign ‘System Sounds’ such as the bings and bonks issued by programs to a separate output—I send mine to the ‘Internal Speakers’ out of the way.

In all of this, ‘Headphones’ is a special case. They don’t appear in the System Preferences until you plug them in. What can be convenient is that when you plug them in they mute the other outputs—this is controllable in SoundSource but not anywhere else that I know of.

Monitoring

Moving on to more sophisticated programs, some like to control their input and output sources for themselves and bypass the ‘Default Input’ and ‘Default Output’. Skype is like this and allows you to select which microphone you would like to use (if you have more than one). Another little gadget I find useful is LineIn also by Rogue Amoeba. This is a very simple applications, best run automatically at login time, which simply routes input through to output with no modification except a mute button. Not only is this handy for monitoring the input sources if your recorder doesn’t do this, but is also useful just for listening to an external source on your Mac speakers.

Recording

Now if you want to record audio on your mac there are a number of applications that will do it. There is the quite sophisticated Garage Band from Apple and also the freeware Audacity which offers a lot of facilities and plugins. Using the diagram below you can see how to take an input signal, monitor it, record it and subsequently play it back. I use a Windows application called WaveCorrector which has state of the art click removal facilities. To get it to work here I run it under Crossover for Mac which works really well. The Crossover Windows interface only provides basic default input and output channels so I use SoundSource for routing. It does come with a monitoring facility but I prefer to use LineIn because it is there before I start setting up the recorder.

Audio Routing with LineIn for Monitoring

But what if what you want to record is sound that is generated on the computer itself—for instance a streaming radio station via the web browser? There is no way to get the output of, say, Safari, to the input of your recorder. Here another little gadget comes to the rescue…

SoundFlower

This little application from Cycling74, despite its daft name, does just what is required: but this is where it starts getting a little tricky to remember how to set it up. We will only be using the 2ch option—I think if you are into multi track recording then you are probably beyond this tutorial. Let’s start with a diagram…

Audio Routing with SoundFlower

Tracking it through from the top you can see that the browser outputs to ‘Default Output”. We have routed this through to SoundFlower using SoundSource. Now SoundFlower does its magic and sends it around to the front again. We set the ‘Default Input” to SoundFlower using SoundSource again and there it is ready to go into the recorder. No sound comes out of the speakers because we have intercepted it so we could use LineIn as before to do the monitoring but SoundFlower comes with its own tool called SoundFlowerBed. This is another application which you run at Login (it can be found in /Applications/Soundflower/Soundflowerbed) and sits on the menu bar as a little flower. You use this (shown as SFB on the diagram) to say where (else) you would like to route the SoundFlower signal to, so we set it to ‘Line Out’ so we can listen to it on the speakers.

Putting it all together

My main audio activities on the Mac are

  1. Listening to external source (LineIn)
  2. Recording them (add in WaveCorrector)
  3. Listening to Internet sources (Native)
  4. Recording them (add in SoundFlower)

To achieve this conveniently the settings I use are

Default Output = SoundFlower.
System Output = ‘Internal Speakers’
LineIn input = ‘Line In’ (actually ‘Digital In because my feed is digital)
LineIn output = ‘Line Out’
SoundFlowerBed = ‘Line Out’

This copes with 1. (output goes via LineIn) and 3. (Output goes to SoundFlower then ‘Line Out’ via SoundFlowerBed), Skype ringing goes to the internal speakers.

For recording I set “Default Input’ to ‘Line in’ (actually ‘Digital In’ in my case) for external sources (2.) and SoundFlower for internal sources (4.). Just one switch to change!

Finally a few cautions. I have found that some recording programs, including mine, like to have the routing set up before you start them up. They ignore any changes afterwards. Secondly be very careful with monitoring options. If used rashly then you can set up a feedback loop and make horrible loud noises. Lastly, if you want to record vinyl records via the ‘Line In’ socket then you will need a device called a “Phono Pre-Amplifier” to boost the signal and also provide some tonal correction. Even though there is this extra complication, a good old fashioned turntable gives much better quality than the USB-ready plastic turntables you can buy these days.

TapSpotify

13 Apr 2009 08:12 by Rick

Some friends are raving about Spotify which is a bit like Last.fm, a streaming music service, but with more choice and control at the expense of the occasional audio advertisement or a subscription.

It is rumours only at the moment but it looks like Sonos my provide a Spotify linkup. If that happens than I stand a better chance of using it as that is where all my music listening happens now days. Dave is even trying to persuade me to put one in the bathroom!

On the downside, the critics rightly say that we have seen it all before and a free music service is not viable business plan. We have seen Pandora come and went, Sirius/XM and Last.fm are struggling and Napster go subscription only. Perhaps Sonos should let it pass and concentrate on something more tangible.

TapiTunes-DRM=(not quite) freedom

14 Jan 2009 10:43 by Rick

When Apple announced that it was no longer going to include Digital Rights Management on songs downloaded from the iTunes store, it all looked rosy—but there is a hidden catch. The AAC (.m4a) files still have your iTunes account id embedded in them so it can still be determined who bought them. That is unless you can find a way to edit the file to remove this information. Mediamonkey says it can edit AAC tags but I don’t know if it includes this one.

TapAnalogue vs. Analogue

27 Nov 2008 12:30 by Rick

It looked like there was an interesting article in The Economist a short while ago. In their Science and Technology department the (unnamed) correspondent asks Which is better: analogue or digital?. It is full of good technical stuff like hysteresis and second harmonic distortion. Unfortunately it is apparent in the first paragraph that he has no idea what he is talking about.

…do audio amplifiers and microphones with old-fashioned thermionic valves (“vacuum tubes” to Americans) inherently produce a sound more natural and satisfying than those with transistors and other solid-state devices?

This is not Analogue vs. Digital but Valve vs. Transistor, a completely different and unrelated beast.

TapParsing XML with PHP

17 Nov 2008 19:55 by Rick

Following on from the last.fm saga described earlier, I went on to look at the method user.GetWeeklyAlbumChart which requires accessing user.GetWeeklyChartList first.

I am using the plugin iLast.Fm from Leandro Alonso and the code he is using looks right but doesn’t seem to work. He uses curl to get the XML from the last.fm site. The XML you get is of the form

<lfm status="ok">
<weeklychartlist user="[username]">
<chart from="1225022400" to="1225627200"/>
<chart from="1225627200" to="1226232000"/>
<chart from="1226232000" to="1226836800"/>
</weeklychartlist>
</lfm>

He then parses it with simplexml_load_file() and puts it into an object called $chart. Then the code processes this as follows

$chartopt = sizeof($chart->weeklychartlist->chart) - 1;
$chart = $chart->weeklychartlist->chart[$chartopt];

and uses $chart['from'] and $chart['to'] in the call to user.GetWeeklyAlbumChart.

The problem is that $chartopt always has the value 0 which means that the sizeof() function is not working properly. There is a comment on the PHP documenattion page which says that foreach doesn’t work but reccomends count/sizeof() instead. What can be wrong?

Update: The answer seems to be here: SimpleXML is not so simple and it doesn’t behave correctly. It needs

$chartopt = -1;
foreach($chart->weeklychartlist->chart as $i) $chartopt++;

TapLast.fm API

12 Nov 2008 22:20 by Rick

Having tried some calls to the Last.fm API, I am wondering if some of the calls are flawed or if there is something wrong with my account.

You access the data using the address http://ws.audioscrobbler.com/2.0/? and supplying certain parameters separated by &.

Two are required with all calls…
method=<the data table you want>
api_key=<a hex key which you sign up for>
and other parameters for the data table requested.

I am looking at the method user.getTopAlbums which requires…
user=<username>
period=<overall|3month|6month|12month>

This seems to work fine for period=overall returning a list of albums in descending order of number of tracks played but if I use, say, period=3month then I get a very short list of albums with a playcount of just 1. The same happens for the other periods and also user.getTopArtists.

I have only been signed up for a few weeks so I would have expected to get the same list—or is it that it doesn’t like so little data? Update: looking at the results carefully, I think it has got stuck at the first tracks I listened to on the system when I was trying it out. Could it be some sort of cache stuck somewhere? It can’t be on my system as it does the same from wherever I look.

What I would really like is user.getRecentAlbums but that one doesn’t exist. If I use user.getRecentTracks then, because we play whole albums at a time, the list gets flooded with tracks from the same album. You can probably see the effect towards the bottom of the sidebar, unless I have found a way to fix it.

TapLast resort

31 Oct 2008 09:13 by Rick

Last.fm play-listYesterday saw a fantastic (free) upgrade to the Sonos music system. They have significantly improved the internet radio support and added support for podcasts and last.fm, the first free music service for the UK.

I can say that now because I now know what last.fm is. But this rant is about what led up to my confidence. It is strange how so many internet services are so poor at drawing in new users. Last.fm is a case in point. The upgrade to the Sonos system came in automatically with some brief notes and it said last.fm now available. So? What’s that? It looked like a web address so I typed it into Firefox. Try it! What do you get? I found something that looked like a record store or the Amazon front page. So I looked around for some sort of indication of what it was, how it worked and what you could use it for. Nothing. At the bottom is a list of links called “Learn about us” and, skipping the job adverts and media stuff there is the “About us” link. There I found some features but nothing really basic for a newcomer.

Now, to be fair, the release notes for the Sonos upgrade announced

More free music: Last.fm is free on Sonos

Last.fm is a global music service that lets you play, share and discover new music. You can also create personal radio stations based on your musical tastes. With Sonos v2.7 you can play all your stations all over the house – free of charge and free of computers.

which told me roughly what I needed to know and I had come across Pandora before, but why couldn’t Last.fm do that for itself.

My point is that we hear about all sorts of things in daily conversation and in the news—just passing references to things that the speaker assumes the listener understands. That is inevitable, but if I want to find out what it is all about and if I should take notice then I would expect to go to the supplier and find out. They are doing themselves a great disservice by not engaging with these potential new customers. The same is true of the social networking sites—if you didn’t know what they were about and you went to the front page of, say, facebook, would you really be any the wiser?

I subscribe to the feed of Daring Fireball (see, I have just done it to you if you don’t know what RSS feeds are) because John Gruber links to interesting new developments in the Apple world, but when you use the feed you don’t get his introductions. Some of them leave me completely puzzled about what they are or do. Try Cruz for example.

Eventually I found a description by Which? consumer magazine—now that is just what I always wanted (subtle reference to last night’s concert.)

TapTitle Case

8 Sep 2008 14:16 by Rick

Title case is the way that the capitalisation is done for titles of things like songs, books and articles. Having had a hunt around, there doesn’t seem to be a good definition on how it should be done. Wikipedia describes a range of rules but doesn’t come down in favour of any of them except to say that it is not fashionable among publishers. Even so, if you are producing, say, a list of albums and songs for a media centre then it looks a lot better if you are consistent and, as the article points out, it is easier to automate rather than using sentence case and trying to spot the proper nouns.

The best rules I can come up with are…

  • Start with a capital.
  • Capitalise after spaces but not other punctuation.
  • Don’t capitalise any one or two letter words (except I) nor certain three letter words:—and, but, for, the, via & others for foreign languages (e.g. les, des).
  • Like all good rule sets there are always exceptions but these have to be done by hand.

TapSonos – one year on

20 Aug 2008 13:07 by Rick

I wrote nearly a year ago of our move into whole house audio with the Sonos system. It has been a great success and is in use every day. We use it for the radio news in the mornings, dinner time music in the evenings and background music for parties. We now have over 50GB of music stored which consists of 99% of all the CDs we own, 80% of the cassette tapes and I am making good progress digitising the vinyl records.

Some things have changed with new models—we applaud the company for keeping them 100% compatible with the previous range. They now have the ZP90 which upgrades the ZP80 to 802.11n wireless with its longer range. The ZP100 has been replaced by the ZP120 which is smaller and with (reportedly) a better quality amplifier but reduces it to two wired network ports and loses the analogue line out sockets. The software updates have sligtly increased the index capacity and introduced various streaming music services (which we don’t use). The BR100 bridge solves the problem of the cost of the network attachment, but there have been no earth shattering advances.

So what is the future. Well for us it will be getting another node for the bedroom when we redecorate soon. But for Sonos, where will they go next. As you would expect, the forum members have a lot of ideas ranging from minor tweaks to the user interface, through a modernised controller to full video streaming capabilities.

In my opinion there is one thing that stands out as deficient and will be affecting sales. That is the need to have a raft of non-Sonos equipment behind the scenes to support it. These include a broadband connected network (not necessarily wireless); network attached disk storage for the music, either NAS or a computer; a computer with CD drive to transfer stuff to disk and also to manage the library adding titles, artists, album art etc. To some extent this is true of other devices such as portable MP3 players but these integrate very closely into computer media players; iPod with iTunes and most others with Windows Media Player; the storage is in the device. Loading is just a matter of drag-and-drop.

When I wrote about this last time I suggested a collaboration with an existing NAS supplier and leaving the ripping and management alone. This may still be the best way but could be enhanced by “arranging” for the media players to recognise the Sonos system in the same way that they see portable players. However! I see that some other manufacturers have gone the whole way and provide truly integrated servers.

Naim Audio have leapt into the market in a big way (and very very expensive). They are offering most of the Sonos benefits (claiming some as firsts) plus some extra features; an integrated storage/rip station server; synchronisation of libraries across the internet (so your country cottage has the same library as your city apartment—at this price, these are the customers they want); 24bit audiophile capability; integrated DAB/FM tuners, multiple line-in facilities; and integration of portable MP3 players, though I am not sure all of these are actually available yet. Of course this is way out of the market for mortals, the basic HDX server is £4,500 and you would be looking at £25,000+ and installed by professionals for a full house system. Still, there are ideas there that Sonos could pick up… (what is curious is that the controller looks like a 1970′s computer screen!)

At a more modest cost, Sony GigaJuke and Philips Streamium offer music servers. These are Middle-Fi systems but are simple and cheap so will capture the mass market. Are Sonos happy to let this go? I want to come in from the shop, slide a disk into the slot and play it NOW.