Idea and code taken from Christopher Alcock's wonderful 'Procedural cycle of thirds ambient thing'. Which I have modified and mangled and slightly expanded to send MIDI
You will need a computer with a MIDI interface. The code only generates MIDI note on & off messages, so for sounds to be heard you'll also need a synthesizer (or several synths / MIDI sound sources) each set to receive on the relevant MIDI channels.