Class AbstractScale

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

public abstract class AbstractScale extends Object
  • Field Details

    • OCTAVE_RANGE

      public static final int OCTAVE_RANGE
      See Also:
    • HALFTONE_STEP

      public static final float HALFTONE_STEP
    • INV_HALFTONE

      public static final float INV_HALFTONE
      See Also:
    • tones

      public byte[] tones
  • Constructor Details

    • AbstractScale

      public AbstractScale(String name, byte[] tones)
  • Method Details

    • getName

      public String getName()
    • getPitchForScaleTone

      public float getPitchForScaleTone(int st)
    • getPitchForScaleTone

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

      public float getPitchForSemitone(int st)