Archive for the ‘Technical’ Category

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.

[Edit 20 Apr 2013] N.B. For those reading this and trying it on later versions of Mac OS. Lion (10.7) requires the latest version (v2.5.1) however this doesn’t work on Mountain Lion (10.8). Perversely the previous version (v2.5) does, so hunt around the internet for that. You need to run it manually the first time and some people have reported that it can affect the keyboard volume controls (which doesn’t bother me).

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.

TapFirefox 3.5 Extensions

2 Jul 2009 06:12 by Rick

Rather quietly, certainly without the fanfare of version 3, Firefox 3.5 was released a couple of days ago.

This is an update to my earlier post about difficult extensions bringing the version numbers and locations up to date. There are still a few that I found that could be simply hacked to enable them to load. I haven’t altered the functionality at all, just changed the maximum version number to 3.* and tested them. They work on my system but you use them at your own risk on yours.

Stop-or-Reload Button 0.2.2 — The page says it works up to Firefox 3.0 (but it doesn’t even do that). The Hacked version 0.2.2.99 still works with Firefox 3.5.

UK Threat Level 0.16Hacked version 0.16.99

British English Dictionary 1.19 — The page says it works with Firefox 3.6 but it doesn’t. The Hacked version 1.19.99 still works with Firefox 3.5. This extension is also suitable for Thunderbird 2.*. It is not entirely clear if this dictionary is needed for Firefox 3+ or if there is one built into the English (British) basic download.

Google Pagerank Status 0.9.8 — Although the web site doesn’t say so, the version there is now 0.9.9 and does support Firefox 3 but not 3.5. Hacked version 0.9.9.99

Objection 0.3.3 doesn’t support Firefox 3.5 though they are working on a version 0.4. Update 6 Jul 2009: v0.3.4 is now available.

Minimize to Tray 0.0.1.2006102615+ (Windows) doesn’t work with Firefox 3 — The Hacked version 0.0.1.2006102615.99 also works with Thunderbird 2.*.

TapID Card Victory?

1 Jul 2009 14:05 by Rick

The Home Secretary, Alan Johnson, announced yesterday that there was to be a change in policy and that Identity Cards were no longer to be made compulsory for any UK Citizens. This would abandon the trial for air-side staff at airports. They would, however, become compulsory for foreign nationals and the voluntary scheme was to be speeded up.

Does this make sense? Not really, as foreign nationals should have their own passports anyway so an additional card won’t make a lot of difference. There may be more of a case for people who have “mislaid” their papers.

Is this a victory? Well, partially. It is a clear indications of a steady back-pedalling by the government on the policy. You can no longer be required to produce it if there is no requirement to have one. There will no longer be an issue with lost or damaged cards or fines for failure to register.

However, there was no mention of the back-room ID Register. This will remain and be populated with information from passport applications. There is no indication that the amount of information required here will be relaxed at all. A passport, in theory, is voluntary but, if they can argue that digital television and broadband access are essential for daily living, then I can hardly see that passports can be regarded as optional.

My old (pre-blog) article on the issues is still largely relevant and, of course, No2ID.

TapFacebook Regional Networks

22 Jun 2009 10:56 by Rick

Facebook have announced that, over the next few weeks, they will be discontinuing the system of regional networks. These are the ones based on countries, states, cities – so, for instance, I am in a network for “Bristol.”

Ever since I joined (only a few months ago) they have been next to useless. What is the point in suggesting that such-and-such a person also lives in Bristol and perhaps I know them?

The bad news is that, when they remove them, your privacy profiles will change. All the permissions that used to say “My Networks and Friends” will be automatically changed to “Everyone” which may not be (probably won’t be) what you would like. So go into Settings ==> Privacy Settings now and change them. Educational and Work networks will remain so you can connect to and use those instead, though saying I should know everyone who ever went to Bristol University is just as daft.

TapMacOS with Safari 4

17 Jun 2009 11:30 by Rick

This is a companion post to the previous one about Windows without Internet Explorer, which now seems to be possible.

It has been discovered that, once you install Safari 4 on MacOS, you cannot remove it. The only backwards route is to reinstall the operating system from scratch. This is a seriously BAD THING. Microsoft got a lot of stick for embedding IE deep into Windows so it could not be removed (possibly not deliberately, but as a consequence). There are many reasons that you may wish to remove an application—shortage of space is only one. It was possible to remove the Beta versions so why not the real thing? It is possible to remove Safari from Windows.

TapWindows without IE

15 Jun 2009 10:45 by Rick

There is some talk around about Microsoft issuing a special version of Windows 7 for EU countries which doesn’t have Internet Explorer bundled in.

In some senses, this is good news; it exposes the lie that Internet Explorer cannot be removed from Windows because its use is deeply embedded into the operating system. It also means that Windows Update will have to be able to work with alternative browsers (or another mechanism altogether); something it can’t do at the moment.

On the other hand, I don’t see why they need to ship without it at all. Potentially the machines become useless for the average consumer who can’t access the web even to download a browser to access the web! There are suggestions that Microsoft are just posturing.

Apple ships machines with Safari which is a very similar situation so I don’t see why Windows shouldn’t ship with IE—so long as it is possible to remove it if people don’t want it. In practice, I don’t remove Safari, I just don’t use it except for cross browser code checks, and it would be the same with IE; but it would be nice to know that I could. A similar situation should exist for Media Player/iTunes verses competitors.

TapFacebook Privacy

11 Jun 2009 08:59 by Rick

I trust that those of you who have signed up for Facebook (and other similar) accounts have looked carefully at all the options and have decided who should be able to see what aspects of your profile. I also hope that you only accept as friends people that you really know in the “real world,” because “friend” status gives them greater access to your profile and access to your other friends. This can be misused to create a false web of trust.

Yet I see a surprising number of dubious applications, polls and quizzes come up on my wall. When you first connect to one of these, whether as an active initiator or in a response to a friend’s invitation you are presented with an acceptance screen headed “Allow Access?” and it clearly says

Allowing <whatever application> access will let it access your Profile information, photos, your friends’ info and other content that it requires to work.

Read it again until it sinks in—not only are you giving the application access to your profile which you have carefully edited but also access to those of your friends who may not have been so careful. Think of it as handing over your address book, birthday book and diary. You can see this happening when you are in some applications; the profile photos of your friends pop up suggesting that you invite them to join in.

The Facebook terms of service, which the application writers are supposed to adhere to, is quite clear that this information can only be used for the purposes it was given (like the example above) but do you suppose that they all stick to this. A recent study at the University of Cambridge (sorry, article rather technical) reveals that quite often the information is passed on to advertisers and from there, who knows where it goes. It becomes quite easy for a third party to collect a dossier of inter-relationships and enough personal information to, for instance, crack commonly used passwords.

So now you know why I haven’t responded to many of these invitations—so far only two that I trust and one daft one before I realised what the implications were.

And how much do you trust Facebook itself. If you use it at all then you have to, and in most cases this should be ok. There would be a terrific scandal if it was found to be deliberately misusing its customers information. Yet there are some strange things going on. Early on I took advantage of the offer to scan my email address book for possible friends. I did this very carefully and selected only those that I wanted to invite for follow up. Yet I am still, some months later, being invited to add some of the others as friends; it still knows that I am acquainted with them even though I didn’t initially add them to my friends list. It is in my dossier somewhere!

TapOedipus Mac

6 Jun 2009 10:12 by Rick

Windows is like my body. It will take virtually anything I throw at it with little more than a hangover afterwards. Normally it is wide awake and ready for anything but it has a tendency to sulk and sometimes will embarrass me in public. Just occasionally it gives up altogether for no explicable reason. As it gets older it gets a little fatter and slows down. There are visible scars from past accidents and mistakes that never quite fade away. One day it will fail to boot altogether.

Linux is like my mates. There are lots of them and they are always good for a laugh, but a little bit naughty. A few drift away and I never hear from them again but new ones come along. Some remain faithful but begin to look a lot like me; they buy a suit and get a bit over weight.

MacOS is like my mother, always telling me to wash behind my ears and nothing but the best is good enough for her boy. She is always there for me and everything I do is the greatest. She doesn’t mind when a few mates come around so long as she doesn’t have to talk to them. One day I will take a friend out but I expect that when I look closely, she will be a lot like my mother.

TapPerl has become the COBOL of web design

1 Jun 2009 11:03 by Rick

That is the fascinating last line of a short review of the use of programming languages based on the Freshmeat project rosta. The gist is that C, C++, Shell and Lisp remain solid, Perl and Tcl have stagnated, Ruby hasn’t matched its early promise but major growth is occurring in Python and Java. The factor keeping Perl alive is the significant legacy base. One notable omission from the review is PHP, a language that is much reviled but probably has similar characteristics to Perl.

TapHomegroups on Windows 7

14 May 2009 09:13 by Rick

I have been reading about the new features of Windows 7 and one that looks attractive is the concept of Homegroups. This is an extension of the home networking facility which consolidates the files of all participating machines and users into common libraries. So, for instance, if you have multiple PCs on your network, each with multiple users then all their music folders are consolidated into one music library while the files themselves remain on the owner’s account. This is an extension of the “My Music” and “Shared Music” across multiple machines and accounts in a more transparent way. This has been available for a long time in Windows Media Player but the mechanism has been moved back into the O/S and extended to other libraries such as videos and pictures. There are not a lot of details, but I presume that this is for read only and write always goes local. The libraries involved are Music, Pictures, Videos and Documents and the sharing also includes printers. What it fails to mention, of course, is that it only works when the relevant machines are switched on!

An article I was reading on Windows Secrets, which is a lot more informative, suggests that Documents are handled differently from others. It says that “Homegroup setup makes sharing the Documents Library optional” but I can’t see why that should be given special treatment. Surely your Gangsta Rap collection and the pictures from your naughty weekend in Brighton could be just as sensitive?

^ Top