Sequences in list

2005-05-02 Thread temp
Hi All, I wonder could someone help me with this? What I want to do is search through a list of letters and look for adjacent groups of letters that form sequences, not in the usual way of matching say abc to another appearance later on in the list but to look for transposed patterns. The groups

Re: Sequences in list

2005-05-03 Thread temp
Hi Michael, Thanks for a quick response, I appreciate it. I will have to get back to you tomorrow, as I can't check what you've given me right now. I presume the fact that you mention the word note in your code you have realised that I'm trying to search for musical sequences. I tried to put my pr

Re: Sequences in list

2005-05-04 Thread temp
Iâve had chance to look at your code. I had an idea that I the answer to my problem some how involved breaking down the list into groups and that the notes would be easier to work with as numbers. However, I think your âmake_diffsâ function is really a very cunning way to go about things ï I would

Markov chain with extras?

2005-05-16 Thread temp
Hi All, Could someone show me how to do this? I want to generate a list using a Markov chain, however, as well as using the previous two items in the list to decide the current choice I want the decision to be also dependant on an item at the current position in another list. I hope this explain

Re: Markov chain with extras?

2005-05-17 Thread temp
Hi, I think is more easy explained as two linked markov chains. So given one list the other can be generated. Thanks, Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: Markov chain with extras?

2005-05-18 Thread temp
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 pyth

Re: Markov chain with extras?

2005-05-19 Thread temp
Hi Gentlemen, First off, thanks for the work/time you've put into this - much appreciated! Let me play around with the code and I'll get back to you tomorrow. Malcolm -- http://mail.python.org/mailman/listinfo/python-list