Please dont copy my stuff.

Monthly Archives: July 2014

How to Build High Resolution Digital Audio System

Integrating analogue with digital audio components is complex and not well explained, so I thought I would post the results of the extensive research I conducted while recuperating from an eye problem – which allowed me time to listen carfully to music.  During my recovery I realized that the quality of our audio has degraded, it was better in the past using CDs.

Years ago we converted our audio CD collection to digital files hosted on a MAC mini using iTunes.  This was streamed via ethernet (wired) to Apple Airport Express (Airplay), then to a Denon 4308 AV Receiver and then to 26 year old high quality speakers (B&W 802-80).  This resulted in less than acceptable audiophile results.  Thats the problem I am trying to address – the sound quality is poor using these components.  

Interestingly,  I am quite satisfied with the audio and video quality from a Blue Ray video disk or 1080p Video downloaded from iTunes store using the above equipment with HDMI cables.  Where did I go wrong with audio?

This post serves two purposes:

  • To explain the basics of digital audio such as codecs (FLAC, ALAC …) and provide a reference as I forget these things over time
  • To document the solutions to problems so others can benefit from them and I don’t repeat the same mistakes

We have chosen to use the Apple echo-system but most of this post is generic and will work with other operating systems.  Apple has provided us with the best user experience overall. Warts and all, it’s the easies way for our household to go (although we keep our options open).

I think its important that everyone in the household be able to buy and listen to music, including ease of use like turning the system on/off.  I therefore have attempted to reduce the complexity of operating the entire system.

 

A few brief definitions for those new to digital audio:

DAC – Digital to Audio Converter – converting the digital streams of numbers to analogue sound

16/44 – a digital short hand for defining two key aspects of encoding sound.  Refer to the sound wave diagram below:

Waveform_digital

– the first number (16) is used to define the number of bits for loudness (dynamic range from soft to loud).  The greater the bit rate, the greater the difference between soft and loud and the larger the file.

– the second number (44) used to define the number of samples taken per second(in thousands).  The more samples the better the fidelity to the original sound and the larger the file.

– Digital files are stored either Lostless (no loss of sound quality) or Lossy (sounds removed to save space with a potential audible loss in quality).

– The encoding of sound is arranged using standards called codecs.  Most codecs don’t support tags such as Album Art and Track Names therefore the tags are placed into Files along with the codecs (the encoded music).  The files are standardized and a few common file formats are .mp3 (which is lossy so its poorer quality) or ALAC which is lostless (high quality).

DSD is an entirely new encoding scheme, has little music available and requires a specialized DAC. I have decided not to go that route.

Overall User Requirements:

Playing music involves more than just using technology; its about ease of purchase, operating convenience, reliability and above all enjoyment.  With that in mind I developed an overall set of requirements that balances those basic needs.  I encourage everyone to consider their overall requirements, not just a few technical pieces:

  • Purchase: how will you obtain the music, in what quality level and how will you place it into your music library
  • Player: (Software such as JRivers or iTunes – I actually settled on Audirvana V2 and dropped the iTunes Library entirely)
  • Remote: to select the music and turn on/off hardware and change the volume
  • Quality: what bit depth and sample rate (24/192 – described in the tables at the end of this post)
  • File Formats – ALAC, FLAC, AAC – (described in the tables at the end of this post)
  • Connections between components to support the desired quality levels (example Toslilnk has limits)
  • Streaming music from internet or hand held device (iPad …)
  • Locations: where will the hardware reside, how will you connect to it (network and remote) and will it make too much noise, is there good clean power?
  • Maintenance – do I know how to maintain the OS and Applications?
  • Upgradability: I kept the components as separate devices (exception: integrated receiver) so that they could be separately upgraded as required
  • Portability: Support iPods, iPhone music with down sample of audio files suitable for these devices
  • Hardware to support all of the above
  • Network Connections to support the above
  • Overall Cost of Ownership: Recycle old Macs, use free software and put money where it counts: speakers, amp and keep other costs lower (cables and DAC)

Basic Technical Requirements:

  • Player: iTunes – it’s the devil we know so the rest of the system has to work with it.    (JRiver media centre would be a consideration – that will be another post some day).
  • Purchase: The iTunes store does not have great quality levels, alternative stores will need to be sourced.  Moving the music from the store to the “digital music library” needs to be document
  • Remote: Use iOS devices as the “Remote app” to select music and replace all “other remotes” for power on and volume control etc.  One remote to rule them all.  On iOS I also installed Rommie which translates all other remotes from IR (infra red) to WIFI and back to IR for each component.  I can therefore change the music, volume or power from any room in the house
  • Quality: Support a stream rate of 24/192  (24 bit depth, 192 khz sample rate which is better defined at the end of the blog) when connected to a digital library hosted on a Mac computer. It is arguable that 24/192 is overkill for audio but at least this requirement should provide “state of the art” for a good while (maybe 5 years or so).  Do you need DSD, if so then you will have limited choices for a DAC.
  • Streaming: Support Airplay at its maximum throughput (which actually seems low at 16/44) to support some ad-hoc streaming from iOS
  • File Format: I have decided to use ALAC codec (Apple Lostless) using the .m4a file format (non DRM apple file format).  All of this is explained below as well
  • Connections: For the majority of audio transfer use USB from the computer to the DAC since it supports the best quality audio with least distorition
  • Location: Maintain a Music Library on a Mac in the listening area (Living Room) using a quiet older Mac Book Pro (2011) and quiet small external hard disk (1 – 2 TB), keyboard and screen.  Since audio streaming is not CPU intensive any relatively modern PC will do.  I will stick with a Mac since I already maintain several.
  • Maintenance – I don’t want to learn how to maintain and operate many systems, I will stick with Mac and iTunes (although iTunes is still unreliable and not user friendly)
  • Upgradability: Keep the DAC as a separate unit so that it may be upgraded over time.  The remaining audio components are already high end and won’t evolve over time
  • Software: Mac OS X, iTunes, iOS Remote, Roomie, XLD
  • Limitations: What I will not pursue now: DSD file format – not enough music available at a reasonable cost and keep costs reasonable for the DAC since they are still evolving

(more…)

Mac Pro Late 2013 6,1 – Thunderbolt Shutdown Problems Mavericks 10.9.4

Note: on July 9 2014 I started this new post describing shutdown problems – if you are running anything before 10.9.3 see: http://jeffgardner.ca/Blog/?p=751

This new post describes the problems with 10.9.4 as of July 9, 2014.

Current Situation:

The Areca 8050 will not shut down properly if the Mac Pro is Shutdown.  Instead, the fan on the 8050 runs on high and it appears to be shutting down but does not.

1)  The Mac Pro sleeps normally as of 10.9.4 if I manually use the Sleep command from the menu or if the timeout from the system preferences takes effect.

My current Energy Saver setting:

Screen Shot 2014-07-09 at 11.48.52

2) When the Mac Pro goes to sleep, so does my Areca 8050 Raid 5 – 21TB Drive.  There are no more crashes during the night with sleep/wake kernel panic.

3) The Nec 27″ using two DP now sleep wake properly as well.

Current Configuration 

Mac Pro 2013, 6 Core / 64GB / 1TB SSD / D500
Two NEC 27″ – Mini DP connect to MacPro directly
1 Pegasus R4 Thunderbolt V1 – 8 TB Raid 0 (4x2TB) – latest firmware
1 Areca 8050 Thunderbolt 21TB Raid 5 (8x3TB) – latest firmware
1 Anker USB 3.0 9-Port Hub with 5V 2.1A Charging Port hub VL812-B2 Chipset and updated Firmware 908
All Apple Thunderbolt cables attached to Mac Pro – not daisy chained from other TB drives
Mavericks 10.9.4 – created from clean install of 10.9.1

So things are better but I have to manually shut down the Areca 8050.