<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[ChipMusic.org - Finding a way to emulate NES DPMC samples]]></title>
		<link>https://chipmusic.org/forums/topic/19761/finding-a-way-to-emulate-nes-dpmc-samples/</link>
		<description><![CDATA[The most recent posts in Finding a way to emulate NES DPMC samples.]]></description>
		<lastBuildDate>Fri, 04 Aug 2017 09:23:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Finding a way to emulate NES DPMC samples]]></title>
			<link>https://chipmusic.org/forums/post/253624/#p253624</link>
			<description><![CDATA[<b><i>kvee says:</i></b><p>PM&#039;d</p>]]></description>
			<pubDate>Fri, 04 Aug 2017 09:23:25 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/253624/#p253624</guid>
		</item>
		<item>
			<title><![CDATA[Re: Finding a way to emulate NES DPMC samples]]></title>
			<link>https://chipmusic.org/forums/post/253623/#p253623</link>
			<description><![CDATA[<b><i>puddingmama says:</i></b><p>So you guys are AMAZING!!!!! Thanks to your advice I&#039;ve managed to to create a whole fucking piano part using just 10 samples! Honestly you&#039;ve helped me create the chiptune of my dreams!</p><p>So the game is called Silver Grapple, its out on August 26 and I&#039;m making sure you both get listed in the credits, I couldn&#039;t have done this without you! heres a link if you want to look <a href="http://store.steampowered.com/app/595080/Silver_Grapple/" target="_blank">http://store.steampowered.com/app/59508 &#133; r_Grapple/</a> (i really hope I&#039;m allowed to post that, I&#039;m not sure about the rules on promotion here).</p><p>If you guys have emails I&#039;ll gladly send you on the soundtrack as well, least I can do!</p>]]></description>
			<pubDate>Thu, 03 Aug 2017 23:43:50 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/253623/#p253623</guid>
		</item>
		<item>
			<title><![CDATA[Re: Finding a way to emulate NES DPMC samples]]></title>
			<link>https://chipmusic.org/forums/post/253298/#p253298</link>
			<description><![CDATA[<b><i>BLEO says:</i></b><div class="quotebox"><cite>puddingmama wrote:</cite><blockquote><p>...but Chipsounds isn&#039;t able to accurately emulate the way NES hardware dealt with its DPCM samples...</p></blockquote></div><p>No, that&#039;s not true. Chipsounds&#039; DPCM emulation is spot on. Take a look at the 2A0X.sfz file (C:\Program Files\Plogue\chipsounds\Programs\01. Pure Chip\) in a good text editor (Notepad++, etc) and go down to somewhere around line 160. You&#039;ll see this: </p><div class="codebox"><pre><code>&lt;region&gt; key=36 sample_freq=261.6255653006 sample=*com.Plogue.DAC.6Bit.Linear.DPCM|$DIR/drums/joe_8bit/KickJoe1.raw</code></pre></div><p>This is your hack heaven. If you have .dmc or .raw samples you want to use, you can stick them in the referenced folder (C:\Program Files\Plogue\chipsounds\Data\drums), copy this line and change the &quot;key=&quot; number and sample name. I&#039;ve done it a ton over the years.</p>]]></description>
			<pubDate>Thu, 06 Jul 2017 12:10:50 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/253298/#p253298</guid>
		</item>
		<item>
			<title><![CDATA[Re: Finding a way to emulate NES DPMC samples]]></title>
			<link>https://chipmusic.org/forums/post/253294/#p253294</link>
			<description><![CDATA[<b><i>kvee says:</i></b><div class="quotebox"><cite>puddingmama wrote:</cite><blockquote><p>Hey Chiptune Fans!</p></blockquote></div><p>Hi</p><p>The nesdev wiki is the definitive reference on this: <a href="http://wiki.nesdev.com/w/index.php/APU_DMC" target="_blank">http://wiki.nesdev.com/w/index.php/APU_DMC</a>. It&#039;s also extremely technical, so I&#039;ll try to sum everything up.</p><div class="quotebox"><cite>puddingmama wrote:</cite><blockquote><p>1. What were the size and quality limitations on DPCM samples?</p></blockquote></div><p>If you know how regular PCM works, let&#039;s start from there. Imagine you&#039;ve got a 7-bit PCM channel. Now, instead of being able to change to any other value each sample, the DPCM channel can only increase or decrease by one from the previous value (so it also acts as something reminiscent of a typical lowpass filter). That also means that if your sample contains silent parts, these are actually converted to a sequence of +1 / -1 / +1 / -1.<br />A picture can probably do way more to illustrate the difference (top: PCM, bottom: in DPCM)<br /><a class="postimg" href="http://i.imgur.com/rDDHR8l.png" title="http://i.imgur.com/rDDHR8l.png" id="forum_image_82627106"><img src="http://i.imgur.com/rDDHR8l.png" /></a></p><p>(I&#039;ve used a snare sample)</p><div class="quotebox"><cite>puddingmama wrote:</cite><blockquote><p>3. Were there any limitations on how many samples or how heavily a sample could be used?</p></blockquote></div><p>In theory, you can use bankswitching and just continually stream new sample data (you can verify that in FamiTracker btw). In practice, ROM chips were not free, so games usually had a few one-shot samples and since they didn&#039;t want to bankswitch during playback either, these had to fit in a specific memory range, $C000 - $FFF9, just about 16kB. At the standard rate (33143.9 Hz), that gave you about 2 seconds.<br />So to answer your question - there are no theoretical limitations, but if you&#039;d like to maintain the feel of actual old game soundtracks, you&#039;d use short samples.</p><div class="quotebox"><cite>puddingmama wrote:</cite><blockquote><p>2. How were they programmed and tuned, such the famous SunSoft Bass!?</p></blockquote></div><p>The DPCM channel has a rudimentary way of playing the sample back at different rates that approximate some musical notes. I believe sunsoft bass used exactly that technique. I&#039;d suggest you look at the pitch table in the nesdev document I&#039;ve linked, especially at the note column, to see how dirty that actually was :].<br />Nowadays, it&#039;s also common to just have different samples for different notes and play them all at the maximum frequency. It all depends on what you&#039;re trying to achieve.</p><div class="quotebox"><cite>puddingmama wrote:</cite><blockquote><p>Basically what I plan on doing is loading the samples into Chipsounds and (following your guidelines) ensure that they are programmed in a way that I could nearly 100% perfectly recreate the song using Famitracker and an actual VRC6 chip (something i&#039;m not doing now because time and lazy)</p></blockquote></div><p>I&#039;d say just load the samples to FamiTracker, have them all played once, export that to WAV and then load the results into chipsounds. It&#039;s a bit of extra work, but worth it if you&#039;d like to sound authentic.</p><p>EDIT: Oh, and just a small clarification, it&#039;s actually the 2A03 chip (that&#039;s the NES CPU with integrated sound circuitry) that has the sample channel.</p>]]></description>
			<pubDate>Thu, 06 Jul 2017 07:55:45 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/253294/#p253294</guid>
		</item>
		<item>
			<title><![CDATA[Finding a way to emulate NES DPMC samples]]></title>
			<link>https://chipmusic.org/forums/post/253289/#p253289</link>
			<description><![CDATA[<b><i>puddingmama says:</i></b><p>Hey Chiptune Fans!</p><p>So for the past year I&#039;ve been working on the soundtrack for a game called Silver Grapple (not sure what the rules are on promotion here) and have been entirely emulating (to a tee may I add) the NES VRC6 chipset via Plogue&#039;s Chipsounds. I&#039;m looking to do something special for one or two of the tracks, but Chipsounds isn&#039;t able to accurately emulate the way NES hardware dealt with its DPCM samples. so I want to do everything I can to MAKE it emulate it. I can load in individual samples to play on individual midi notes (can&#039;t pitch them) but what I need to know is:</p><p>1. What were the size and quality limitations on DPCM samples?<br />2. How were they programmed and tuned, such the famous SunSoft Bass!?<br />3. Were there any limitations on how many samples or how heavily a sample could be used?</p><p>Basically what I plan on doing is loading the samples into Chipsounds and (following your guidelines) ensure that they are programmed in a way that I could nearly 100% perfectly recreate the song using Famitracker and an actual VRC6 chip (something i&#039;m not doing now because time and lazy)</p><p>Any help you can give would be ENORMOUSLY appreciated, so thank you in advance, oh and I&#039;ll try and get your usernames in the credits or something, you helped so you definitely deserve it.</p>]]></description>
			<pubDate>Wed, 05 Jul 2017 23:29:01 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/253289/#p253289</guid>
		</item>
	</channel>
</rss>
