toxi.music.scale
Class AbstractScale

java.lang.Object
  extended by toxi.music.scale.AbstractScale
Direct Known Subclasses:
GenericScale, MajorScale

public abstract class AbstractScale
extends java.lang.Object


Field Summary
static float HALFTONE_STEP
           
static float INV_HALFTONE
           
static int OCTAVE_RANGE
           
 byte[] tones
           
 
Constructor Summary
AbstractScale(java.lang.String name, byte[] tones)
           
 
Method Summary
 java.lang.String getName()
           
 float getPitchForScaleTone(int st)
           
 float getPitchForScaleTone(int semiTone, int limit, int transpose)
           
 float getPitchForSemitone(int st)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OCTAVE_RANGE

public static final int OCTAVE_RANGE
See Also:
Constant Field Values

HALFTONE_STEP

public static final float HALFTONE_STEP

INV_HALFTONE

public static final float INV_HALFTONE
See Also:
Constant Field Values

tones

public byte[] tones
Constructor Detail

AbstractScale

public AbstractScale(java.lang.String name,
                     byte[] tones)
Method Detail

getName

public java.lang.String getName()

getPitchForScaleTone

public float getPitchForScaleTone(int st)

getPitchForScaleTone

public float getPitchForScaleTone(int semiTone,
                                  int limit,
                                  int transpose)

getPitchForSemitone

public float getPitchForSemitone(int st)