plasmacarwash <creamtowney <at> yahoo.com> writes: > > Francisco, > However, I'm not advanced to run Python. I only know how to save an .ly > document from jEdit. > Will jEdit help me with Python? >
Save the file ran.py from Francisco's message. I saved it in the same folder where my Lilypond source files (.ly files) are saved. Open up a command shell (in windows, click on the start menu, then Run, then type cmd in the window that pops up. Use the cd command in the command shell to change to the directory containing ran.py. Then type ran.py > myfile.ly this will create a file named myfile.ly that contains a series of random notes. run Lilypond on myfile.ly (if you use Lilypondtool, you can open up myfile.ly, and press the Run Lilypond button). This will produce a new random PDF for you. You can also use Jedit to edit ran.py and change the characteristics of the random music it generates. You can change the number of notes in the piece by changing the 199 in "range(199)" to some other number. You can change the starting note by changing "c'4" to "c''4", or whatever other note you want, followed by a 4, to set it as a quarter note. You can change the range of your random notes by adding additional notes and/or removing some of the notes in the square brackets following random.choice. I hope this helps you to understand how to use ran.py to do what you want. And good luck learning the guitar. It's a lot of fun! Carl _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user