Tuesday, March 31, 2015

Digital Audio Basics: Sample Rate and Bit Depth

Digital Audio Basics: Sample Rate and Bit Depth

Although discussions of digital audio conversion have filled several books, a fundamental understanding of two terms is particularly important to correctly using your computer-based recording system: sample rate and bit depth.
The conversion process is complex, and there are multiple ways to accomplish it. But no worries: We’re just going to discuss sample rate and bit depth at a basic level, as applied to linear pulse-code modulation (PCM), one of the most common conversion technologies.

Sampling Basics

At the most basic level, computers operate one step at a time by turning a succession of switches on or off at very high speed. Since computers “think” in discrete steps, in order to convert analog audio signals to the digital domain, it’s necessary to describe the continuous analog waveform mathematically as a succession of discrete amplitude values.
In an analog-to-digital converter, this is accomplished by capturing, at a fixed rate, a rapid series of short “snapshots”—samples —of a specified size. Each audio sample contains data that provides the information necessary to accurately reproduce the original analog waveform. Things like dynamic range, frequency content, and so on are all contained within this datastream. The instantaneous amplitude level in each sample is given the value of the nearest measuring increment—a process called quantization. By reproducing these values and playing them back in the same order and at the same rate at which they were captured, a digital-to-analog converter produces a practically identical (in theory) copy of the original waveform.
The rate of capture and playback is called the sample rate. The sample size—more accurately, the number of bits used to describe each sample—is called the bit depth or word length. The number of bits transmitted per second is the bit rate. Let’s take a look at this as it applies to digital audio.

Digging A Bit Deeper

The on/off status of each switch in a computer is represented as 1 or 0, a system known as binary. Thus, a string of binary digits—bits —is used to describe anything a computer does, including manipulating and displaying text, images, and audio. Computers can manage entire strings of these bits at a time; a group of 8 bits is known as a byte; one or more bytes compose a digital word. Sixteen bits (two bytes) means that there are 16 digits in a word, each of them a 1 or 0; 24 bits (three bytes) means that there are 24 binary digits per word; and so on.
The number of bits in a word determines how precise the values are. Working with a higher bit depth is like measuring with a ruler that has finer increments: you get a more precise measurement. When the values are in finer increments, the converter doesn’t have to quantize as much to get to the nearest measuring increment.
FIG.1: If the bit depth is low (a), the signal will be inaccurately converted because it’s sampled in large increments. By increasing the bit depth (b), you get finer increments and a more accurate representation of the signal.FIG.1: If the bit depth is low (a), the signal will be inaccurately converted because it’s sampled in large increments. By increasing the bit depth (b), you get finer increments and a more accurate representation of the signal.
Thus, a higher bit depth enables the system to accurately record and reproduce more subtle fluctuations in the waveform (see Fig. 1). The higher the bit depth, the more data will be captured to more accurately re-create the sound. If the bit depth is too low, information will be lost, and the reproduced sample will be degraded. For perspective, each sample recorded at 16-bit resolution can contain any one of 65,536 unique values (216). With 24- bit resolution, you get 16,777,216 unique values (224)—a huge difference!

The most important practical effect of bit depth is that it determines the dynamic range of the signal. In theory, 24-bit digital audio has a maximum dynamic range of 144 dB, compared to 96 dB for 16-bit but today’s digital audio converter technology cannot come close to that upper limit. As of this writing, the 24-bit converters in StudioLive™ (including StudioLive AI-series) digital mixers and the FireStudio™ Mobile interface offer a dynamic range of 118 dB, which is close to the best dynamic range attainable with current technology.

The Going Rate

FIG. 2: Increasing the sample rate but not the bit depth (a) improves the accuracy of the representation because the converter is taking “snapshots” of the signal more frequently. However, increasing both the sample rate and the bit depth (b) produces much more accurate results.FIG. 2: Increasing the sample rate but not the bit depth (a) improves the accuracy of the representation because the converter is taking “snapshots” of the signal more frequently. However, increasing both the sample rate and the bit depth (b) produces much more accurate results.
As noted earlier, in the digital conversion process, the converters record and play samples at specified sample rates. The Nyquist-Shannon sampling theorem states that in order to accurately reconstruct a signal of a specified bandwidth (that is, a definable frequency range, such as 20 Hz to 20 kHz), the sampling frequency must be greater than twice the highest frequency of the signal being sampled. If lower sampling rates are used, the original signal’s information may not be completely recoverable from the sampled signal (see Fig. 2).

If the sampling frequency is too low, aliasing distortion can result. Aliasing is a major concern when using analog-to-digital conversion. Improper sampling of the analog signal will cause high-frequency components of the signal to be aliased with
genuine lower-frequency components. If this happens, the digital-to-analog conversion will create an incorrectly reconstructed signal.
In addition, higher sampling rates enable you to record very high frequencies above the normal range of human hearing. While inaudible by themselves, these ultrasonic frequencies can interact, creating intermodulation distortion (such as beating) that results in audible frequency content that many engineers believe to impart subtle psychoacoustic effects.
For a variety of reasons, then, many recording engineers rely on sampling rates of 88.2, 96, and even 192 kHz to ensure extremely accurate recordings that capture every detail.
Which rate you choose depends at least in part on the product you need to deliver. For example, audio CDs and MP3s are delivered at 44.1 kHz, so sampling at 88.2 kHz makes the converter’s calculations relatively simple. Digital broadcast uses 48 kHz, so a 96 kHz sampling rate is an obvious choice. That said, some engineers believe that today’s sample-rate conversion is good enough that it’s not necessary to choose a rate based on keeping the math simple. For these engineers, the higher rate is generally considered better.

The High-Resolution Frontier

Finally, one often encounters the term “high-resolution audio” but it is rarely defined. That’s because there is no agreed-upon definition. For many years, “resolution” referred to bit depth, but in recent years, the term has been used more broadly to refer to both sample rate and bit depth. And “high resolution,” in particular, is a relative term. When 8-bit audio was in common use, 16-bit was “high resolution.” Today, 24-bit, 96 kHz audio is considered “high resolution.” In the future, it might be 32-bit, 192 kHz and beyond.
*sources

http://www.presonus.com/news/articles/sample-rate-and-bit-depth
http://www.ItchyTastyRecords.com

Saturday, March 28, 2015

Traktor Kontrol D2 Revealed

The new Traktor Kontrol D2 — the facts

Facebook Uner Kontrol D2
Still no replacement for the CDJ. Traktor needs to go beyond bedroom dj status. 

What is the Traktor Kontrol D2?

The best description I can provide is that it’s one third of a Kontrol S8, the right hand third to be more precise. As a unit, it’s an absolute no-brainer for NI to take a saw to the S8 and hack off the controller element. But it’s how you make this work with a mixer that is of most interest for me.
We got some official pictures of the evening, and of course skipped past the pictures of beautiful people having a good time, and zoomed in and enhanced forensically on the images of the gear. And a mixture of guesswork and arm-twisting allows me to deliver what I think we’re seeing here.
A big controller — the D2 is about 2″ wider and 3″ deeper than a conventional X1/F1 format, hence the D2 name.
Almost identical to one third of an S8 — The only noticeable difference is four A, B, C, and D buttons above the FX select one. Thus I see four deck control from one D2, but I expect that most users will but a pair.
Traktor Kontrol D2 controller S8 (2)
Sorry people — no audio interface, but there is a hub.

USB chaining — the Kontrol D2 doesn’t have an audio interface. As an F1/X1 style controller, it doesn’t make a huge amount of sense to include one, because this just controls elements of Traktor but isn’t a mixer like say the Z1. As the above image shows, there’s a USB two port hub for chaining, USB connector, a power connector and an on/off switch.
Traktor Kontrol D2 controller S8 (1)
Stacked Waveforms — there seems to be some differences in how the screen is used. I’m not 100% clear on if these are remix deck waveforms, but in theory if the Kontrol D2 can control four decks then it makes sense to have stacked waveforms for those decks too.
Feet — the Kontrol D2 can be angled. The image shows two, but there may well be four to bring it level with standard height gear.
Use them with an S8? — apparently yes. Full four deck control can be yours, for a price.
So it’s the controller element of an S8 that offers four deck control and has extra waveform options. It looks to be working with the current version of Traktor. Our guess is that Traktor is being rebuilt from the ground up to enable in-app purchases among other things and will be out later this year. Not too late though NI OK?
We don’t know the price, but one third of an S8 doesn’t seem unreasonable for this. I’m guessing in the £299-399 range.
Traktor Kontrol D2 controller S8 (17)

What the Kontrol D2 really is

If you look at the setups in the videos, the Kontrol D2 is a controller aimed at being a CDJ alternative. Getting full controllers (especially at S8 size) shoehorned into a booth is quite a feat. But turning up with a small bag with a pair of D2s (brace yourselves – twin D2 bags are coming), and pushing CDJs to one side is a much easier task. And then you get to use an established club standard mixer with your Traktor controllers.
Digging deeper and reading between the lines, this release really does indicate that a modular Traktor jog wheel controller isn’t coming, and perhaps more disappointingly for many, the chances of a Z4 are getting slimmer every day. Why would NI try to take on Pioneer and Allen & Heath when there are so many installed? And what could a Z4 bring that isn’t already out there? All NI needs to do is stop being so closed, certify every USB mixer, and the Kontrol D2 will sell by the container load. I have no doubt that Pioneer will welcome them with open arms, as their policy seems to be to get everything working with their gear, and to make a Pioneer dominated club scene accessible to all.
Clearly this is a soft launch, because NI needs to be talked about positively again. And if my predictions pan out to be true, this is so much more  than just another controller release. Bigger picture — the Kontrol D2 has the potential to be a club standard controller, provided NI opens up and certifies mixers. Traktor Kontrol D2 has promise but NI still lacks the basic dj needs for a great piece of equipment. So it will be while before the cdj is even touched by these little toys. 
*sources 
http://www.djtechtools.com/2015/03/26/new-traktor-kontrol-deck-controller-spotted-at-wmc/
http://www.ItchyTastyRecords.com

Sunday, March 15, 2015

Downtown Sessions Vol 2 Live Hard Techno Mix feat. Veilless on 4 cdjs

Veilless Studio Update

Secret Options for Ableton Live

Secret Options for Ableton Live 

Options.txt file for Live
Live Versions: 1 - 9 Operating System: ALL
With the "Options.txt" file we offer a way to change some of Live's options for special circumstances. These options are mainly used for developing and internal testing. However, some of you may find them useful as well.


If you have questions, please contact support.


How to use Options.txt


First you have to create a text file called "Options.txt" in the same folder where Live's Preferences.cfg file is located. Here's where to find the preferences folder (Live 6.0.9 or higher):


Windows XP
\Documents and Settings\[username]\Application Data\Ableton\Live x.x.x\Preferences\
Windows Vista, Windows 7, Windows 8
\Users\[username]\AppData\Roaming\Ableton\Live x.x.x\Preferences\
Mac OS X
/Users/[username]/Library/Preferences/Ableton/Live x.x.x/
Please refer to the following knowledge base article for further information on how to access hidden folders on Windows and Mac OSX.


You can activate several options in the Options.txt file but use only one per line. The syntax is very simple; each option begins with a hyphen and some options also require an additional underscore (see examples below). If you use the wrong syntax you will get an error message when opening Live. You need to restart Live to activate the option. The file format of the Options.txt must be plain text.


"ReWireMasterOff"


Disables Live's ReWire master functionality.


Example: -ReWireMasterOff


"ReWireChannels"


Number of ReWire channels appearing in the ReWire master when Live runs as ReWire slave.


Default = 16
Min = 0
Max = 64


You must choose an even number of channels.


Example: -ReWireChannels=32


"PluginAutoPopulateThreshold"


Auto-populates the plugin parameter list if a plugin has a number of less or equal than X parameters


Default = 32
Min = 1
Max = 128


"-1" will always populate the list with max. 128 parameters, regardless how many parameters the plugin has (= similar to Live 7 behaviour)


Supported since: 8.1.1


Example: -_PluginAutoPopulateThreshold=32


"ThinningAggressiveness"


When recording automation data, Live smoothes the recorded data with a pre-defined value. The default value is = 0.45


Higher value = more breakpoints eliminated.


Example: -ThinningAggressiveness=0.1


"DontCombineAPCs"


Deactivate the APC combination mode: don't align and sync the session rings of multiple APCs so they can be moved independently.


Supported since: 8.1.4


Example: -DontCombineAPCs


"AbsoluteMouseMode"


Alternative mouse mode without resetting mouse position - useful for tablets, touch screens, remote desk etc.


Supported since: 8.1


Example: -AbsoluteMouseMode


Note: When enabling Absolute Mouse Mode, some actions that require relative mouse movements may experience problems, eg, fine-tuning a parameter while holding CTRL / CMD. Therefore we would recommend to only enable this option if other steps do not resolve this problem.


"EnsureKeyMessagesForPlugins"


This option solves a problem with certain VST Plugins (such as NI's Reaktor), where keyboard data does not reach the plugin.


Supported since: 7.0.2b3


Note: PC ONLY!


Example: -_EnsureKeyMessagesForPlugins

*sources