Package org.ptolemy.machineImprovisation
Class Note
- java.lang.Object
-
- org.ptolemy.machineImprovisation.Note
-
public class Note extends java.lang.ObjectThe Note object.- Since:
- Ptolemy II 10.0
- Version:
- $Id$
- Author:
- Ilge Akkaya
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Red (ilgea)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCompleteIndex()Return the absolute MIDI key index of the note.doublegetDuration()Return the note duration.intgetKeyIndex()Return the relative MIDI key index in base 12.java.lang.StringgetName()Return the name of Note object.booleanisRest()Returns true if the note is a rest.
-
-
-
Method Detail
-
getDuration
public double getDuration()
Return the note duration.- Returns:
- a double indicating the note duration
-
getName
public java.lang.String getName()
Return the name of Note object.- Returns:
- the name
-
getCompleteIndex
public int getCompleteIndex()
Return the absolute MIDI key index of the note.- Returns:
- MIDI key index
-
getKeyIndex
public int getKeyIndex()
Return the relative MIDI key index in base 12.- Returns:
- the relative key index
-
isRest
public boolean isRest()
Returns true if the note is a rest.- Returns:
- true if note is a rest
-
-