Wednesday, October 3, 2012

Meet my freind Jack

Howdy and thanks for checking out my blog's first post ! \o/

My name is... uh, not Jack. My friends call me Dewed (rhymes with food) but I'll introduce Jack in a little bit.
There are a lot of musicians out there and while I certainly say hey to you all, I'll mainly be talking to those that are recording their original music at home, or would like to start their own home recording studio.

I thought my first post should be about dispelling common misconceptions about what it actually takes to produce CD quality stereo audio.

I'd guess the most prevalent misconception is ...
A typical home computer just isn't fast enough.

In actuality, most off the shelf computers made since the year 2000 or so could be transformed into a decent audio workstation. Of course a faster CPU and more RAM will improve the experience and in turn, the end result, but my point is, if properly optimized, even a lowly 1 Ghz Pentium cpu, with a decent amount of RAM can be used to record single tracks, and mix those tracks into a stereo audio file with acceptable quality.

Of course the manufacturers of the computers and audio specific hardware won't tell you this. It's bad for sales.

As far as audio hardware goes, they often hype things like sampling rates. Touting numbers like 96KHz or 192KHz. The truth is, the human ear can not tell the difference. Furthermore any perceivable difference that might exist will likely be lost in the mix down/playback stage, where audio hardware often re-sample the signals internally, and speakers without extremely flat frequency responses send the sound to your ears. As a final point on the topic, 44.1KHz is commonly referred to as "CD quality", and even 32KHz is still a higher rate than your FM radio gets. eg; Don't believe the hype.

The other number commonly slung around as a marketing ploy is something called bit depth. Fortunately for the layman there are fewer choices, and as a result, less marketing hype on that topic. Suffice it to say, recording audio with a bit depth of 16 bits will provide good results, 24 bits might be better. but again, any perceivable differences in the audio will likely be lost during the mix down/playback stage. 32 bit, for typical home recording scenario is overkill.

Basically you want a computer than can handle recording at 16bit, and 44.1Khz minimum, and if you are reading this, there is a good chance you have one.

My computer *should* work, but I get bad results

A couple of paragraphs ago I used the phrase "properly optimized". In most cases I've found even 10 year old hardware is perfectly capable of doing what I want it to. It's the software that causes problems, especially when using an older "hand me down" computer. Likely the biggest contributor to bad audio performance is the operating system itself, this is especially true if you use Microsoft Windows© Windows simply isn't optimized for any single task like audio production, and worse, you have almost no direct control over how the operating system allocates system resources.

So, to those trying to get started using a windows system, my best advice, use a Linux based OS instead.

OH NOES LINUX !! ? wait, whats that?
Linux is a free operating system that has hundreds of varieties. Many of the various distributions (called "distros") are often designed with a specific task in mind. Anything from network security, software development to, you guessed it, multimedia production, which of course includes audio.

So how do I get Linux on my computer? There are a lot of ways, but the easiest I've found is by using a Windows system to download an installer. And as luck would have it, Ubuntu, one of the more popular Linux distros has one you can grab from here http://www.ubuntu.com/download/desktop/windows-installer

Downloading it, and launching it will let you install Linux to coexist with your existing Windows install so when you boot your system, you'll get a choice of which OS you want to use.

Ok, I have Ubuntu installed, now what?

You are off to a good start, but if your computer is a bit out of date, an out of the box Ubuntu install isn't going to perform very well, again it isn't optimized for audio, but unlike Windows, you can "get under the hood" and rip out anything that you don't need that could potentially hog your RAM and CPU.

I've taken a couple of approaches to address this and thus far the best I've found is to convert a stock Ubuntu install into a "Ubuntu Studio" install. You'll find info on doing that here, https://help.ubuntu.com/community/UbuntuStudioPreparation

After following the steps there, most likely you are done. Now its just a matter of figuring out what software does what you want it to do, which brings us to Jack..

Jack (Jack Audio Connection Kit) is a collection of programs that run on Linux (and Mac OSX) that allows you to "Jack" one audio program into another, so you can for example launch an app called Hydrogen to create a drum beat, and using Jack, connect the audio output into another app, like SooperLooper (a very fun sampling looper app) Likewise you'd use Jack to connect the output of SooperLooper to your sound card for playback. Jack can also handle MIDI routing, but admittedly, I'm a bit of a MIDI nub. Other than scratch drum tracks, I don't really use it.

You've already installed Jack at this point, but you can read all about it here http://jackaudio.org

So .. my first suggested task to you. Launch qjackctl (Jack ConTroL), setting it for a 44.1KHz sampling rate. Use the "Connections" button to connect your sound cards line in into SooperLooper's input, and SooperLooper's output to your playback method. Try making some basic loops with your chosen instrument. I typically make the initial loop by creating a beat with Hydrogen, and connecting its output to SooperLooper. A timely click on the record button, and another 4, or maybe 8 bars later and I have my first loop. Then I switch back to Hydrogen, and stop the play back there. Now I can go back to SooperLooper and overdub to my hearts content.

If the sound is good, try the next higher sampling rate 48KHZ (you usually need to restart JackD when making these types of changes.) You should also see if enabling the "real time" option improves matters.

Note as you change frame and sampling rate values, the setting panel shows the estimated latency. A high latency will result in excessive over runs. Ideally, latency will be 5ms or less, somewhere around 8-10ms the effects of high latency become noticeable, resulting in clicks and pops and occasionally crashes.

Ok, I made a basic loop, but I hear pops and or my computer crashed

Well that is a shame, but don't worry. Chances are there is one or more things that need to be tweaked a bit. First you'll want to ensure that your soundcard actually supports the sampling rate you've chosen. Another common cause is something called over runs, where the system simply can't keep up. If you find the problem is due to over runs, there are basically 2 approaches, both aimed at decreasing latency.

1. Freeing up as much system resources as possible, RAM and CPU.
2. Lowering the frame/buffer rates and if you absolutely must, the sampling rate.

So, step one. I suggest swapping out the Windows manager, the software responsible for how your desktop looks and behaves. The stock Ubuntu window manager is a little challenging to run for older hardware, so you can replace it with a "lightweight" version like Xfce to free up a bit of RAM and put less strain on the CPU.

Another common resource issue is motherboards with integrated video cards. Often they use a portion or your computers RAM as video RAM. You should be able to reduce the amount of RAM allocated for video in your system BIOS. Since this is an audio work station, 32MB allocated to video should be fine, but ideally the built in video card should be disabled and a standard video card installed to ensure all of your RAM is being used for the task at hand, audio.

Well.. I guess I've rambled long enough. Soon I'll be posting more stuff related to using Linux based systems as audio workstations, and reviewing the plethora of open source audio software out there.

Till then \m/

No comments:

Post a Comment

Spammers, don't waste your time. All comments are reviewed prior to publishing.