double post

Cool- ill try that.

This is so rad.  Great work.    Mine works great, tho i do have some trouble switching between patches.    First one loads fine, but then it seems to get stuck on that one and doesnt want to load new instruments.  Ive just been manually resetting the arduino everytime i try a new sound.    pretty good chance that this is user error.

You could send/read once per 1/4 note by dividing the time by 24.    whole notes by 96.... etc.   It would work but gets  less precise with fewer messages/longer time intervals.   if the Aboy misses a tick, it starts to screw with the sync times.

Arduinoboy MidiOut send MIDI Stop and Start commands when a song is started/stopped, but the GB's processor is too busy to send to midi sync ticks at 24ppqn.
here is my  workaround using an additional arduino w/ the appropriate Midi IN and OUT circuitry.

https://github.com/miotislucifugis/CC-t … clock-sync

One channel will have to be sacrificed and entirely filled (each step, of each phrase, for the entire song) with a X ?? command. (As-is, the sketch is looking for Ch 5, CC#127, val 15.  Change these to match your Aboy editor settings)   

  This device reads the command, counts the time in between, divides it by 6 (24ppqn 1/4...so, 1/16= 6ppqn.)     It then send 0xF8 midi clock messages at this interval until the midiStop message and CC messages end.   

enjoy

Ahh!   that is actually pretty cool

my device reads a cc and value every LSDJ step (1/16, right?)  counts the time, divides it by 6 and returns 24 sync ticks per 1/4 note.   After i got the rogue stop commands sorted by changing the bit rate delay, it seems to be working really well. Granted, my songs are pretty simple and Im using one channel just for the clock cc's.   It may get bogged down and glitchy if one were using it with some complicated tracks w/ elaborate tables.  Mine ran all evening and seemed to stay in sync (audibly at least).    The sketch is pretty simple... pretty sure it could easily be rolled into the Aboy code, but im not sure where to start.
Ill post the code as soon as I can figure out how to use Github (!!i know)   in the meantime, if anyone really wants to check it out,  you can PM me w/ you email and I'll send an attachment.



One weird thing that i noticed while working on this,   whenever i sent a CC value of FF in LSDJ   (seemed like any CC on any Channel)  arduinoboy would return 0xF8 - midi clock and no cc command.   Not sure what is going on here, but it was totally messing me up for a bit.   happened with both the new and previous versions of Aboy and their respective LSDj releases.

I wont tell my arduinoboy

Ahh ... solved it!   Raising the bit rate delay from 80 to 100 in the editor cured this and some other glitchy issues.    thanks anyway.

42

(18 replies, posted in Nintendo Handhelds)

bingo.   that one must have gone up just moments after i downloaded the original.

thanks

43

(18 replies, posted in Nintendo Handhelds)

Very cool.   I loaded the new versions last weekend. 

Anyone else having trouble connection to the editor?     It seems to send info, but never really "connects' and doesnt load the current setting.   I have to enter all the channels, cc #'s   etc each time ....always displays default.   using a Mac and MOTU ultralite MK3  interface.   previous versions worked perfectly.

Ive been using LSDJ MidiOut for a bit but the lack of clock sync left me wanting ... so I made an arduino device to add Midi clock sync to the signal stream coming from LSDj/ arduinoboy.     After snooping around a bit with midi monitor, i found that the arduinoboy sends both MIDI Start and Stop when the track is started and stopped, respectively.    Very cool.   I just need to send a specific MIDI CC# and value each step... my arduino device reads them and counts the time, divides it by 6 (for getting 24 ticks per 1/4note)   and spits out MIDI clock commands at that interval.

Pretty simple and works great (ill post the details soon,)  however.....
...... the LSDJ and/or Arduinoboy refuse to behave.    Mysteriously, at any time (= irregular intervals) LSDJ/ Aboy send an errant  MIDI Stop command that that totally cramps my style- shutting down anything listening for that command; sequencer, loop pedal, etc.     Sometime it will play for minutes w/o stopping... other times only seconds.  seems pretty unpredictable.   I tried both the previous versions of LSDJ/ Arduinoboy (4.7.3 + Aboy 1.2.3)  and the new version (4.8.8 + 1.3.0.)   I also tried different Gameboys;, DMGs and a pocket, with no change.   Seems to happen more when I am playing a whole "song"   (all 4 channels) and less when I am playing a specific chain or phrase (1 channel).    ???

Anyone know what is going on here and how to stop it ?

Im a big fan of the EHX  deluxe memory boy.    Tap tempo is vital (for me)   and allows for some easy mods using an arduino to read midi clock and send out 'tap' pulses so all is perfectly synced.

I just built this out on breadboard using a pro mini and can confirm that  both garvalf's edit and masl's midi version work w/ non-uno hardware.   The orignal sketch by Yukio Ishii would not compile. 

still havent figured out how to change the sound or load different patches.   the midi version doesnt seem to reposnd to any cc messages i send.  Can it have multiple presets?   doesnt respond   to program changes

this is an awesome project and hope to see it grow into a 'proper' synth : pitchbend, velocity, aftertouch, etc

Great work.

in addition to V reg (wont need that tho' if you tap the GB's 5v) ,  you WILL need the crystal/ resonator circuit.  While, you could build it all point to point on a socket or something; Id suggest one of these:

Arduino pro mini.  All in one  postage stamp - sized  package  (well maybe 2 stamps)
http://www.ebay.com/itm/Pro-Mini-Enhanc … SwT6pV5YIu

So tiny-   and flat.   will be much easier to fit inside somewhere in the GB and will save you lots of wiring, debugging headache.

you can find them from US sellers for almost as cheap.   youll also need a ftdi to usb programmer.     Last time i ordered a bunch of Pro mini's, a programmer was included as a bonus.     like 18$ (shipped)  for 5 of them.            (you can also use a UNO to program in , but it is kinda a pain)

Why do we put up with such old limited hardware?!