jcaas.midi
Class Rythm

java.lang.Object
  extended by jcaas.midi.StaffProperty
      extended by jcaas.midi.Rythm

public abstract class Rythm
extends StaffProperty

Rythm is an abstract representation of a rythm-pattern for a song. Extends Song Property.

Version:
last updated: 4/17/05
Author:
Conrad Hutcheson

Constructor Summary
Rythm()
           
 
Method Summary
abstract  double getNextNoteLength()
          Returns the multiplier for the duration of the next note under this rythm pattern, assuming that the note is of unit beat size (as determined by the time signature).
abstract  double[] getRythm()
          Returns the note duration pattern assuming under this rythm patter, assuming the notes to be of unit beat size (as determined by the time signature).
 
Methods inherited from class jcaas.midi.StaffProperty
getName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rythm

public Rythm()
Method Detail

getNextNoteLength

public abstract double getNextNoteLength()
Returns the multiplier for the duration of the next note under this rythm pattern, assuming that the note is of unit beat size (as determined by the time signature).

Returns:
the double multiplier for the duration of the next note for unit length.

getRythm

public abstract double[] getRythm()
Returns the note duration pattern assuming under this rythm patter, assuming the notes to be of unit beat size (as determined by the time signature).

Returns:
the array of double mulltipliers for the duration of the notes of unit length for an entire measure/.