Page 11 of 14

Re: MMC1,2,3,4/Sunsoft-5B reproduction circuit boards. INL-R

Posted: Mon Feb 17, 2014 3:33 pm
by lidnariq
The thing is, once you start adding novel hardware—and yes, the YM2143 counts as novel hardware, even though it's similar to the VRC7—there's no reason to constrain what you add at all. Maybe it's a VRC7 clone ... that only outputs 50% duty square waves. Or maybe it's a VRC7 clone ... that actually is an OPL3. Or maybe it's a TV tuner that does its best to convert its input to the NES's constrained palette.

Once enough people have a hardware "just kidding, it's not actually a VRC7" you'd have to add support for it in emulators. (There was a fuss made when FamiTracker updated its VRC7 patchset to newer, more accurate values.) And once you've added support for an arbitrarily new peripheral that was never used before, you may as well have aimed for something a bit more sophisticated. It's not like any of the sound synthesizer ICs ever manufactured are available as anything but Working Pull and New Old Stock anymore.


Anyway, asking the internet, a person who goes by fadis_ on twitter wrote an FM library for the mbed (youtube). Looks like it's only fast enough for 16 operators ... but the VRC7 should only need 12.

Re: MMC1,2,3,4/Sunsoft-5B reproduction circuit boards. INL-R

Posted: Mon Feb 17, 2014 5:11 pm
by yogi
lidnariq wrote:The thing is, once you start adding novel hardware—and yes, the YM2143 counts as novel hardware, even though it's similar to the VRC7—there's no reason to constrain what you add at all. Maybe it's a VRC7 clone ... that only outputs 50% duty square waves. Or maybe it's a VRC7 clone ... that actually is an OPL3. Or maybe it's a TV tuner that does its best to convert its input to the NES's constrained palette.
Point taken. I do enjoy the 'retro' HW but I also embrace a modding POV. These are the same currents within the Atari 8bit community, so I can appreciate the resistance to innovation. But I truly feel that the OPLL isn't too strange from a HW point. If no one else ever does this hack that is fine with me.
But most people will never have access to a Lagrange Point cart and the best we can hoped for is a clone or PowerPak emu. Of my options this seems like a good compromise.
Once enough people have a hardware "just kidding, it's not actually a VRC7" you'd have to add support for it in emulators. (There was a fuss made when FamiTracker updated its VRC7 patchset to newer, more accurate values.) And once you've added support for an arbitrarily new peripheral that was never used before, you may as well have aimed for something a bit more sophisticated. It's not like any of the sound synthesizer ICs ever manufactured are available as anything but Working Pull and New Old Stock anymore.
Well, just seems to me that many of the commercially produced mappers fell into the "arbitrarily new peripheral that was never used before" catagory, back in the day.
True that a better, more advanced chip could be used, but where is the NES support for them (never mind that there are no 'new' synth/tone chips, just DACs and DSP). Would be starting from scratch; may be worth it in the long run. But with a YM hack there is already a lot of common ground. 'Similar' is fine for me ATM; I've plenty of long term projects (my MidiBoxFM needs some love).
Again if INL's V3 board can support a VRC7 mapper that can provide the necessary bus interface I would 'wire it up'. Sounds like a weekend project. But Hey if you know of a repo VRC7 board, point me to it :)
Anyway, asking the internet, a person who goes by fadis_ on twitter wrote an FM library for the mbed (youtube). Looks like it's only fast enough for 16 operators ... but the VRC7 should only need 12.
That interesting, will have to look closer at it. I've been eyeing this for awhile:
https://sites.google.com/site/preenfm/home
http://xhosxe.free.fr/PreenFM/PreenFMXavDemo.mp3
Looks/sounds tasty!
Yogi

Re: MMC1,2,3,4/Sunsoft-5B reproduction circuit boards. INL-R

Posted: Mon Feb 17, 2014 5:25 pm
by tepples
never mind that there are no 'new' synth/tone chips, just DACs and DSP
With DSP synths, there's still a problem of how wide to make the interface. A pure sampler like the Super NES DSP produces static, muffled sounds compared to an actual synth that provides variable-controlled filters, but if a synth is too flexible, the 6502 might find it hard to keep the synth fed with commands while running game logic and animating the graphics.

Re: MMC1,2,3,4/Sunsoft-5B reproduction circuit boards. INL-R

Posted: Mon Feb 17, 2014 7:07 pm
by yogi
tepples wrote:
never mind that there are no 'new' synth/tone chips, just DACs and DSP
With DSP synths, there's still a problem of how wide to make the interface. A pure sampler like the Super NES DSP produces static, muffled sounds compared to an actual synth that provides variable-controlled filters, but if a synth is too flexible, the 6502 might find it hard to keep the synth fed with commands while running game logic and animating the graphics.
Good point but I really didn't want to suggest such a mod. I feel that sample/wavetable based synths are only viable on 16bit and above platforms that have far greater resources. You really need a very high clock rate and/or wide data path to get a clean sound or else a dedicated co-processor to handle the bandwidth; so one would end up with a ARM synth that masquerades as a NES. For 8b systems, you really only have a choice of outdated PSG/FM chips; all of which are discontinued/obsolete.
As you point out with the SNES, using the SPC700 (which is at heart a 8bit platform) is prone to issues. The Amiga was ground breaking due to it's Paula and eclipsed Atari's ST which still used the AY-3-8910 (a holdover from the 8bit era).
The Adlib card (OPL 2 8bit ISA) was a low cost competitor to the Roland MT-35 tone hardware that was sample based. The only reason the Adlib/Sound Blaster cards survived into the 16b ISA gen, was an established user base. Chip based FM faded quickly as DSPs improved.
WOW, just had my dinner and debated flushing all the above, it's so off topic. But what the hey :)
I wants me some FM
Yogi

Re: MMC1,2,3,4/Sunsoft-5B reproduction circuit boards. INL-R

Posted: Mon Feb 17, 2014 7:35 pm
by lidnariq
yogi wrote:These are the same currents within the Atari 8bit community, so I can appreciate the resistance to innovation. But I truly feel that the OPLL isn't too strange from a HW point. If no one else ever does this hack that is fine with me.
It's not even resistance to innovation. It's that ideas are cheap: if every idea anyone ever thought of had been implemented in an emulator somewhere we'd have long since run out of space in the entire NES2.0 16-bit space.
Well, just seems to me that many of the commercially produced mappers fell into the "arbitrarily new peripheral that was never used before" catagory, back in the day.
So if you make a new game that uses it, go for it!
But most people will never have access to a Lagrange Point cart and the best we can hoped for is a clone or PowerPak emu. Of my options this seems like a good compromise.
Millions of people got famiclones that have a bug where the 1/4 and 1/2 duty cycles were swapped. It's definitively wrong, yet that's what they grew up with and expect. It'd be nice to not further exacerbate that.

I'm not even saying "don't add a YM2413 to a NES"; I'm just saying "don't take steps to allow people to self-delude into thinking the VRC7 is sufficiently similar to a YM2413". About half of the instruments are similar; the rest only sound similar in the sense that they both sound like FM synthesizers. (Bizhawk's source provides the current best guess (reverse engineered) lookup tables for both the YM2413 and VRC7. There are significant differences: immediately obvious to me are instruments 6, 13, and 15 with significant differences in their ADSR curves.)
Would be starting from scratch; may be worth it in the long run. But with a YM hack there is already a lot of common ground. 'Similar' is fine for me ATM; I've plenty of long term projects (my MidiBoxFM needs some love).
The other really huge advantage of using the YM3812 (or a clone) is we know exactly how it works. There's no mystery parameters that have to be reverse-engineered laboriously by switching back and forth between two things with hidden parameters.

Re: MMC1,2,3,4/Sunsoft-5B reproduction circuit boards. INL-R

Posted: Mon Feb 17, 2014 9:34 pm
by yogi
lidnariq wrote:
yogi wrote:These are the same currents within the Atari 8bit community, so I can appreciate the resistance to innovation. But I truly feel that the OPLL isn't too strange from a HW point. If no one else ever does this hack that is fine with me.
It's not even resistance to innovation. It's that ideas are cheap: if every idea anyone ever thought of had been implemented in an emulator somewhere we'd have long since run out of space in the entire NES2.0 16-bit space.

Well, where is a VRC7 repo ; I'd buy one ASAP. Waiting for a 100% recreation to be created, seems more pie in the sky then a hack to add a simular FM chip. I really don't want to make waves but every repo board takes liberties with the original designs. I understand your concerns but I dislike the idea that we need to suppress hacks and mods to preserve an emu standard. The authors of the emus will decide if they want to support an extension based on how popular it is; so if I'm the only one interested then I wouldn't expect anyone to support it, no sweat. I'm not demanding anything of anyone.
Well, just seems to me that many of the commercially produced mappers fell into the "arbitrarily new peripheral that was never used before" catagory, back in the day.
So if you make a new game that uses it, go for it!
Hum I guess I really touched a nerve, I apologize if this is the case. Was just trying to point out everything is new once.
More then once INL had posted that he is open to unique mappers and changes. If he has or will have a VRC7 mem mapper VHDL IP but lacks the on board/CPLD resources to include the FM, this could be a one off option that I would be interest in. Doesn't seem to need any change to the boards layout, but I could be wrong.
But most people will never have access to a Lagrange Point cart and the best we can hoped for is a clone or PowerPak emu. Of my options this seems like a good compromise.
Millions of people got famiclones that have a bug where the 1/4 and 1/2 duty cycles were swapped. It's definitively wrong, yet that's what they grew up with and expect. It'd be nice to not further exacerbate that.

I'm not even saying "don't add a YM2413 to a NES"; I'm just saying "don't take steps to allow people to self-delude into thinking the VRC7 is sufficiently similar to a YM2413". About half of the instruments are similar; the rest only sound similar in the sense that they both sound like FM synthesizers. (Bizhawk's source provides the current best guess (reverse engineered) lookup tables for both the YM2413 and VRC7. There are significant differences: immediately obvious to me are instruments 6, 13, and 15 with significant differences in their ADSR curves.)

Never said it's a direct replacement, only that it shares the same structure on a HW level so it would work to some degree with the existing tools and mapper. Even though there is support within FamiTracker for VRC7, few will be able to hear their compos on true HW. Nothing would change with that, but if they wanted to compose for a similar chip there could be an HW option.
This chip is well documented and the Yamaha pubs are on the net, so it's better known than the VRC7 FM. You must know this chip was used in the Sega Master Sys (JP release), the MSX computer as well as quite a few Yamaha keyboards. Maybe not the best there ever was but not a total unknown.
Would be starting from scratch; may be worth it in the long run. But with a YM hack there is already a lot of common ground. 'Similar' is fine for me ATM; I've plenty of long term projects (my MidiBoxFM needs some love).
The other really huge advantage of using the YM3812 (or a clone) is we know exactly how it works. There's no mystery parameters that have to be reverse-engineered laboriously by switching back and forth between two things with hidden parameters.

Well, the OPL2 is much harder to source, requires the specialized DAC (bi-polar power) and is far more complex to control. We are talking about a 6502, so I have doubts.
With the OPL2, you have just added the need for instrument patch storage in your rom along with the overhead of running the chip; it's far more complex than a PSG. It would be forever before we would see FamiTracker support the OPL2 and it's multiple settings, might as well come up with a Adlib Tracker fork that outputs NSFs.
The whole reason the OPLL was limited by design was to accommodate these simpler systems that have fewer resources.
But look, if someone has a better option I'm open to it. I know there are better chips but with them one needs a better system.
Yogi

Re: MMC1,2,3,4/Sunsoft-5B reproduction circuit boards. INL-R

Posted: Mon Feb 17, 2014 10:41 pm
by tepples
ROMs using just the 2A03 PSG already have to store duty, volume, and pitch envelope data for instruments. A table of FM parameters for a 2-op FM chip wouldn't be that much bigger.

Re: MMC1,2,3,4/Sunsoft-5B reproduction circuit boards. INL-R

Posted: Mon Feb 17, 2014 11:34 pm
by rainwarrior
Don't forget that besides the different patches, VRC7 is also only a subset of YM2413. If you really wanted Famitracker to support the YM2413 you should also add 3 more channels and the option to use the percussion mode. I still think if you're going to do this you should go with something better, like at least an OPL2.

Also, for what it's worth, there's a second reason you won't see a Lagrange Point repro besides the difficulty of reproducing the audio. The original cartridge is neither rare, nor particularly expensive. They sell regularly on eBay for less than US$40.

Re: MMC1,2,3,4/Sunsoft-5B reproduction circuit boards. INL-R

Posted: Tue Feb 18, 2014 12:12 am
by infiniteneslives
I appreciate the discussion on this subject everyone. I don't consider it off topic in the slightest since I had actually already had thoughts of incorporating a FM synth on this board. I can't say it's the highest priority on my project list, but it is indeed something I'd like to do with this design.

I'm really not that well versed in the history and variety of these chips, so I appreciate the mini history/tech lesson today. ;) By all means keep the discussion going!

My thoughts prior to today:
"hey I wonder if I can rig up a YM2413 on this board to operate similarly to the VRC7 with the known differences." Speaking of, is there a typo on the wiki? "YM2413 OPLL, which is itself a cost-reduced version of the YM3182 OPL2"

My goal of putting a FM synth on the board wouldn't be to make repros of a Japanese only game that was only partially translated, but never released. The japanese version is plenty available IMO. I'd guess I've got about a 70% chance of fitting all the logic required for a makeshift VRC-7 hack that'd play LP anyway. So it'd be directed for new material specifically composed to run on my board if there were ever to be such a person.

I actually went out and bought a copy of LP for any RE/testing needs for the interface and a couple YM2413 chips off ebay for a couple bucks. I haven't gotten much further than popping open the damn no screw famicom case to take a gander at the board and listen to the FM goodness on my FC.

Fast forward today, something like a year later:
We appear to have found at least one guy who'd like to compose something for such a board config.

I like the idea of not restricting a FM synth on the board to being similar to the VRC7. I had never actually considered the YM3812 (OPL2), the idea of being free to design the interface myself in which ever way makes it simplest in hardware requirements. The VRC7 method of interfacing with a YM2413 (OPLL) does seem a little cumbersome. But perhaps putting a DAC on a OPL2 is more of a pain.

While there are differences, they are very compatible in the operational sense. I'd imagine tracker/emu maintainers would rather get requests to add support for a variant of something that's already supported. Seems better than asking to support something completely homebrewed and lacks anything similar except a few boards I put together. But I'd guess there are more non-NES trackers that support the OPL2 compared to the OPLL. So if one had already decided to go with a non-NES tracker expecting to convert their tracks to the NES, perhaps there is more OPL2 tracker support.

The question is really boils down to in my position is what are people more likely to actually use. I'm not concerned with sheltering people from being deluded. That said, I think there's room for both options on this board. I'd love to offer both options, the more restrictive item for me at this point is development time. I had planned to start with the VRC I, and work my way up. I coded up the VRC I over a lunch break, the first test was a fail, and I haven't picked it up since. At this point I'm more motivated to put something together that has a planned user such as Yogi. I'll put the OPL2 down on the list as a fun project though. Perhaps it could be a good fit for the parallel-MMC1 design I have in mind which would fit on a 36Mcell CPLD. Having a good homebrew mapper to go hand-in-hand with the OPL2 would help motivate tracker/emu authors to support the mapper as a whole, and the sound extension could be optional.

The best sound option I see is utilizing a mcu as a synth, mainly for cost and availability reasons. That and the mcu could serve other non-sound purposes. But that requires even more development, but it is on the TODO list. ;) Creating an interface for an OPL vice the entire OPL is more reasonable for the nearer future and a good starting point.

yogi wrote: Well, the OPL2 is much harder to source, requires the specialized DAC (bi-polar power) and is far more complex to control.
How is the OPL2 harder to source? I'm just going by ebay, the seem equally available and equally priced.

Does it really require a specialized DAC and bi-polar power? While it does need a DAC, does it really need to be a special bi-polar one? I'm guessing you're saying the YM3014 is the most reasonable DAC for the OPL2?

Is the OPL2 really that much harder to control? Sure it has more registers and waveforms. But if you want to restrict your use of the OPL2 within the capabilities of the OPLL wouldn't the control be comparable? I guess the instruments can be utilized more so to keep things simpler to control.

IMO, a DAC of any sort not being needed with the YM2413 is pretty decent incentive alone. Admittedly, I'm not looking much past the end of my nose with that statement. ;)

In conclusion, my primary goal of all that perf area was for synth experimentation. I'm more than willing to provide bare boards to anyone who doesn't want to wait around for me to devote development time to this. So everyone is welcome to pick up their favorite synth choice and get to work!

Re: MMC1,2,3,4/Sunsoft-5B reproduction circuit boards. INL-R

Posted: Tue Feb 18, 2014 12:37 am
by yogi
tepples wrote:ROMs using just the 2A03 PSG already have to store duty, volume, and pitch envelope data for instruments. A table of FM parameters for a 2-op FM chip wouldn't be that much bigger.
Well from:
"Programming the AdLib/Sound Blaster"
http://bochs.sourceforge.net/techspec/adlib_sb.txt
The sound card possesses an array of two hundred forty-four registers....
Address Function
------- ----------------------------------------------------
01 Test LSI / Enable waveform control
02 Timer 1 data
03 Timer 2 data
04 Timer control flags
08 Speech synthesis mode / Keyboard split note select
20..35 Amp Mod / Vibrato / EG type / Key Scaling / Multiple
40..55 Key scaling level / Operator output level
60..75 Attack Rate / Decay Rate
80..95 Sustain Level / Release Rate
A0..A8 Frequency (low 8 bits)
B0..B8 Key On / Octave / Frequency (high 2 bits)
BD AM depth / Vibrato depth / Rhythm control
C0..C8 Feedback strength / Connection type
E0..F5 Wave Select
I think it's safe to say there is substantial overhead compared to a OPLL, in addition to the 2A03 apu.

@ rainwarrior
Yes kind of thinking the added channels are a plus but my main point is the fact that the YM shares the same register design with the VRC7 (or rather vise a versa) so some support already exists now.
Fitting any other chip would necessitate a far larger project IMO, not that it's impossible. For myself, a long term goal would be a Midi interface akin to Membler's boards (which I've already convo-ed with INL about not long ago).
Thanks for the heads up on LP carts, I'll look into them. Being a FC JP release only, discouraged me and like I had said earlier I have some YM2413s en-route for another project (really hoping they aren't junk/fake).
Yogi

Re: MMC1,2,3,4/Sunsoft-5B reproduction circuit boards. INL-R

Posted: Tue Feb 18, 2014 12:39 am
by lidnariq
yogi wrote:Hum I guess I really touched a nerve, I apologize if this is the case. Was just trying to point out everything is new once.
Sorry! One can't convey tone on the internet... That was supposed to have been enthusiasm. I would love to see more completed original projects! I would be tickled pink to see more completed original projects that used new mappers. I would be quite amused by a ROM hack of Somari to the VRC7 that reintroduced the Megadrive's music (although necessarily lightly remixed to accommodate the instrument changes and reduction in number of voices ).
This chip is well documented and the Yamaha pubs are on the net, so it's better known than the VRC7 FM. You must know this chip was used in the Sega Master Sys (JP release), the MSX computer as well as quite a few Yamaha keyboards. Maybe not the best there ever was but not a total unknown.
Sure, and if people want to write music that targets the YM2413, they can write VGMs that target the Mark 3. But if they're using MML or FamiTracker or whatnot, and they then go to play it back on a YM2413-containing cartridge instead of a VRC7, they'll be disappointed when the sounds are wrong.
With the OPL2, you have just added the need for instrument patch storage in your rom along with the overhead of running the chip; it's far more complex than a PSG.
The original Ad Lib card came out in 1987, for the IBM AT and clones. While the 286 had more memory and was faster than the 2A03, hard drives were still moderately uncommon, so a game that fit on a 360K floppy is still comparable to a 256 KiB NES game. Anyway, loading eight bytes per instrument instead of one isn't really appreciably harder. (It's really the exact same as programming instrument 0 on the OPLL, just once for every channel)
It would be forever before we would see FamiTracker support the OPL2 and it's multiple settings, might as well come up with a Adlib Tracker fork that outputs NSFs.
And why should FamiTracker support the OPLL instead? It's not like either was ever used during the FC's commercial life. If you want a general purpose retro softsynth, Deflemask and many other retro trackers are out there.
infiniteneslives wrote:Does it really require a specialized DAC and bi-polar power? While it does need a DAC, does it really need to be a special bi-polar one? I'm guessing you're saying the YM3014 is the most reasonable DAC for the OPL2?
The native bitstream out of the OPL2 is a funny 16 bit word made of 3 bits of padding, 10 bits of mantissa, and 3 bits (actually 2.8, "0" is forbidden) of exponent. Converting this to a 16 bit I²S, S/PDIF, or even AC'97 encoding should be rather straightforward.

Anyway, the YM3014 is unipolar, Vsupply and ground. Its output is centered around Vsupply/2, so either a highpass or an opamp to center things is desirable.

Re: MMC1,2,3,4/Sunsoft-5B reproduction circuit boards. INL-R

Posted: Tue Feb 18, 2014 12:47 am
by infiniteneslives
lidnariq wrote:Anyway, the YM3014 is unipolar, Vsupply and ground. Its output is centered around Vsupply/2, so either a highpass or an opamp to center things is desirable.
And costs nearly twice as much as the OPL2 itself based on the current ebay rates... :(

Re: MMC1,2,3,4/Sunsoft-5B reproduction circuit boards. INL-R

Posted: Tue Feb 18, 2014 5:05 am
by yogi
infiniteneslives wrote:I appreciate the discussion on this subject everyone. I don't consider it off topic in the slightest since I had actually already had thoughts of incorporating a FM synth on this board. I can't say it's the highest priority on my project list, but it is indeed something I'd like to do with this design.

I'm really not that well versed in the history and variety of these chips, so I appreciate the mini history/tech lesson today. ;) By all means keep the discussion going!

My thoughts prior to today:
"hey I wonder if I can rig up a YM2413 on this board to operate similarly to the VRC7 with the known differences." Speaking of, is there a typo on the wiki? "YM2413 OPLL, which is itself a cost-reduced version of the YM3182 OPL2"
Yes the OPLL is derived from the OPL2 but is reduced in scope. the VRC7 is a slightly reduced OPLL. I think the interface/register design are the same between the OPLL and the VRC7. At least from my read of the wiki.
My goal of putting a FM synth on the board wouldn't be to make repros of a Japanese only game that was only partially translated, but never released. The japanese version is plenty available IMO. I'd guess I've got about a 70% chance of fitting all the logic required for a makeshift VRC-7 hack that'd play LP anyway. So it'd be directed for new material specifically composed to run on my board if there were ever to be such a person.
I would be interested very much. Like I've said earlier, provided that there are data and control traces (I assume so for AY 3-8910 support) to the proto area it should be very workable with the YM2413, the need of the VRC 7 mapper is only to keep a slight compatibility with the tools that are in place.
I actually went out and bought a copy of LP for any RE/testing needs for the interface and a couple YM2413 chips off ebay for a couple bucks. I haven't gotten much further than popping open the damn no screw famicom case to take a gander at the board and listen to the FM goodness on my FC.

Fast forward today, something like a year later:
We appear to have found at least one guy who'd like to compose something for such a board config.
:)
I like the idea of not restricting a FM synth on the board to being similar to the VRC7. I had never actually considered the YM3812 (OPL2), the idea of being free to design the interface myself in which ever way makes it simplest in hardware requirements. The VRC7 method of interfacing with a YM2413 (OPLL) does seem a little cumbersome. But perhaps putting a DAC on a OPL2 is more of a pain.
An alternate chip could be the YM2612 as used in the Sega Gen/Megadrive. It has a similar bus interface to the OPL2 but has an integrated DAC.
http://en.wikipedia.org/wiki/Yamaha_YM2612
6 channels and like the OPL2 would need an increased amount of PRG rom for patches. The Sega/VGM homebrew community has some info on developing for it also.
While there are differences, they are very compatible in the operational sense. I'd imagine tracker/emu maintainers would rather get requests to add support for a variant of something that's already supported. Seems better than asking to support something completely homebrewed and lacks anything similar except a few boards I put together. But I'd guess there are more non-NES trackers that support the OPL2 compared to the OPLL. So if one had already decided to go with a non-NES tracker expecting to convert their tracks to the NES, perhaps there is more OPL2 tracker support.

The question is really boils down to in my position is what are people more likely to actually use. I'm not concerned with sheltering people from being deluded. That said, I think there's room for both options on this board. I'd love to offer both options, the more restrictive item for me at this point is development time. I had planned to start with the VRC I, and work my way up. I coded up the VRC I over a lunch break, the first test was a fail, and I haven't picked it up since. At this point I'm more motivated to put something together that has a planned user such as Yogi. I'll put the OPL2 down on the list as a fun project though. Perhaps it could be a good fit for the parallel-MMC1 design I have in mind which would fit on a 36Mcell CPLD. Having a good homebrew mapper to go hand-in-hand with the OPL2 would help motivate tracker/emu authors to support the mapper as a whole, and the sound extension could be optional.
Well I'm up for any and all. The advantage with the YM2413 is the relative NSF support in place for VRC7 that translate well. Both the OPL2 and the YM2612 (OPN2) offer emus that would aid with tool support. The OPL2 is the more complicated of these and the community is SoundBlaster centric, tool wise. So the transition to the reduced specs of the 6502 would restrict the effects that are common on dos trackers. This also applies to a lesser extent with the YM2612, but the Sega 16b platform is a bit closer to our goal so it may be a better fit.
The best sound option I see is utilizing a mcu as a synth, mainly for cost and availability reasons. That and the mcu could serve other non-sound purposes. But that requires even more development, but it is on the TODO list. ;) Creating an interface for an OPL vice the entire OPL is more reasonable for the nearer future and a good starting point.

yogi wrote: Well, the OPL2 is much harder to source, requires the specialized DAC (bi-polar power) and is far more complex to control.
How is the OPL2 harder to source? I'm just going by ebay, the seem equally available and equally priced.

Does it really require a specialized DAC and bi-polar power? While it does need a DAC, does it really need to be a special bi-polar one? I'm guessing you're saying the YM3014 is the most reasonable DAC for the OPL2?

Is the OPL2 really that much harder to control? Sure it has more registers and waveforms. But if you want to restrict your use of the OPL2 within the capabilities of the OPLL wouldn't the control be comparable? I guess the instruments can be utilized more so to keep things simpler to control.
As to Ebay, just took a quick look and you are correct. But the associated DAC, YM3014, may or may not be replaceable with a modern chip, just don't know. Seems to me the DAC for the OPL3 was a must have when I was sourcing parts for a MBFM.
Drawing from the MidiBoxFM OPL3 design, a bipolar opamp is used following the DAC. Can this be changed to unipolar, I'm sure, but at the expense of the audio likely. Just going by a proven design for the OPL3. R&D required here.
The complexity lies in the 244 registers compared to the far reduced set on the YM2413. The OPLL has a defined patch set as opposed to the OPL2 where every instrument needs to be loaded at runtime.
The YM2612 is also a complicated beast, but not as bad and offers more sonic options then the OPLL. Here is a example circuit from Wikipedia;
http://sue.niko.to/ps98/ym2612_sch.png
Plus there is at least one member 'here' that has a lot of first hand programming experience with the YM2612/VGMM (cough*Shuri*cough).
I could be underestimating the capabilities of the 6502 but the MidiBox runs the PIC18F at 10mips and it is at it's limit with servicing the OPL3, UI and Midi coms.
IMO, a DAC of any sort not being needed with the YM2413 is pretty decent incentive alone. Admittedly, I'm not looking much past the end of my nose with that statement. ;)

In conclusion, my primary goal of all that perf area was for synth experimentation. I'm more than willing to provide bare boards to anyone who doesn't want to wait around for me to devote development time to this. So everyone is welcome to pick up their favorite synth choice and get to work!
Well I'm on board. I know I have a OPL2 SB board in my bone yard as well as the YM2413s coming so will start off with some testing.
Yogi

Re: MMC1,2,3,4/Sunsoft-5B reproduction circuit boards. INL-R

Posted: Tue Feb 18, 2014 8:11 am
by rainwarrior
Instrument patches aren't really a significant burden on data size compared to pattern data. OPL2 wouldn't even create significantly more patch data, there's only about 1 more byte of data (extra waveform selection, and an output level control for the carrier). The 14 patches you get "for free" with the VRC7 are worth 112 bytes, if you're using all of them.

2A03 macros are much larger than VRC7 patches.

The cost difference between these chips isn't very significant when you're talking about a one-off. If you're going to make 50 of them it might start to matter, but we're not there yet. As lidnariq said, ideas are cheap. ;)


Anyhow, you clearly like the YM2413. If you wanna get started with this, NSFPlay has an option in the .ini file to use YM2413 patches instead of the VRC7's, no hacking required (the extra channels or percussion mode would require some minor modifications though). Famitracker is easy to modify if you have a version of Visual Studio with MFC (Express versions don't come with this).

However, it's a lot less extra work than you might think to modify Famitracker to do OPL2 instead of VRC7, and I think you could get a lot out of that freedom from the one-patch restriction. The reason I keep suggesting it is that this is already a custom job, why not squeeze some more power in there while you're at it? (This is just my friendly opinion, though; obviously I don't have a stake in this if I'm not doing any of the work.)

Re: MMC1,2,3,4/Sunsoft-5B reproduction circuit boards. INL-R

Posted: Tue Feb 18, 2014 8:12 am
by tepples
That and a lot of those registers will be loaded with the same values. For example, three voices playing a piano sound will all use the piano parameters.