org.jscience.arts.musical
Class Note

java.lang.Object
  extended by org.jscience.arts.musical.Note

public class Note
extends java.lang.Object

A class representing a musical event. Although this is a basic system, it can nevertheless be useful to code actual music pieces.


Constructor Summary
Note(Instrument instrument, double note, double duration)
          Creates a new Note object.
Note(Instrument instrument, double note, double duration, java.lang.String comment, java.lang.String voice)
          Creates a new Note object.
 
Method Summary
 java.lang.String getComment()
          DOCUMENT ME!
 double getDuration()
          DOCUMENT ME!
 Instrument getInstrument()
          DOCUMENT ME!
 double getNote()
          DOCUMENT ME!
 java.lang.String getVoice()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Note

public Note(Instrument instrument,
            double note,
            double duration)
Creates a new Note object.

Parameters:
instrument - DOCUMENT ME!
note - DOCUMENT ME!
duration - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

Note

public Note(Instrument instrument,
            double note,
            double duration,
            java.lang.String comment,
            java.lang.String voice)
Creates a new Note object.

Parameters:
instrument - DOCUMENT ME!
note - DOCUMENT ME!
duration - DOCUMENT ME!
comment - DOCUMENT ME!
voice - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!
Method Detail

getInstrument

public Instrument getInstrument()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getNote

public double getNote()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getDuration

public double getDuration()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getComment

public java.lang.String getComment()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getVoice

public java.lang.String getVoice()
DOCUMENT ME!

Returns:
DOCUMENT ME!