<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AB-WebLog.com&#187; Audio</title>
	<atom:link href="http://www.ab-weblog.com/en/category/audio/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ab-weblog.com/en</link>
	<description>Andreas Breitschopp</description>
	<lastBuildDate>Wed, 18 Mar 2015 09:47:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>USB Audio Interfaces With Good Frequency Response</title>
		<link>http://www.ab-weblog.com/en/usb-audio-interfaces-with-good-frequency-response/</link>
		<comments>http://www.ab-weblog.com/en/usb-audio-interfaces-with-good-frequency-response/#comments</comments>
		<pubDate>Sat, 30 Jul 2011 16:11:08 +0000</pubDate>
		<dc:creator>Andreas Breitschopp</dc:creator>
				<category><![CDATA[Audio]]></category>
		<category><![CDATA[frequency response]]></category>
		<category><![CDATA[measurement]]></category>
		<category><![CDATA[sound card]]></category>
		<category><![CDATA[USB]]></category>

		<guid isPermaLink="false">http://www.ab-weblog.com/en/?p=9</guid>
		<description><![CDATA[For a measurement system I needed an USB audio interface with a good frequency response (at least up to 40 kHz). After doing a first research on this topic on the internet I realized that this won&#8217;t be very easy &#8230; <a href="http://www.ab-weblog.com/en/usb-audio-interfaces-with-good-frequency-response/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For a measurement system I needed an USB audio interface with a good frequency response (at least up to 40 kHz).</p>
<p>After doing a first research on this topic on the internet I realized that this won&#8217;t be very easy as most of the manufacturers just don&#8217;t put any useful info regarding frequency response on their webpage. And if you asked them they, often just don&#8217;t know it themselves.</p>
<p>So I ordered these interfaces for testing:</p>
<ul>
<li>M-Audio FastTrack Pro (about €160)</li>
<li>TASCAM US-122 MKII (about €130)</li>
<li>E-MU 0202 USB (about €100)</li>
<li>ESI Dr. DAC nano (about €70)</li>
</ul>
<p>Here are the results of the individual audio interfaces.</p>
<h2>M-Audio FastTrack Pro</h2>
<p><a href="http://www.ab-weblog.com/en/files/m-audio-fast-tack-pro.png"><img class="aligncenter size-medium wp-image-114" title="M-Audio FastTrack Pro" src="http://www.ab-weblog.com/en/files/m-audio-fast-tack-pro-300x161.png" alt="M-Audio FastTrack Pro" width="300" height="161" /></a></p>
<p>The problem with this interface was that it still uses USB 1.1 and therefore a sampling rate of 96 kHz is only possible in one direction (in or out). That would be OK for me as I only needed to use it for output, but whatever I tried I did not get the interface to work with a sampling rate of 96 kHz – it only accepted 44.1 kHz. As a result the upper end of the frequency response is around only 20 kHz. So I cannot use this interface for my purpose.</p>
<h2>TASCAM US-122 MKII</h2>
<p><a href="http://www.ab-weblog.com/en/files/tascam-us-122-mkii.png"><img class="aligncenter size-medium wp-image-115" title="TASCAM US-122 MKII" src="http://www.ab-weblog.com/en/files/tascam-us-122-mkii-300x269.png" alt="TASCAM US-122 MKII" width="300" height="269" /></a></p>
<p>This was the best interface in respect of frequency response in my test: in contrast to the FastTrack Pro it uses USB 2.0 and therefore can easily handle 96 kHz sampling rate in both directions simultaneously. The frequency response is also very good (20 Hz to 40 kHz with +/-1 dB) as the following diagram of the RightMark Audio Analyzer shows:<a href="http://www.ab-weblog.com/en/files/tascam-us-122-mkii-frequency-response.png"><img class="aligncenter" title="Frequency Response of TASCAM US-122-MKII" src="http://www.ab-weblog.com/en/files/tascam-us-122-mkii-frequency-response-300x187.png" alt="Frequency Response of TASCAM US-122-MKII" width="300" height="187" /></a></p>
<h2>E-MU 0202 USB</h2>
<p><a href="http://www.ab-weblog.com/en/files/e-mu-0202-usb.png"><img class="aligncenter size-medium wp-image-116" title="E-MU 0202 USB" src="http://www.ab-weblog.com/en/files/e-mu-0202-usb-300x137.png" alt="E-MU 0202 USB" width="300" height="137" /></a></p>
<p>Whatever I tried, but I did not get this interface to work correctly: my Windows XP computer crashed several times while trying to get the drivers to work and I really don&#8217;t want to talk about the Windows 7 Beta Drivers at all! I cannot understand why a company like Creative (E-MU was acquired by Creative in 1993) does not have official (not beta!) and working Windows 7 drivers about 2 years after this operating system was released.</p>
<h2>ESI Dr. DAC nano</h2>
<p><a href="http://www.ab-weblog.com/en/files/esi-dr-dac-nano.png"><img class="aligncenter size-medium wp-image-117" title="ESI Dr. DAC nano" src="http://www.ab-weblog.com/en/files/esi-dr-dac-nano-300x165.png" alt="ESI Dr. DAC nano" width="300" height="165" /></a></p>
<p>This was the cheapest interface in my small test and it also does not have many features: it really only outputs stereo audio – over S/PDIF or line out –, but this works just fine at 96 kHz sampling rate. The frequency response is not what I would call &#8220;neutral&#8221; (it looks like as the manufacturer want to boost the bass a little bit with intent), but at least also the higher frequencies are sent with not too high absorbability (20 Hz to 40 kHz with +2/-3 dB). For this test I used the TASCAM US-122 MKII interface as input for the RightMark Audio Analyzer:<a href="http://www.ab-weblog.com/en/files/esi-dr-dac-nano-frequency-response.png"><img class="aligncenter" title="Frequency Response of ESI Dr. DAC nano" src="http://www.ab-weblog.com/en/files/esi-dr-dac-nano-frequency-response-300x187.png" alt="Frequency Response of ESI Dr. DAC nano" width="300" height="187" /></a></p>
<p>As a summary I recommend the ESI Dr. DAC nano interface if only stereo output at 96 kHz is necessary and +2/-3 dB in the 20 Hz to 40 kHz frequency range are OK. Otherwise the best one in respect of frequency response of the tested devices definitely is the TASCAM US-122 MKII.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ab-weblog.com/en/usb-audio-interfaces-with-good-frequency-response/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Simple Sine Generator for .NET</title>
		<link>http://www.ab-weblog.com/en/simple-sine-generator-for-net/</link>
		<comments>http://www.ab-weblog.com/en/simple-sine-generator-for-net/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 12:08:54 +0000</pubDate>
		<dc:creator>Andreas Breitschopp</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Audio]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[sine]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.ab-weblog.com/en/?p=133</guid>
		<description><![CDATA[In this post I want to show how to create an easy sine generator in .NET. Let&#8217;s start with a code listing and then I&#8217;ll explain what I&#8217;m doing here: const double frequency = 1000; const double amplitude = 20000; &#8230; <a href="http://www.ab-weblog.com/en/simple-sine-generator-for-net/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In this post I want to show how to create an easy sine generator in .NET.</p>
<p>Let&#8217;s start with a code listing and then I&#8217;ll explain what I&#8217;m doing here:</p>
<pre class="brush: csharp; gutter: true">const double frequency	= 1000;
const double amplitude	= 20000;
const long sampleRate	= 44100;
const int durationSec	= 5;

long sampleCount = sampleRate * durationSec;

double timeStep = 1.0 / (double)sampleRate;

double time = 0;
int[] values = new int[sampleCount];
for (long i = 0; i &lt; sampleCount; i++) {
	values[i] = (int)(amplitude * Math.Sin(2 * Math.PI * frequency * time));
	time = time + timeStep;
}</pre>
<p>OK, here are some explanations:</p>
<ul>
<li>lines 1-4: some constants you can change to e. g. adjust the frequency.<br />
<em>Note:</em> the frequency cannot be more than half the sampling rate.</li>
<li>line 6: calculating the number of sampling points.</li>
<li>line 8: calculating the time between two sampling points.</li>
<li>lines 10-11: some variable initializations.</li>
<li>lines 12-15: here finally the value of each sampling point is calculated.</li>
</ul>
<p>And here is the corresponding code for Visual Basic .NET:</p>
<pre class="brush: vbnet; gutter: true">const frequency as double		= 1000
const amplitude as double		= 20000
const sampleRate As Long		= 44100
const durationSec As Integer	= 5

Dim sampleCount As Long
sampleCount = sampleRate * durationSec

Dim timeStep As Double
timeStep = 1.0 / sampleRate

Dim time As Double = 0
Dim values(0 To sampleCount - 1) As Integer
For i As Long = 0 To sampleCount - 1
	values(i) = amplitude * Math.Sin(2 * Math.PI * frequency * time)
	time = time + timeStep
Next i</pre>
<p>For sound playback you can now use either an API call like <em>PlaySound</em> (of <em>winmm.dll</em>) or the solution of <a title="Article about .NET sound class" href="http://www.codeproject.com/KB/audio-video/CPIAudio.aspx" target="_blank">this great article</a>.</p>
<p>Did you also need to generate a sine in .NET yourself already?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ab-weblog.com/en/simple-sine-generator-for-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->