PSP2Midi by Rob King (rob@e-mu.org) 2006
http://e-mu.org

This set of applications consists of two scripts that allow a Playstation Portable to be used as a wireless mouse (windows only) and MIDI controller.  

To run psp2midi you need a PSP (of course) running firmware 1.5, and a PC or Mac connected to the same network as your PSP.  The PC/Mac will act as the destination for the control data coming out of the PSP and convert it to midi or mouse movements.  The MIDI can either be used to control an external device using a midi out port or a computer program using a midi loopback driver such as MidiYoke ( http://www.midiox.com/myoke.htm ) or the Mac IAC MIDI driver.

Prerequisites:
	PSP:
		Firmware 1.5
		LuaPlayer 1.6+ ( http://www.luaplayer.org/ )
	Destination Computer:
		Python 2.3+  (windows only) ( http://python.org/ )
		PyPortmidi ( http://alumni.media.mit.edu/~harrison/code.html )	
		wxPython ( http://www.wxpython.org )
		pyWin32 (windows only)  ( http://sourceforge.net/project/showfiles.php?group_id=78018 )
		
		
Installation:
	1. Copy the psp2midi directory to your luaplayer Applications directory (usually /PSP/GAME/luaplayer/Applications)
	2. Edit the first line of INDEX.LUA in the directory you just copied to be the IP Address of your destination computer
	3. Copy psp2midi.py to a directory on your computer

Running psp2midi:
	1. From the command line go to the directory you copied psp2midi.py to and run "python psp2midi.py" (without the quotes) 
	2. On your PSP run luaplayer and in luaplayer run psp2midi
	3. Choose the internet connection that your computer is connected to.
	
Using psp2midi:

psp2midi has three different modes (2 in non-windows operating systems):  Note mode, Chord mode, and Mouse mode.  When you start psp2midi it will be in chord mode.  Pressing select and the left or right trigger buttons at the same time allows you to cycle between modes (note: in this version there is not yet an indication of which mode you are in, sorry!).  

Chord Mode:
	In chord mode you use the analog pad to select the base note of a chord.  The directional buttons allow you to chose the type of chord you are playing and the x/o/triangle/square buttons play notes in that chord.
	Controls:
		Chord types:
		Up 					= Major
		Down    			= Minor
		Left				= Diminished
		Right				= Augmented
		Up+Left				= majb5
		Up+Right			= 7
		Down+Left			= Sustained 4th
		Down+Right			= Sustained 2nd
		
		Other:
		Analog Pad 			= Select base Note
		x/o/triangle/square	= Play Notes
		Left Trigger		= Lower an octave
		Right Trigger		= Raise an octave
		
		Select+Left 		= Decrease Channel
		Select+Right		= Increase Channel
		
		Select+RightTrigger	= Switch to Note Mode
		Select+LeftTrigger	= Switch to Mouse Mode (Note mode on non windows systems)
		
Note Mode:
		Controls:
		Chord types:
		Up/Down/Left/Right 	= Play notes
		x/o/triangle/square	= Play Notes
		Analog Pad 			= Select base Note
		Left Trigger		= Lower an octave
		Right Trigger		= Raise an octave
		
		Select+Left 		= Decrease Channel
		Select+Right		= Increase Channel
		
		Select+RightTrigger	= Switch to Mouse Mode (Note mode on non windows systems)
		Select+LeftTrigger	= Switch to Chord Mode 
		
Mouse Mode:
	In mouse mode the analog pad serves to control the mouse on your host computer.  X simulates a left click and O simulates a right click


		

If you use this program in an interesting way I would love to hear about it.  Feel free to email me at rob@e-mu.org .  Enjoy!

wlanconfig.lua by curtself@gmail.com