A Note is a small object which has a {@link NoteHeader} and also {@link NoteContent}. The header identifies the note and records important information such as the time stamp (representing the time the note was posted), author etc. The note content holds information specific to the note (which may be optional) such as a subject, body etc.
Title: Note
Description: Reprensents a musical note
Copyright: Copyright (c) 2007
Company:
@author John Valentino II @version 1.0Phrase phrase = new Phrase(0.0); Note note = new Note(C4, CROTCHET, MF); phrase.addNote(note);The note also has the option to create notes with reasonable default values. This allows a user who is not interested in any performance details to work with notes solely using pitch value and rythmValue like this....
Note note = new Note(C4, CROTCHET);The final option for building a note also includes the dynamic parameter for minimal performace information.
Note note = new Note(C4, CROTCHET, F);Comments about the offset parameter: The intention of offset was to allow for 'feel' in score playback. For example, a snare drum might be played slightly ahead or behind the beat, or a sound with a slow attack might need to be triggered early in order to sound in time with other parts. With this in mind, offset should have no influence on rhythmValue or duration calculations within the jMusic data structure, only when translated to another format (eg MIDI). In your example (offset 0.1, duration 0.8, and rv 1.0) the rendering (MIDI or other that does not support the offset concept) should consider the start time of the note 0.1 bpm later than 'normal' but the duration of the note will be 0.8 bpm from that offset start time. The next note should start 1.0 bpm after the 'normal' startTime (ignoring offset). This allows for offset to be used in cases where performance of music varies from beat to beat, eg., the downbeat is anticipated slightly. In extreme cases this could cause overlapping notes in MIDI translation which need to be 'handled' but we consider this a weakness of the MIDI data specification rather than a problem for jMusic : ) In short, think of offset as "A displacement from the normal start time of a note that allows performance interpretation without distorting the score for compositional or analysis purposes." --------------- @author Andrew Sorensen @version 1.0, Sun Feb 25 18:43:31 2001 @see Phrase
Note
class features simple getters and setters for its data.
|
|
|
|
|
|
|
|
|
|