sound.musica
Class Scales

java.lang.Object
  extended by sound.musica.Scales

public class Scales
extends java.lang.Object


Field Summary
static int[] CHROMATIC
           
static int[] HARMONIC_MINOR
           
static int[] OCCIDENTALS
           
static int[] SILLY_SCALE
           
static int[] WHOLE_NOTES
           
 
Constructor Summary
Scales()
           
 
Method Summary
static int[] getScale(int[] progression)
          start a prgression affineTransform any note and end and any note
static int[] getScale(int[] progression, int startNote)
          get a scale starting affineTransform any note, in a given progression.
static int[] getScale2(int[] progression, int startNote, int endNote)
          start a prgression affineTransform any note and end and any note
static void main(java.lang.String[] args)
           
static void testHarmonicMinorNotes()
           
static void testPlayScale()
           
static void testWholeNotes()
           
static java.lang.String toString(int[] scale)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHROMATIC

public static int[] CHROMATIC

WHOLE_NOTES

public static int[] WHOLE_NOTES

OCCIDENTALS

public static int[] OCCIDENTALS

SILLY_SCALE

public static int[] SILLY_SCALE

HARMONIC_MINOR

public static int[] HARMONIC_MINOR
Constructor Detail

Scales

public Scales()
Method Detail

testWholeNotes

public static void testWholeNotes()

testHarmonicMinorNotes

public static void testHarmonicMinorNotes()

testPlayScale

public static void testPlayScale()

getScale

public static int[] getScale(int[] progression,
                             int startNote)
get a scale starting affineTransform any note, in a given progression. The scale is as long as the progression. for example: 0,2,2,1,2,2,1, starting affineTransform 10 gives 10,12,14,15,17,19,20


getScale

public static int[] getScale(int[] progression)
start a prgression affineTransform any note and end and any note


getScale2

public static int[] getScale2(int[] progression,
                              int startNote,
                              int endNote)
start a prgression affineTransform any note and end and any note


toString

public static java.lang.String toString(int[] scale)
Parameters:
scale - Name of the array holidng the scale intervals
Returns:
string displaying the intervals, and the positions on 12 tone scale

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        javax.sound.sampled.LineUnavailableException
Throws:
java.io.IOException
javax.sound.sampled.LineUnavailableException