<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[ChipMusic.org - C64 SFX Sound Expander programming OPL 2]]></title>
	<link rel="self" href="https://chipmusic.org:80/forums/feed/atom/topic/4955/"/>
	<updated>2020-12-03T11:02:03Z</updated>
	<generator>PunBB</generator>
	<id>https://chipmusic.org/forums/topic/4955/c64-sfx-sound-expander-programming-opl-2/</id>
		<entry>
			<title type="html"><![CDATA[Re: C64 SFX Sound Expander programming OPL 2]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264514/#p264514"/>
			<content type="html"><![CDATA[<p><a class="postimg" href="http://www.xentax.com/taoc/fmyam.png" title="http://www.xentax.com/taoc/fmyam.png" id="forum_image_39605383"><img src="http://www.xentax.com/taoc/fmyam.png" /></a></p><p><a href="http://c64.xentax.com/index.php/fm-yam" target="_blank">http://c64.xentax.com/index.php/fm-yam</a> </p><p>You may have missed these. FM-YAM features the OPL2 (YM3812). 300 cartridges have been sold so far. </p><p><a href="http://c64.xentax.com/index.php/documentation" target="_blank">http://c64.xentax.com/index.php/documentation</a></p><p>A piece on the timing of programming the chip from the C64:<br /><a href="http://c64.xentax.com/index.php/15-testing-ym3812-register-write-timing" target="_blank">http://c64.xentax.com/index.php/15-test &#133; ite-timing</a></p><p>Review:<br /><a href="https://www.youtube.com/watch?v=Q32I0jk7THE" target="_blank">https://www.youtube.com/watch?v=Q32I0jk7THE</a></p><p>Examples:<br /><a href="https://www.youtube.com/watch?v=xP1JnE5aGb0" target="_blank">https://www.youtube.com/watch?v=xP1JnE5aGb0</a><br /><a href="https://www.youtube.com/watch?v=dTyGnh0IOtU" target="_blank">https://www.youtube.com/watch?v=dTyGnh0IOtU</a><br /><a href="https://www.youtube.com/watch?v=pmTTvUplLhI" target="_blank">https://www.youtube.com/watch?v=pmTTvUplLhI</a><br /><a href="https://www.youtube.com/watch?v=_nJgvcA5td4" target="_blank">https://www.youtube.com/watch?v=_nJgvcA5td4</a></p><p>You can use Edlib to compose music (DOS) and then play the D00 files on a C64. </p><br /><p>Check out also the combination of SID+MIDI+OPL2:<br /><a href="https://www.youtube.com/watch?v=nuA1gIKn5wg&amp;list=PLP26ZYnLb5EX_XZMC16RuaOAKjaxEzsxv&amp;index=2&amp;t=0s" target="_blank">https://www.youtube.com/watch?v=nuA1gIK &#133; 2&amp;t=0s</a></p>]]></content>
			<author>
				<name><![CDATA[Mr.Mouse]]></name>
				<uri>https://chipmusic.org/Mr.Mouse</uri>
			</author>
			<updated>2020-12-03T11:02:03Z</updated>
			<id>https://chipmusic.org/forums/post/264514/#p264514</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: C64 SFX Sound Expander programming OPL 2]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264207/#p264207"/>
			<content type="html"><![CDATA[<p>It would be cool to have some info on programming FM hardware on the C64 at <a href="https://codebase64.org/" target="_blank">https://codebase64.org/</a> if anyone feels like writing up something about that.</p>]]></content>
			<author>
				<name><![CDATA[frantic]]></name>
				<uri>https://chipmusic.org/frantic</uri>
			</author>
			<updated>2020-10-03T19:46:10Z</updated>
			<id>https://chipmusic.org/forums/post/264207/#p264207</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: C64 SFX Sound Expander programming OPL 2]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264201/#p264201"/>
			<content type="html"><![CDATA[<p>OK, mega necro bump here.<br />Announcing that after years of delays called real life, not one but two gadgets to drive the rare SFX Sound Expander have been produced!</p><p>First one features approx 100 sounds from the original C64 Software and some from PC Land, a DIN MIDI in and a 16 x 2 LCD.</p><p>Photos are here:</p><p><a href="https://github.com/sparx266/Commodore-64-SFX-Sound-Expander-Arduino-MIDI-V1/" target="_blank">https://github.com/sparx266/Commodore-6 &#133; o-MIDI-V1/</a></p><p>A video of the uncased prototype in action is here:</p><p><a href="https://www.youtube.com/watch?v=-odjSdDEEhQ" target="_blank">https://www.youtube.com/watch?v=-odjSdDEEhQ</a></p><p>Documentation and V1.5 to be released soon......</p>]]></content>
			<author>
				<name><![CDATA[spikes]]></name>
				<uri>https://chipmusic.org/spikes</uri>
			</author>
			<updated>2020-10-03T13:23:01Z</updated>
			<id>https://chipmusic.org/forums/post/264201/#p264201</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: C64 SFX Sound Expander programming OPL 2]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/246288/#p246288"/>
			<content type="html"><![CDATA[<p>Did you have to strip out any of the FM calls in the Bubble Bobble music?&nbsp; I noticed it <a href="https://www.youtube.com/watch?v=rvkmSNVA2dc" target="_blank">hits a lot of the registers</a> kinda randomly.&nbsp; (not as badly as Ikari Warriors though)</p>]]></content>
			<author>
				<name><![CDATA[4mat]]></name>
				<uri>https://chipmusic.org/4mat</uri>
			</author>
			<updated>2016-07-18T12:28:39Z</updated>
			<id>https://chipmusic.org/forums/post/246288/#p246288</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: C64 SFX Sound Expander programming OPL 2]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/246284/#p246284"/>
			<content type="html"><![CDATA[<p>I know this is an old thread , but I&#039;ve been working on a Dual sid + FM ( 3526 and 3812 )&nbsp; music driver for a while now. Should have something out there very soon. Also in the process of modifying the C64 version of Bubble Bobble to play the actual arcade music if you have both a Commodore 128 and the FM cart. I did find complete documentation for the FM chips and the writing/reading technique as used by you guys is correct.<br />Will keep you progress posted,<br />Gaz.</p>]]></content>
			<author>
				<name><![CDATA[Gazmoid]]></name>
				<uri>https://chipmusic.org/Gazmoid</uri>
			</author>
			<updated>2016-07-18T07:26:31Z</updated>
			<id>https://chipmusic.org/forums/post/246284/#p246284</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: C64 SFX Sound Expander programming OPL 2]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/216089/#p216089"/>
			<content type="html"><![CDATA[<p>An update!<br />After months of nothing, hooked up an Arduino to a C64 connector, picked an organ sound and wrote a very rubbish program to play the first lines of a well known tune.&nbsp; Have a look and listen at:</p><p><a href="https://www.youtube.com/watch?v=Qjtnvw6z-DY" target="_blank">Arduino plays an SFX Sound expander</a></p><p>I know its a bit basic, but its a start.<br />Feel free to comment, but please make them constructive!</p>]]></content>
			<author>
				<name><![CDATA[spikes]]></name>
				<uri>https://chipmusic.org/spikes</uri>
			</author>
			<updated>2014-08-26T20:36:18Z</updated>
			<id>https://chipmusic.org/forums/post/216089/#p216089</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: C64 SFX Sound Expander programming OPL 2]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/180084/#p180084"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>spikes wrote:</cite><blockquote><p>How did you get to the conclusion that there is no percussion mode?&nbsp; (I don&#039;t know, hence why I am asking!)</p></blockquote></div><p>I read it on the chip description in Hally&#039;s YM chips list, or maybe also Wikipedia. Also the creator of the AdLib player said so and, so far, that guy is the only person I know that has messed about properly with this chip on the C64 so I believe his words.</p><p>So unless you upgrade to OPL2 I don&#039;t think percussion mode will work. I can get your cart updated if you want! But please send me a message to my email, because I never check this website. ************</p>]]></content>
			<author>
				<name><![CDATA[akira^8GB]]></name>
				<uri>https://chipmusic.org/akira%5E8GB</uri>
			</author>
			<updated>2013-08-09T19:00:49Z</updated>
			<id>https://chipmusic.org/forums/post/180084/#p180084</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: C64 SFX Sound Expander programming OPL 2]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/178318/#p178318"/>
			<content type="html"><![CDATA[<p>I&#039;ve got tones coming out of it under assembler but not looked at a driver yet.</p>]]></content>
			<author>
				<name><![CDATA[4mat]]></name>
				<uri>https://chipmusic.org/4mat</uri>
			</author>
			<updated>2013-07-24T19:04:01Z</updated>
			<id>https://chipmusic.org/forums/post/178318/#p178318</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: C64 SFX Sound Expander programming OPL 2]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/178313/#p178313"/>
			<content type="html"><![CDATA[<p>OK here is my BASIC listing, taken from the same document Akira^8gb used.&nbsp; It makes a noise and that&#039;s it!</p><p>But just in case its useful to someone:</p><p>10 POKE 57152,32 <br />20 POKE 57168,1 <br />30 POKE 57152,64 <br />40 POKE 57168,16 <br />50 POKE 57152,96 <br />60 POKE 57168,240 <br />70 POKE 57152,128 <br />80 POKE 57168,119 <br />90 POKE 57152,160 <br />100 POKE 57168,152 <br />110 POKE 57152,35 <br />120 POKE 57168,1 <br />130 POKE 57152,67 <br />140 POKE 57168,0 <br />150 POKE 57152,99 <br />160 POKE 57168,240 <br />170 POKE 57152,131 <br />180 POKE 57168,119 <br />190 POKE 57152,176 <br />200 POKE 57168,49 </p><p>I&#039;ve just looked at the datasheets for both chips (YM3812 and YM3526),<br />3526 says: &quot;The mode selector enables switching between the sounding of all nine tones at one time, and of six melodies and five rhythms.&nbsp; In either case, the tones can&nbsp; (be) varied.&quot;<br />3812 says: &quot;Mode selection of simultaneous voicing of 9 sounds or 6 melody sounds and 5 rhythm sounds is possible.&nbsp; Both modes can produce various sounds.&quot;</p><p>How did you get to the conclusion that there is no percussion mode?&nbsp; (I don&#039;t know, hence why I am asking!)&nbsp; <br />What the 3526 lacks is waveforms.</p><p>Regards</p><p>Spikes</p>]]></content>
			<author>
				<name><![CDATA[spikes]]></name>
				<uri>https://chipmusic.org/spikes</uri>
			</author>
			<updated>2013-07-24T18:41:11Z</updated>
			<id>https://chipmusic.org/forums/post/178313/#p178313</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: C64 SFX Sound Expander programming OPL 2]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/177797/#p177797"/>
			<content type="html"><![CDATA[<p>Hello again all!</p><p>Real life got me side tracked with other things but haven&#039;t forgotten about this great cart and what I want to do with it, will try to dig out the couple of programs I wrote and post here.</p><p>Regards</p><p>Spikes</p>]]></content>
			<author>
				<name><![CDATA[spikes]]></name>
				<uri>https://chipmusic.org/spikes</uri>
			</author>
			<updated>2013-07-21T07:18:18Z</updated>
			<id>https://chipmusic.org/forums/post/177797/#p177797</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: C64 SFX Sound Expander programming OPL 2]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/173647/#p173647"/>
			<content type="html"><![CDATA[<p>Talking to myself here, sorry <img src="https://chipmusic.org/forums/img/smilies/tongue.png" width="15" height="15" alt="tongue" /><br />I did this test and while in the emulator the result is a smooth sweep of frequencies, in my machine, with both soundchips, it&#039;s skippy/garbly. I got to assume something is wrong with the device and not the soundchips, but I have no idea what.</p><p>When I try the DRO player I will know better, I guess. There might be a problem in my code and/or VICE emulation might not be exactly accurate (and the real device might be more delicate/flaky)</p>]]></content>
			<author>
				<name><![CDATA[akira^8GB]]></name>
				<uri>https://chipmusic.org/akira%5E8GB</uri>
			</author>
			<updated>2013-06-20T22:26:34Z</updated>
			<id>https://chipmusic.org/forums/post/173647/#p173647</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: C64 SFX Sound Expander programming OPL 2]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/173640/#p173640"/>
			<content type="html"><![CDATA[<p>So here is the little BASIC program I just did to test the unit slightly.</p><p><a class="postimg" href="http://i.imgur.com/Mmps1B2.png" title="http://i.imgur.com/Mmps1B2.png" id="forum_image_89632705"><img src="http://i.imgur.com/Mmps1B2.png" /></a></p><p>It&#039;s very simple: it pokes the Address port, which selects the register we&#039;re going to affect, and then it pokes the&nbsp; Data port, giving it a value for said register. It&#039;s really so simple that even I could figure it out <img src="https://chipmusic.org/forums/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>All data has been taken from this document:<br /><a href="http://www.floodgap.com/retrobits/ckb/secret/adlib.txt" target="_blank">http://www.floodgap.com/retrobits/ckb/secret/adlib.txt</a></p><p>Which explains how to make a note play if you scroll down. I just replaced that with a FOR sentence that does a little upward sweep.<br />I will expand on this to make it so I can test every voice with every waveform, but for tonight&#039;s experimentation it&#039;s more than enough and this is type-able enough for a quick test.</p>]]></content>
			<author>
				<name><![CDATA[akira^8GB]]></name>
				<uri>https://chipmusic.org/akira%5E8GB</uri>
			</author>
			<updated>2013-06-20T21:40:51Z</updated>
			<id>https://chipmusic.org/forums/post/173640/#p173640</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: C64 SFX Sound Expander programming OPL 2]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/173629/#p173629"/>
			<content type="html"><![CDATA[<p>Although that&#039;s not ideal, it sounds pretty sweet indeed. One would just need to figure out a way to compose both matching tempos and whatnot.. Would love to have a play with such a thing if you ever make it, and if you ever need the real hardware, I can lend it to you&nbsp; for dev purposes for sure <img src="https://chipmusic.org/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>The biggest chllenge for modifying SIDWizard would be the UI, I think.</p><p>I just upgraded my SFX with an OPL2 chip and will try to create some sort of BASIC program that lets me access it. I don&#039;t feel pretty confident that I will succeed as&nbsp; I have no idea of what I am doing <img src="https://chipmusic.org/forums/img/smilies/tongue.png" width="15" height="15" alt="tongue" /> But if I make it beep I should be happy.</p><p>Confirmed: YM3526 does NOT have percussion mode.</p>]]></content>
			<author>
				<name><![CDATA[akira^8GB]]></name>
				<uri>https://chipmusic.org/akira%5E8GB</uri>
			</author>
			<updated>2013-06-20T20:42:52Z</updated>
			<id>https://chipmusic.org/forums/post/173629/#p173629</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: C64 SFX Sound Expander programming OPL 2]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/173466/#p173466"/>
			<content type="html"><![CDATA[<p>that would be pretty sweet, that&#039;s kinda how i&#039;m making 3 x SID stuff at the moment. you make 2 separate files and play them together. its a slow process but the results sound great.</p>]]></content>
			<author>
				<name><![CDATA[Jellica]]></name>
				<uri>https://chipmusic.org/Jellica</uri>
			</author>
			<updated>2013-06-19T21:04:36Z</updated>
			<id>https://chipmusic.org/forums/post/173466/#p173466</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: C64 SFX Sound Expander programming OPL 2]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/173446/#p173446"/>
			<content type="html"><![CDATA[<p>From that adlib player, one might be able to hack together a SID+adlib player, though, for playing a precomposed adlib tuni in time with a SID song.</p>]]></content>
			<author>
				<name><![CDATA[boomlinde]]></name>
				<uri>https://chipmusic.org/boomlinde</uri>
			</author>
			<updated>2013-06-19T18:15:18Z</updated>
			<id>https://chipmusic.org/forums/post/173446/#p173446</id>
		</entry>
</feed>
