JMUSIC.Note History

Hide minor edits - Show changes to output

Changed lines 5-6 from:
A note is created via Note(''pitch'', ''rhythmValue''), where ''pitch'' is a [[jMusic pitch constant]], or an integer between 0 and 127 (a MIDI pitch value), or a real number such as 440.0 (a frequency in Hertz).
to:
A note is created via Note(''pitch'', ''rhythmValue''), where
* ''pitch'' is a [[jMusic pitch constant]], or an integer between 0 and 127 (a MIDI pitch value), or a real number such as 440.0 (a frequency in Hertz); and
* ''rhythmValue'' is a [[jMusic rhythm-value constant]], or a real number such as 0.25 (i.e., a quarter note).
Added lines 1-23:
!Note

The Note class is representative of notes in standard western music notation. It contains data relevant to music note information such as pitch and rhythm value. Notes get contained in [[Phrase]] objects. Like in traditional music notation (CPN) notes get played one after the other in the order in which they are added to the Phrase.

A note is created via Note(''pitch'', ''rhythmValue''), where ''pitch'' is a [[jMusic pitch constant]], or an integer between 0 and 127 (a MIDI pitch value), or a real number such as 440.0 (a frequency in Hertz).

Notes can be added to a phrase like this:

(:source lang=python tabwidth=3 -trim :)
phrase = Phrase(0.0) # create a phrase that starts at the beginning of the music
note = Note(C4, HN) # create a middle C note with 1/2 duration
phrase.addNote(note) # add this note to a phrase
(:sourcend:)

Rests can be defined like this:

(:source lang=python tabwidth=3 -trim :)
rest = Rest(HN) # create an 1/2 rest
phrase.addNote(rest) # add this rest to an existing phrase
(:sourcend:)

For more information, see the [[http://jmusic.ci.qut.edu.au/jmDocumentation/jm/music/data/Note.html | jMusic Note Java class]].