Delivering Sorrow

Hot on the heels of the work for St. Paul’s School, I’ve been tweaking the media queries for the Salter Cane website. I was switching the site over to using HTML5 structural elements anyway, so I figured I’d meddle with the CSS while I was at it.

Once again, the fact that the site was already using percentages made the process very straightforward. Depending on the viewport width, the layout changes from three columns to two columns to one column.

Salter Cane (1440) Salter Cane (1024) Salter Cane (760) Salter Cane (480)

And once again, I didn’t remove any content for small screen devices. The natural language navigation at the top of the page—now correctly ensconced in a nav element—really comes into its own in the linearised layout, allowing for quick access to different sections of the document.

The timing of all this optimisation is fortuitous. The second Salter Cane album has just been released: it’s called Sorrow.

It already has some fans. Shaun said:

The Truth Is Nothing sounds like Leonard Cohen, Johnny Cash and Arcade Fire had a musical transporter accident. can’t stop listening to it.

Lachlan is equally enthusiastic. If you like what you hear, you can buy the physical album from CD Baby or buy the digital album from iTunes. It will be available on Spotify and Amazon soon.

All the songs are licensed under a Creative Commons attribution license which means that they are . I’m looking forward to seeing where they end up.

You can listen to the whole album on the Salter Cane site using a Flash MP3 player. The documentation for Audio Player reads:

To insert a player on the page, place an HTML element and give it a unique ID. This element will be replaced with a player. If the browser doesn’t support Audio Player, the element will not be replaced so use it to show alternative content (maybe a message telling the user to download Flash).

The example code looks like this:

<p id="audioplayer_1">Alternative content</p>
<script type="text/javascript">
AudioPlayer.embed("audioplayer_1", {soundFile: "file.mp3"});
</script>

But rather than using a P element, I used the HTML5 audio element:

<audio id="audioplayer_1" src="file.mp3" controls="controls" preload="none">
</audio>  
<script>  
AudioPlayer.embed("audioplayer_1", {soundFile: "file.mp3"});  
</script>

That way, browsers with Flash installed get the plugin while other devices—like, say, the iPhone, iPod and iPad—get the native audio player.

Audio

Whatever device you’re using, enjoy listening to Sorrow by Salter Cane.

Tagged with

Illustrations

Thanks to the magic of machine tags, you can illustrate this post by tagging a picture on Flickr with:

Related

Links

Find links I've tagged with saltercane, music, sorrow, mp3, html5, css3, mediaqueries, etc.

Photos

Find photos I've tagged with saltercane, music, sorrow, mp3, html5, css3, mediaqueries, etc. on Flickr.

Find photos that I took on September 27th, 2010.

Bouzouki Bouzouki Wedding band Watching Sebadoh Instruments Jim Fast, heavy Conway Twitty in Clarendon Seb and Aral Chris and Jessica Rolf busking in Brighton Bouzouki Bouzouki Bouzouki Bouzouki Bouzouki Bouzouki Banjo on the bar Gaybar Dancing Rocking out Music in a tent Soundchecking Jamie Matt and Jessica listening Jazz at the Wenlock Arms Banjo serenade Barflies Samantha, Steve and Jason Gypsy jazz The Green Mill Session in The Cobblestone Jamie and Chris The Occasionals The Occasionals Conquest of Steel Conquest of Steel Conquest of Steel Conquest of Steel Fanfara Dancing 100 Robots Dodge Brothers The Dodge Brothers Mark Kermode Ocean Reid Mudlow, tonight Safe Solo Mute Mute Black Mountain Fujiya and Miyagi Richard's Radiohead Oxjam Cherry Ghost Cherry Ghost Cherry Ghost Jamie and Jessica The audience The Low Lows Guitar Guitar Treecreeper The Low Lows The Low Lows The Hornblower Brothers I Love You But I've Chosen Darkness Recording Studio Chris Chris Catherine Jessica Catherine Jessica Catherine Chris and Jessica