com.soundhelix.misc
Class Pattern.PatternEntry

java.lang.Object
  extended by com.soundhelix.misc.Pattern.PatternEntry
Enclosing class:
Pattern

public static final class Pattern.PatternEntry
extends Object

Represents a pattern entry.


Constructor Summary
Pattern.PatternEntry(char wildcardCharacter, short velocity, int ticks, boolean legato)
          Constructor.
Pattern.PatternEntry(int ticks)
          Constructor.
Pattern.PatternEntry(int pitch, short velocity, int ticks, boolean legato)
          Constructor.
 
Method Summary
 int getPitch()
          Returns the pitch.
 int getTicks()
          Returns the number of ticks.
 short getVelocity()
          Returns the velocity.
 char getWildcardCharacter()
          Returns the wildcard character.
 boolean isLegato()
          Returns the legato flag.
 boolean isNote()
          Returns true if this is a note, false otherwise.
 boolean isPause()
          Returns true if this is a pause, false otherwise.
 boolean isWildcard()
          Returns true if this is a wildcard, false otherwise.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pattern.PatternEntry

public Pattern.PatternEntry(int ticks)
Constructor.

Parameters:
ticks - the number of ticks

Pattern.PatternEntry

public Pattern.PatternEntry(int pitch,
                            short velocity,
                            int ticks,
                            boolean legato)
Constructor.

Parameters:
pitch - the pitch
velocity - the velocity
ticks - the number of ticks
legato - the legato flag

Pattern.PatternEntry

public Pattern.PatternEntry(char wildcardCharacter,
                            short velocity,
                            int ticks,
                            boolean legato)
Constructor.

Parameters:
wildcardCharacter - the wildcard character
velocity - the velocity
ticks - the number of ticks
legato - the legato flag
Method Detail

getWildcardCharacter

public char getWildcardCharacter()
Returns the wildcard character.

Returns:
the wildcard character

getPitch

public int getPitch()
Returns the pitch.

Returns:
the pitch

getVelocity

public short getVelocity()
Returns the velocity.

Returns:
the velocity

getTicks

public int getTicks()
Returns the number of ticks.

Returns:
the number of ticks

isNote

public boolean isNote()
Returns true if this is a note, false otherwise.

Returns:
true if this is a note, false otherwises

isWildcard

public boolean isWildcard()
Returns true if this is a wildcard, false otherwise.

Returns:
true if this is a wildcard, false otherwise

isPause

public boolean isPause()
Returns true if this is a pause, false otherwise.

Returns:
true if this is a pause, false otherwise

isLegato

public boolean isLegato()
Returns the legato flag.

Returns:
the legato flag

toString

public String toString()
Overrides:
toString in class Object