<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[The 1-Bit Forum — Phaser1 on Arduino]]></title>
	<link rel="self" href="https://randomflux.info/1bit/extern.php?action=feed&amp;tid=122&amp;type=atom" />
	<updated>2018-09-29T18:50:43Z</updated>
	<generator>PunBB</generator>
	<id>http://randomflux.info/1bit/viewtopic.php?id=122</id>
		<entry>
			<title type="html"><![CDATA[Re: Phaser1 on Arduino]]></title>
			<link rel="alternate" href="http://randomflux.info/1bit/viewtopic.php?pid=1884#p1884" />
			<content type="html"><![CDATA[<p>Here is a successful use of the Phaser1 on Arduino: <a href="https://soundcloud.com/erwan-lerale/garvuino-phaser1-1-bit-testing-my-workflow">https://soundcloud.com/erwan-lerale/gar … y-workflow</a></p>]]></content>
			<author>
				<name><![CDATA[garvalf]]></name>
				<uri>http://randomflux.info/1bit/profile.php?id=6</uri>
			</author>
			<updated>2018-09-29T18:50:43Z</updated>
			<id>http://randomflux.info/1bit/viewtopic.php?pid=1884#p1884</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Phaser1 on Arduino]]></title>
			<link rel="alternate" href="http://randomflux.info/1bit/viewtopic.php?pid=1661#p1661" />
			<content type="html"><![CDATA[<p>Damn, I need to get back into this Arduino business. Or actually not, because your song is already awesome enough <img src="http://randomflux.info/1bit/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[utz]]></name>
				<uri>http://randomflux.info/1bit/profile.php?id=2</uri>
			</author>
			<updated>2018-02-21T09:47:16Z</updated>
			<id>http://randomflux.info/1bit/viewtopic.php?pid=1661#p1661</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Phaser1 on Arduino]]></title>
			<link rel="alternate" href="http://randomflux.info/1bit/viewtopic.php?pid=1659#p1659" />
			<content type="html"><![CDATA[<p>Still having some fun with this engine port on Arduino. Here is a recording from a new tune published on Battle of the Bits: <a href="http://battleofthebits.org/arena/Entry/A+Fight+in+the+Night+/27390/">http://battleofthebits.org/arena/Entry/ … ht+/27390/</a><br />You can listen to the difference with the ZX Spectrum version on this page (the first song in the list at the time of writing): <a href="http://garvalf.online.fr/index.php?page=musiques_zx.en">http://garvalf.online.fr/index.php?page=musiques_zx.en</a></p>]]></content>
			<author>
				<name><![CDATA[garvalf]]></name>
				<uri>http://randomflux.info/1bit/profile.php?id=6</uri>
			</author>
			<updated>2018-02-20T22:10:00Z</updated>
			<id>http://randomflux.info/1bit/viewtopic.php?pid=1659#p1659</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Phaser1 on Arduino]]></title>
			<link rel="alternate" href="http://randomflux.info/1bit/viewtopic.php?pid=1163#p1163" />
			<content type="html"><![CDATA[<p>the low pass filter was ok, I can hear it clearly from headphones, I think it&#039;s because of the crappy soundcard / setup, I wasn&#039;t using my usual external usb one.</p>]]></content>
			<author>
				<name><![CDATA[garvalf]]></name>
				<uri>http://randomflux.info/1bit/profile.php?id=6</uri>
			</author>
			<updated>2017-02-15T07:51:21Z</updated>
			<id>http://randomflux.info/1bit/viewtopic.php?pid=1163#p1163</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Phaser1 on Arduino]]></title>
			<link rel="alternate" href="http://randomflux.info/1bit/viewtopic.php?pid=1159#p1159" />
			<content type="html"><![CDATA[<p>I cooked up a more or less quality hookup schematics for headphones and line in, and indeed, no artifact/carrier noise.</p>]]></content>
			<author>
				<name><![CDATA[Shiru]]></name>
				<uri>http://randomflux.info/1bit/profile.php?id=11</uri>
			</author>
			<updated>2017-02-14T16:24:08Z</updated>
			<id>http://randomflux.info/1bit/viewtopic.php?pid=1159#p1159</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Phaser1 on Arduino]]></title>
			<link rel="alternate" href="http://randomflux.info/1bit/viewtopic.php?pid=1158#p1158" />
			<content type="html"><![CDATA[<p>I&#039;ve posted (the same) message there:</p><p><a href="http://forum.arduino.cc/index.php?topic=455680.msg3131717">http://forum.arduino.cc/index.php?topic … msg3131717</a><br /><a href="http://chipmusic.org/forums/topic/19450/1bit-music-on-arduino/">http://chipmusic.org/forums/topic/19450 … n-arduino/</a></p>]]></content>
			<author>
				<name><![CDATA[garvalf]]></name>
				<uri>http://randomflux.info/1bit/profile.php?id=6</uri>
			</author>
			<updated>2017-02-14T16:01:54Z</updated>
			<id>http://randomflux.info/1bit/viewtopic.php?pid=1158#p1158</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Phaser1 on Arduino]]></title>
			<link rel="alternate" href="http://randomflux.info/1bit/viewtopic.php?pid=1157#p1157" />
			<content type="html"><![CDATA[<p>Awesome! Listening to the demo tune right now, and I can confirm there&#039;s no noticable artifact/carrier noise on my setup.</p><p>Well, would be great if this gets some exposition on the Arduino forums. If there&#039;s enough interest, we might even consider opening a special Arduino sub-board on here.</p>]]></content>
			<author>
				<name><![CDATA[utz]]></name>
				<uri>http://randomflux.info/1bit/profile.php?id=2</uri>
			</author>
			<updated>2017-02-14T15:40:46Z</updated>
			<id>http://randomflux.info/1bit/viewtopic.php?pid=1157#p1157</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Phaser1 on Arduino]]></title>
			<link rel="alternate" href="http://randomflux.info/1bit/viewtopic.php?pid=1155#p1155" />
			<content type="html"><![CDATA[<p>maybe it&#039;s my low pass filter which is not very adapted to this type of sound. I&#039;ll make more tests of possible.</p>]]></content>
			<author>
				<name><![CDATA[garvalf]]></name>
				<uri>http://randomflux.info/1bit/profile.php?id=6</uri>
			</author>
			<updated>2017-02-14T13:37:54Z</updated>
			<id>http://randomflux.info/1bit/viewtopic.php?pid=1155#p1155</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Phaser1 on Arduino]]></title>
			<link rel="alternate" href="http://randomflux.info/1bit/viewtopic.php?pid=1153#p1153" />
			<content type="html"><![CDATA[<p>Sure, post about it whenever you think it is appropriate, maybe it&#039;ll inspire someone to do more 1-bit experiments. I personally don&#039;t have accounts on any Arduino-related resources.</p><p>Interesting, the carrier artifact is very prominent in these recordings. I wonder how it compares to the original ZX. There is <a href="https://soundcloud.com/mister_beep/mister-beep-greetings-to-c64">hardware recording</a> by Mister Beep himself, and it does not have any noticeable carrier, although he maybe EQed it a bit.</p>]]></content>
			<author>
				<name><![CDATA[Shiru]]></name>
				<uri>http://randomflux.info/1bit/profile.php?id=11</uri>
			</author>
			<updated>2017-02-14T13:27:26Z</updated>
			<id>http://randomflux.info/1bit/viewtopic.php?pid=1153#p1153</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Phaser1 on Arduino]]></title>
			<link rel="alternate" href="http://randomflux.info/1bit/viewtopic.php?pid=1152#p1152" />
			<content type="html"><![CDATA[<p>wow, that&#039;s very good too! Congrat and thank you for this port.</p><p>I&#039;ve made a recording of the demo song by Mister Beep:<br /><a href="http://picosong.com/GFmm/">http://picosong.com/GFmm/</a> (it&#039;s not complete)</p><p>I&#039;ve also found an old Phaser1 project I hadn&#039;t finished yet, the conversion was easy thanks to your clever script:</p><p><a href="http://picosong.com/GFuS/">http://picosong.com/GFuS/</a></p><p>I have an account on the arduino forum, I&#039;m sure your 2 engines will be praised by several people, do you want I post a link to this forum, or do you prefer to do it yourself? (And I can do this too on the Chipmusic.org forum)</p>]]></content>
			<author>
				<name><![CDATA[garvalf]]></name>
				<uri>http://randomflux.info/1bit/profile.php?id=6</uri>
			</author>
			<updated>2017-02-14T13:17:18Z</updated>
			<id>http://randomflux.info/1bit/viewtopic.php?pid=1152#p1152</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Phaser1 on Arduino]]></title>
			<link rel="alternate" href="http://randomflux.info/1bit/viewtopic.php?pid=1149#p1149" />
			<content type="html"><![CDATA[<p>Continuing the least imaginative way, here is second port of a ZX beeper engine to Arduino, in C.</p><p>This time it is an interleaving type engine. Porting approach is totally naive, just a timer interrupt at the bit output frequency, similar to the Octode implementation, but doubled because of the interleaving, with two alternating code paths. It easily works on its original sample rate of 23972 Hz (47945 Hz interrupts), and actually can work even at 44100 Hz (88200 Hz interrupts!). Didn&#039;t try higher rates because it was near the timer resolution limit with selected prescaler.</p><p>The most difficult part in the porting process was the Phaser1 format itself, it is quite tricky as you know. I chose the Beepola version, so you can just compile Phaser1 songs in Beepola and export them as BIN without player. Just don&#039;t forget that if you change the compile address in Beepola, you have to change the COMPILE_ADR in the C code too. Only the &#039;digital drums&#039; version is implemented.</p><p>The song in the demo build is Mister Beep&#039;s Greetings to C64.</p><br /><p>As for code tricks, nothing special here. The only tricky moment was catching the carry for 16-bit addition. It was done by checking if the value become lesser than it was before addition (normally should become greater), like that:</p><div class="codebox"><pre><code>add hl,bc
jr c,...

n=acc;
acc+=add;
if(acc&lt;n) ...</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Shiru]]></name>
				<uri>http://randomflux.info/1bit/profile.php?id=11</uri>
			</author>
			<updated>2017-02-14T05:51:21Z</updated>
			<id>http://randomflux.info/1bit/viewtopic.php?pid=1149#p1149</id>
		</entry>
</feed>
