After messing with this in its relatively complete form for a bit, here are some thoughts / findings / helpful things:
Some helpful YM2612 info:
https://www.smspower.org/maxim/Documents/YM2612#regb4
https://2xaa.github.io/genmdm-editor/
-MIDI channel switcher knob needs to be wired up with +5V on the center pole and the resistors / LEDs to GND. When the pins are not selected, the resistors act as pull downs, so that stuff actually needs to be hooked up for it to work (I didnât realize this at first.) I wired this up with 1-6 and ALL, which required me to use digital pin 13. I have heard of issues using this pin, but I think they are all related to using it with INPUT_PULLUP, which we donât have to use here. Seems to work fine.
-Algorithm switch and any other buttons / switches should be hooked up to GND and have the pin to the mux or arduino floating. I ended up having a bad multiplexer which caused the confusion in my previous post.
-I found that passing the MIDI notes from the poly arduino through the RX of the CC arduino actually doesnât work too well. Even if I have something playing a fast arp directly into the CC arduino, it will start dropping notes if I also adjust the knobs while itâs playing. In that case, I guess the âcorrectâ approach would be to somehow merge the output of the 2 arduinos before sending it to the OUT jack. Is that what the original THRU circuit does? I wasnât sure where that schematic came from and didnât really understand it.
-I did switches for LFO enable and Amplitude Mod enable. If you want to implement switches, you can add a new boolean property on the Button object and some logic to make the CC return to zero when the switch is opened (donât want to do this for load/save instrument and algorithm CCâs, as LMNC found out.)
-SSG-EG (might want to rename this on the schematics) - there are some pictures in the RYM2612 manual / genMDM editor of the various modes, but they donât really seem to match up, or itâs not really clear in which order the modes are applied, which register / CC values match up to which waveforms, etc.
-I want to experiment with CH3 special and DAC mode. It looks like DAC mode has a means of receiving âdirect dataâ on CC79. Has anyone messed with this? Does that mean you can âstreamâ 8 bit samples into the DAC over MIDI?
EDIT: also, does the behavior of velocity with this synthcart seem weird to anyone else? It seems to be very quiet for the normal range of key pressures, and then go off a cliff with loudness. Iâve just been sending all the notes as velocity 127 because otherwise it seems very unpredictable. It doesnât really seem possible to get a smooth increase in intensity (at least with the default instrument?)