Offline
▐▐▌▌▐▌▌█▐ ▐▐▌▌▐▌▌█▐ ▐▐▌▌▐▌▌█▐

*note*
this tutorial is mirrored on my blog
http://the.fontvir.us/b10g/?id=126
you can click on photos for higher resolution versions.


so, making music for LSDJ is fun. but after a while you start to wish you could "play" the gameboy software as a musical instrument as opposed to composing music in its tracker style interface. that's where the LSDJ keyboard comes in. the idea is, the keyboard sends messages though the gameboy linkport to LSDJ. the commands that can be sent vary from playing/stopping notes or chains or tables, un/muting channels, in/decreasing octives, switching instruments, navigating the LSDJ screens, and more.
here's what the LSDJ wiki says about the keyboard.

things we'll need for the mod:
mini-din / ps2 keyboard
gameboy link cable
soldering iron
solder
flux
wire stripper
screw drivers
heat-srink tubling / electrical tape

finding the right gameboy link cable:
there are a few diffrent types of gameboy link cables, in the most general of sences there are "classic" gameboy cables and gameboy "advance" cables. obviously we will need a classic cable. for this mod to work we will need to power the keyboard, so you'll need a powered gameboy link cable. you can cut off the cable end from a gameboy 4-player link adapter (model# DMG-07), like i did, or you can use the correct powered cable. otherwise you will need to add a +5v external power source. nonfinite sells both powered link cables and 4 player adapters at his shop nonelectronics.com.


the first thing you need is an old keyboard. for this mod you need a mini-din, aka a ps2 (not playstation 2), keyboard. i used an old hp ibm keyboard i pulled out of a dumbster at work. step one is testing it. plug it into you computer, open a text editor, and press all the keys. try tapping them very fast and see how often they actually fire. the responsiveness of the keys in this setting will be realitive to their sensitivity in LSDJ.


step two is popping off all the keys. use a flat head screw driver and stick it in the ridge beside the key then push the screw driver up like a lever. the key should just pop right off. repeat this process for all the normal keys. when you get to the spacebar and some of the other odd shaped keys, like enter, you might find springs or metal wires pressing two points to the keyboard. try and take note of their posisoning, because you will need to put them back that way.


now you should have a piles of keys and a bare keyboard. throw all the keys in a bag, so you don't loose any, and flip the keyboard over. step three is unscrewing the keyboard, prying open and removing it's plasic covering.


carefully keep taking the keyboard apart. every model is slightly different, so pay attention so you can reassemble it. eventually you will see a small silicon daughter board with the cable attached. step four is removing the daughter board. unscrew the board from the inards of the keyboard and set it somewhere safe, like in an anti-static bag.


now that you have all the plastic removed, seperate all the diffrent parts and note how they were oriented in the casing.


step five is cleaning everything up. i just used air duster and some glass cleaner on a paper towel. clean out all the little dirty recesses between and in the keys. if your keyboard is old like mine was, this step can take a while ;D


some of the plasic circuits can get a little dirty or folded, clean them as well and make sure they will align correctly when you put everything back. if you have never taken apart a keyboard before, it's very interesting...


now take a look at the daughter board from the keyboard. if your lucky, like i was, each of the wires leading to the cables from the board will be labled. if they are not labled, your going to have to cut the end of the mini-din connector off and look at what color wire attaches to which pin number.


step six is painting they keyboard. this step is optional. i used regular spray paint on the exterior plastic casings. i painted it all one coat of green, then splattered it slightly with a darker green. for the keys i wanted to make sure they had a less tacky feel, so i painted them with paint-markers. you can get them at an art/craft store or at some office supply stores, i like the "painters" brand. i painted the piano keys white and black and the LSDJ interface keys i painted green.


step seven is preping your tools for soldering. clean your soldering iron with some steel wool, set it to medium/low heat. you'll need flux, wire strippes, and somthing to wrap your wiring with. you can use heat-scrink tubing, electrical, or duct-tape. step eight is cutting the wires from both your gameboy link cable and the keyboard. then peel apart each of the wires and strip about 1/8" off each wire. use an xacto knife to peel back the cable shielding.


step nine is reviewing the wiring diagram. click here to download it. you will be connecting data, clock, power, and ground wires from both the keyboard and the gameboy link cable.


step ten is soldering the wires. wrap the wires from each cable together and dip them in flux. then add a tiny dab of solder from your iron to connect them. after all your wires are attached, wrap each of them individually, then wrap the entire bundle of wires.


using the keyboard
step one is actually syncing the keyboard to LSDJ. insert the link cable you hacked onto the keyboard into the gameboy and load LSDJ. press SELECT+UP and go to the PROJECT screen. move the cursor down to the SYNC dialog, and press A+RIGHT until you selection is KEYBD. notice just to the right of PURGE SEQUENCER an integer prefixed by an "I" appears. if nothing is synced to LSDJ/the gameboy this will display I00. once a device is successfully synced, this will be a larger integer (e.g. I01, I02). my keyboard oddly enought syncs as I06.


making some noise
to get some sounds to play when pressing keys on the keyboard, the sequencer must already be running. (press START) the notes you play will be played back on the next step in the phrase sequencer. if you need to get faster responce timings, use a faster groove for the phrase you are playing.


an important feature of LSDJ, that is easly overlooked, is when the sequencer is running the notes and instruments playing for each channel are displayed on the top right of the SONG screen. this can help a lot when your playing around and press the octave or instrument buttons up and down a bunch of times looking for something, and you get lost in the menus. this brings me to the one negative about the LSDJ keyboard interface. every once in a while the instrument your playing will jump up or down like ten positions. i think the problem is related to pressing multiple keys too rapidly. i am not the only person to report this problem. technically the gameboy's z80i sound chip is playing each channel one note at a time in such a rapid succession it "tricks" the ear into thinking it's hearing them simultaniously. that's just how gameboy music works. and i think smashing keys on the keyboard can sometimes send multiple input messages per cycle in LSDJ and glitches it, but that diagnosis is purely conjecture. and that random issue happens so rarely it's not a big deal. the interface is not perfect, but it's an easy mod, hacky, fun, and adds a new twist to LSDJ.


key mapping
SPACE play using custom table
F1/F2 octave down/up
F3/F4 instrument down/up
F5/F6 select custom table to assign to SPACE
F8 change pulse instrument playback channels (PU1, PU2, PU1+2)
F9-F12 toggle channel mute (switches on key press)
CTRL + (F9-F12) tap channel mute (switches on key press and release)

demo video

Offline

nice post!
really helped me a lot!
especially the pin diagram is pretty.
I guess 1 = 5V , 3 = CLK , 5 = GRND and 6 = DATA on the Link cable...right?!