<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for iki.fi/o</title>
	<atom:link href="http://yehar.com/blog/?feed=comments-rss2" rel="self" type="application/rss+xml" />
	<link>http://yehar.com/blog</link>
	<description></description>
	<lastBuildDate>Sun, 05 Sep 2010 14:30:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Natural dyes by Olli Niemitalo</title>
		<link>http://yehar.com/blog/?p=1401&#038;cpage=1#comment-6258</link>
		<dc:creator>Olli Niemitalo</dc:creator>
		<pubDate>Sun, 05 Sep 2010 14:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://yehar.com/blog/?p=1401#comment-6258</guid>
		<description>:)</description>
		<content:encoded><![CDATA[<p>:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Natural dyes by Helena</title>
		<link>http://yehar.com/blog/?p=1401&#038;cpage=1#comment-6244</link>
		<dc:creator>Helena</dc:creator>
		<pubDate>Sun, 05 Sep 2010 06:36:11 +0000</pubDate>
		<guid isPermaLink="false">http://yehar.com/blog/?p=1401#comment-6244</guid>
		<description>Wau, tulee mahtavat kannet!</description>
		<content:encoded><![CDATA[<p>Wau, tulee mahtavat kannet!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Digital sound processing tutorial for the braindead! by Ravi</title>
		<link>http://yehar.com/blog/?p=121&#038;cpage=1#comment-6080</link>
		<dc:creator>Ravi</dc:creator>
		<pubDate>Mon, 30 Aug 2010 11:59:02 +0000</pubDate>
		<guid isPermaLink="false">http://yehar.com/blog/?p=121#comment-6080</guid>
		<description>Thanks a lot. Very useful concepts explained in a lucid manner.</description>
		<content:encoded><![CDATA[<p>Thanks a lot. Very useful concepts explained in a lucid manner.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Disabling the ThinkPad X200 master control for wireless radios switch by Olli Niemitalo</title>
		<link>http://yehar.com/blog/?p=1322&#038;cpage=1#comment-5967</link>
		<dc:creator>Olli Niemitalo</dc:creator>
		<pubDate>Wed, 25 Aug 2010 20:21:30 +0000</pubDate>
		<guid isPermaLink="false">http://yehar.com/blog/?p=1322#comment-5967</guid>
		<description>I think the switch should be better constructed and in a position that will not be touched accidentally, next to the power button for instance.</description>
		<content:encoded><![CDATA[<p>I think the switch should be better constructed and in a position that will not be touched accidentally, next to the power button for instance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Disabling the ThinkPad X200 master control for wireless radios switch by Tien</title>
		<link>http://yehar.com/blog/?p=1322&#038;cpage=1#comment-5966</link>
		<dc:creator>Tien</dc:creator>
		<pubDate>Wed, 25 Aug 2010 20:07:03 +0000</pubDate>
		<guid isPermaLink="false">http://yehar.com/blog/?p=1322#comment-5966</guid>
		<description>Ugh! I have the exact same problem. But really, should we have to all that? I thought the hardware button would simplify things, not make them harder...</description>
		<content:encoded><![CDATA[<p>Ugh! I have the exact same problem. But really, should we have to all that? I thought the hardware button would simplify things, not make them harder&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adlib / OPL2 / YM3812 by Jani</title>
		<link>http://yehar.com/blog/?p=665&#038;cpage=1#comment-5472</link>
		<dc:creator>Jani</dc:creator>
		<pubDate>Mon, 09 Aug 2010 18:03:44 +0000</pubDate>
		<guid isPermaLink="false">http://yehar.com/blog/?p=665#comment-5472</guid>
		<description>Formats between OPL2 and OPL3 are different. OPL3 uses straight 16-bit offset binary PCM - the format is described both in YMF262 and YAC512 datasheets, available by googling.

Value 0x8000 means silence 0, 0xFFFF means +32767 and 0x0000 means -32768. So to convert to signed 16-bit PCM what for example WAV format uses, just toggle the high bit with XOR if I recall correctly. As a guideline, a single operator outputting sine or square wave at full volume results in min/max amplitudes of +4084 and -4085 (yes there is a off-by-one artifact in the output because of the way the chip perhaps handles sign and magnitude internally, the negative sample values are just got by inverting the magnitude bits).

Sampling rate is 49716 when rounded to nearest integer in case you are unsure what sounds the best.</description>
		<content:encoded><![CDATA[<p>Formats between OPL2 and OPL3 are different. OPL3 uses straight 16-bit offset binary PCM &#8211; the format is described both in YMF262 and YAC512 datasheets, available by googling.</p>
<p>Value 0&#215;8000 means silence 0, 0xFFFF means +32767 and 0&#215;0000 means -32768. So to convert to signed 16-bit PCM what for example WAV format uses, just toggle the high bit with XOR if I recall correctly. As a guideline, a single operator outputting sine or square wave at full volume results in min/max amplitudes of +4084 and -4085 (yes there is a off-by-one artifact in the output because of the way the chip perhaps handles sign and magnitude internally, the negative sample values are just got by inverting the magnitude bits).</p>
<p>Sampling rate is 49716 when rounded to nearest integer in case you are unsure what sounds the best.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adlib / OPL2 / YM3812 by carbon14</title>
		<link>http://yehar.com/blog/?p=665&#038;cpage=1#comment-5464</link>
		<dc:creator>carbon14</dc:creator>
		<pubDate>Mon, 09 Aug 2010 10:21:24 +0000</pubDate>
		<guid isPermaLink="false">http://yehar.com/blog/?p=665#comment-5464</guid>
		<description>Jani,

I&#039;ve been looking at Olli&#039;s software today. I&#039;ve been using the debugreader because I wasn&#039;t certain that the OPL3 output was the same format as the YM3014 format.   The YM3014 datasheet is explicit about it&#039;s operation, but the YAC512 is much less so.   Do you have details of the YAC512 format?</description>
		<content:encoded><![CDATA[<p>Jani,</p>
<p>I&#8217;ve been looking at Olli&#8217;s software today. I&#8217;ve been using the debugreader because I wasn&#8217;t certain that the OPL3 output was the same format as the YM3014 format.   The YM3014 datasheet is explicit about it&#8217;s operation, but the YAC512 is much less so.   Do you have details of the YAC512 format?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adlib / OPL2 / YM3812 by Jani</title>
		<link>http://yehar.com/blog/?p=665&#038;cpage=1#comment-5378</link>
		<dc:creator>Jani</dc:creator>
		<pubDate>Fri, 06 Aug 2010 20:27:45 +0000</pubDate>
		<guid isPermaLink="false">http://yehar.com/blog/?p=665#comment-5378</guid>
		<description>Carbon14, IIRC, the clock edge is wrong regarding both data and load signals of OPL3. I never ran into any hardware problems with it though. I used about 2m of CAT5 cable so the signals were twisted with ground return.

Now the question is did you modify/rewrote the software so it records raw PCM, instead of doing conversion from the YM3014 format?

However I later bought an USB logic analyser so I don&#039;t have to fiddle around with custom hardware or software, it just captures everything for later analysis while real-time analysis is not possible unless I write a plugin for that.</description>
		<content:encoded><![CDATA[<p>Carbon14, IIRC, the clock edge is wrong regarding both data and load signals of OPL3. I never ran into any hardware problems with it though. I used about 2m of CAT5 cable so the signals were twisted with ground return.</p>
<p>Now the question is did you modify/rewrote the software so it records raw PCM, instead of doing conversion from the YM3014 format?</p>
<p>However I later bought an USB logic analyser so I don&#8217;t have to fiddle around with custom hardware or software, it just captures everything for later analysis while real-time analysis is not possible unless I write a plugin for that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adlib / OPL2 / YM3812 by carbon14</title>
		<link>http://yehar.com/blog/?p=665&#038;cpage=1#comment-5337</link>
		<dc:creator>carbon14</dc:creator>
		<pubDate>Thu, 05 Aug 2010 08:25:47 +0000</pubDate>
		<guid isPermaLink="false">http://yehar.com/blog/?p=665#comment-5337</guid>
		<description>The clock signal is indeed the other way on the opl3.  And using the last NAND gate sorts it out.

I should point out that Jani had already said that in comment #4, I just wasn&#039;t paying attention.</description>
		<content:encoded><![CDATA[<p>The clock signal is indeed the other way on the opl3.  And using the last NAND gate sorts it out.</p>
<p>I should point out that Jani had already said that in comment #4, I just wasn&#8217;t paying attention.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adlib / OPL2 / YM3812 by carbon14</title>
		<link>http://yehar.com/blog/?p=665&#038;cpage=1#comment-5303</link>
		<dc:creator>carbon14</dc:creator>
		<pubDate>Wed, 04 Aug 2010 10:12:56 +0000</pubDate>
		<guid isPermaLink="false">http://yehar.com/blog/?p=665#comment-5303</guid>
		<description>I built one of these last night and it seems to work.  But I&#039;m using it to investigate the OPL3 chipset.  This is interesting because it has 4 output channels rather than just 1 and each operator chain can be directed to any combination of output channels.

The data I collected last night was very noisy, but I&#039;ve just been looking at the datasheets for the chip and it looks to me that the CLK signal is inverted in the OPL3 as compared to the OPL2.  (The falling edge of LOAD corresponds with a rising edge of CLK) This would mean that I&#039;m loading the shift register at the same time that the data is changing.

I built my device on a protoboard, so it&#039;s easy for me to change. I&#039;m going to use the last left over NAND gate to invert the clock and see if that fixes my problems.

I was mightily impressed by the microscope work as well.  Many thanks to you, Olli</description>
		<content:encoded><![CDATA[<p>I built one of these last night and it seems to work.  But I&#8217;m using it to investigate the OPL3 chipset.  This is interesting because it has 4 output channels rather than just 1 and each operator chain can be directed to any combination of output channels.</p>
<p>The data I collected last night was very noisy, but I&#8217;ve just been looking at the datasheets for the chip and it looks to me that the CLK signal is inverted in the OPL3 as compared to the OPL2.  (The falling edge of LOAD corresponds with a rising edge of CLK) This would mean that I&#8217;m loading the shift register at the same time that the data is changing.</p>
<p>I built my device on a protoboard, so it&#8217;s easy for me to change. I&#8217;m going to use the last left over NAND gate to invert the clock and see if that fixes my problems.</p>
<p>I was mightily impressed by the microscope work as well.  Many thanks to you, Olli</p>
]]></content:encoded>
	</item>
</channel>
</rss>
