<?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>codehop &#187; bit depth</title>
	<atom:link href="http://codehop.com/tag/bit-depth/feed/" rel="self" type="application/rss+xml" />
	<link>http://codehop.com</link>
	<description>#code #art #music</description>
	<lastBuildDate>Mon, 23 Apr 2012 18:37:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>Are you setting 0dbfs to 1.0?</title>
		<link>http://codehop.com/are-you-setting-0dbfs-to-1-0/</link>
		<comments>http://codehop.com/are-you-setting-0dbfs-to-1-0/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 17:27:20 +0000</pubDate>
		<dc:creator><![CDATA[Jacob Joaquin]]></dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[bit depth]]></category>

		<guid isPermaLink="false">http://csound.noisepages.com/?p=137</guid>
		<description><![CDATA[Csound&#8217;s default output range is +/- 32767. Setting amplitudes with these numbers is, more or less, the hard way. The easy way is to use a normalized range of +/- 1. You can alter Csound&#8217;s output range with the 0dbfs &#8230; <a href="http://codehop.com/are-you-setting-0dbfs-to-1-0/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Csound&#8217;s default output range is +/- 32767. Setting amplitudes with these numbers is, more or less, the hard way. The easy way is to use a normalized range of +/- 1. You can alter Csound&#8217;s output range with the <a href="http://www.csounds.com/manual/html/Zerodbfs.html"><strong>0dbfs</strong></a> header statement by placing it beneath the standard orchestra header, like this:</p>
<pre>sr = 44100</pre>
<pre>kr = 4410</pre>
<pre>ksmps = 10</pre>
<pre>nchnls = 1</pre>
<pre>0dbfs = 1.0</pre>
<p>The issue with the default 16-bit range is that it makes little sense to do so in a world of multiple bit depths (8, 16, 24, 32, 64, etc). If one is rendering a 16-bit file, the argument could be made in favor of the default range since there is a one-to-one mapping of input to output values. However, once one leaves the realm of 16-bit, values of +/- 32767 become arbitrary. On the other hand, a normalized range is not married to any single bit-depth, and translates well to other resolutions.</p>
<p>Besides being easier to compose and design instruments with, there are other practical reasons to adopt this good programming practice. The <a href="http://www.csounds.com/manual/html/Zerodbfs.html">Csound manual says</a>, &#8220;Using 0dbfs=1 is in accordance to industry practice, as ranges from -1 to 1 are used in most commercial plugin formats and in most other synthesis systems like <a href="http://puredata.info/">Pure Data</a>.&#8221; If you are ever to use Csound in conjunction with <a href="http://puredata.info/">PD</a>, <a href="http://cycling74.com/products/max5">MaxMSP</a>, etc, this is the range you will use.</p>
<p>Make it habit. Start every new orchestra as if <strong>0dbfs</strong> is every bit as important as <strong>sr</strong>, <strong>kr</strong>, <strong>ksmps</strong> and <strong>nchnls</strong>. And always set it to 1 (there are exceptions).</p>
<p>In case you are wondering why more orchestras out in the wild haven&#8217;t adopted this practice&#8230; <strong>0dbfs</strong> first came into play in Csound version 4.10 in 2002. Most of existing knowledge base, such as books and tutorials, were written prior to this.</p>
]]></content:encoded>
			<wfw:commentRss>http://codehop.com/are-you-setting-0dbfs-to-1-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
