Offline
France Eure Et Loire

Hello,

I bought an arduinoboy lite which work with a special fork of arduinoboy code here : https://github.com/ramstorm/ab-midiout-lite

I don't received it yet but I have original arduinoboy (with this code : https://github.com/trash80/Arduinoboy) and i'm trying a few things for working with genMDM (which can control sega genesis with midi CC and midi notes).

The code version for arduinoboy lite is very interesting specialy for me the ability to have velocity (because on genMDM if you don't use velocities channel 1 fm synthesis become fast too loud compare to other channels. Same for PU channels vs WAVS channel).

In original arduinoboy code you have these lines :

1,2,3,7,10,11,12, //pu1: midiOutCCMessageNumbers - CC numbers for lsdj midi out, if CCMode is 1, all 7 ccs are used per channel at the cost of a limited resolution of 0-F
  1,2,3,7,10,11,12, //pu2
  1,2,3,7,10,11,12,, //wav
  1,2,3,7,10,11,12, //noi

With that you have the possibilities to have 7 CC numbers per channels. So for control genMDM I did that for now :

18,16,20,14,51,92,22, //pu1: midiOutCCMessageNumbers - CC numbers for lsdj midi out, if CCMode is 1, all 7 ccs are used per channel at the cost of a limited resolution of 0-F
  1,2,3,7,10,11,12, //pu2
  78,89,86,88,100,101,111, //wav
  1,2,3,7,10,11,12, //noi

Which works good. But on the arduinoboy lite code, with velocity, there is only this line :

byte midiCcNumbers[7] = {1, 2, 3, 7, 10, 11, 12};

So how I can change CC for pu1 and wav which are not the sames? I also tryed to copy past the velocity code and add it to original arduinoboy code but it didn't work.

Offline

Hey MazHoot,

I created a fork of ab-midiout-lite which uses a 2d array for midiCcNumbers, so distinct values can be used per each channel.
You can check it out here: https://github.com/samuelbruce/ab-midio … PerChannel

I haven't tested it beyond compiling in the Arduino IDE, but it ought to do what you are asking.

Offline
France Eure Et Loire

Oh, thank you very much it's nice!

I will test it in a few moment!

Offline
France Eure Et Loire

I tryed it and I have this error :

ab-midiout-lite:13:10: fatal error: MIDI.h: No such file or directory
#include <MIDI.h>
          ^~~~~~~~
compilation terminated.
exit status 1
MIDI.h: No such file or directory

I tryed to upload it in my standard arduinoboy (I don't have yet arduinoboy lite from catskull electronics). But normally it should work no?

EDIT : I fixed it I just forgot to install needed libraries

Last edited by MazHoot (Aug 11, 2020 1:12 pm)

Offline
Sea of Souls

Nice work, Knife Crimes. This could be very useful.
Update us when you are able to test it, MazHoot.

Offline
France Eure Et Loire

Hello Orgia Mode

I tested it and it works great! My config channels are 1,9,6,10

At first I had weird problems while using velocity but I think it was because of my gameboy link cable. At the end and after several tests it worked good.