com.virtuosotechnologies.asaph.model.notation
Interface Note


public interface Note

An object that represents a single note.


Method Summary
 String generateString()
          Generate the string representation
 Note getBaseNote()
          Get the base of this note (that is, the note with the default modifier).
 Interval getIntervalTo(Note note)
          Create an interval from this note to the given note
 Note getLowered(Interval interval)
          Create a note lowered by an interval
 NotationFactory getNotationFactory()
          Get the NotationFactory that created this object
 NoteModifier getNoteModifier()
          Get the modifier of this note
 Note getNoteWithModifier(NoteModifier modifier)
          Create a Note whose base is the same as this one, but with the given modifier.
 Note getRaised(Interval interval)
          Create a note raised by an interval
 

Method Detail

getNotationFactory

public NotationFactory getNotationFactory()
Get the NotationFactory that created this object

Returns:
the NotationFactory

generateString

public String generateString()
Generate the string representation

Returns:
String

getBaseNote

public Note getBaseNote()
Get the base of this note (that is, the note with the default modifier).

Returns:
the base Note

getNoteModifier

public NoteModifier getNoteModifier()
Get the modifier of this note

Returns:
the NoteModifier

getNoteWithModifier

public Note getNoteWithModifier(NoteModifier modifier)
Create a Note whose base is the same as this one, but with the given modifier.

Parameters:
modifier - new NoteModifier
Returns:
new Note

getRaised

public Note getRaised(Interval interval)
Create a note raised by an interval

Parameters:
interval - interval to raise by
Returns:
new Note

getLowered

public Note getLowered(Interval interval)
Create a note lowered by an interval

Parameters:
interval - interval to lower by
Returns:
new Note

getIntervalTo

public Interval getIntervalTo(Note note)
Create an interval from this note to the given note

Parameters:
note - ending note
Returns:
new Interval