[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: need to generate mass quantities of random notes for practice

From: Carl Sorensen
Subject: Re: need to generate mass quantities of random notes for practice
Date: Sun, 3 Jun 2007 03:45:49 +0000 (UTC)
User-agent: Loom/3.14 (

plasmacarwash <creamtowney <at>> 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 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

Then type >

this will create a file named that contains a series of random notes.

run Lilypond on (if you use Lilypondtool, you can open up,
and press the Run Lilypond button).  This will produce a new random PDF for you.

You can also use Jedit to edit 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 to do what you want.

And good luck learning the guitar.  It's a lot of fun!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]