Class NoteInfo

java.lang.Object
  |
  +--NoteInfo

public class NoteInfo
extends java.lang.Object

An instance of this class contains information on one note or rest.


Field Summary
 boolean fermata
           
 int flats
           
 boolean isTied
           
 int key
          An integer telling the number of fixed accidentals notated - A negative number means flats, and a positive sharps.
 int md_lineNumber
           
 int md_part
           
 int name
          C=0, D=1, E=2, F=3, G=4, A=5, B=6, -1 is a rest
static int[] NATURAL_SCALE
           
 int noteNumberInPhrase
           
 int octave
          The octave is represented as an integer (0..8), -1 is a rest.
 int sharps
           
 double starttime
           
 jm.music.data.Note theNote
           
 jm.music.data.Part thePart
           
 jm.music.data.Phrase thePhrase
           
 int tiedToTrackNumber
           
 int timeSigLower
           
 int timeSigUpper
           
 
Constructor Summary
NoteInfo(int md_prt, jm.music.data.Part dummy, int md_name, int md_octave, int md_sharps, int md_flats, double md_rhythmVal, double md_starttime, int md_key, int md_timeSigUp, int md_timeSigLow, boolean md_isTied, int md_tiedToTrackNumber, boolean fermat, int md_line)
          Constructs a NoteInfo object from MuseData information.
NoteInfo(jm.music.data.Part p, jm.music.data.Phrase f, jm.music.data.Note n, int notenum, double start)
          Constructs a NoteInfo object from MIDI information
 
Method Summary
 java.lang.Object clone()
           
 boolean diatonicAbsolutePitchEquals(NoteInfo other)
           
 double endTime()
           
 boolean hasMusedata()
           
 boolean isNote()
           
 boolean isRest()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

thePart

public jm.music.data.Part thePart

thePhrase

public jm.music.data.Phrase thePhrase

theNote

public jm.music.data.Note theNote

noteNumberInPhrase

public int noteNumberInPhrase

starttime

public double starttime

NATURAL_SCALE

public static final int[] NATURAL_SCALE

name

public int name
C=0, D=1, E=2, F=3, G=4, A=5, B=6, -1 is a rest


octave

public int octave
The octave is represented as an integer (0..8), -1 is a rest.


sharps

public int sharps

flats

public int flats

md_lineNumber

public int md_lineNumber

md_part

public int md_part

isTied

public boolean isTied

tiedToTrackNumber

public int tiedToTrackNumber

key

public int key
An integer telling the number of fixed accidentals notated - A negative number means flats, and a positive sharps.


timeSigUpper

public int timeSigUpper

timeSigLower

public int timeSigLower

fermata

public boolean fermata
Constructor Detail

NoteInfo

public NoteInfo(jm.music.data.Part p,
                jm.music.data.Phrase f,
                jm.music.data.Note n,
                int notenum,
                double start)
Constructs a NoteInfo object from MIDI information


NoteInfo

public NoteInfo(int md_prt,
                jm.music.data.Part dummy,
                int md_name,
                int md_octave,
                int md_sharps,
                int md_flats,
                double md_rhythmVal,
                double md_starttime,
                int md_key,
                int md_timeSigUp,
                int md_timeSigLow,
                boolean md_isTied,
                int md_tiedToTrackNumber,
                boolean fermat,
                int md_line)
Constructs a NoteInfo object from MuseData information.

Method Detail

isRest

public boolean isRest()

isNote

public boolean isNote()

endTime

public double endTime()

diatonicAbsolutePitchEquals

public boolean diatonicAbsolutePitchEquals(NoteInfo other)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

hasMusedata

public boolean hasMusedata()