Hi Tiissa, Thanks for the reply.
I want to use it for music. So given list 1 (melody), list 2 (chords) could be generated by a Markov chain. Also, given the chords the melody could be generated again by a chain. I haven't had time to play around with your code and as I've only been studying python for about six months I don't quite understand what's going on. This might already do what I want, I just need to think in terms of notes and chords. Thanks, Malcolm -- http://mail.python.org/mailman/listinfo/python-list