Bill Manaris : JMUSIC / Phrase

Phrase

The Phrase class is representative of a single musical phrase. Phrases are held in Parts and can be played at any time based on their start times. They may be played sequentially or in parallel. Phrases can be added to an Part like this:

inst = Part("Flute")    # create a new part   

# Phrase for the right hand
rightHand = Phrase(0.0) # start this phrase on the first beat

# Phrase for the left hand
leftHane = Phrase(4.0)  # start this phrase on the fifth beat

inst.addPhrase(rightHand)
inst.addPhrase(leftHand)
 

For more information, see the jMusic Phrase Java class.

(Printable View of http://www.cs.cofc.edu/~manaris/?n=JMUSIC.Phrase)