org.rubato.rubettes.util
Class ScaleMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.String,double[]>
          extended by org.rubato.rubettes.util.ScaleMap
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,double[]>

public class ScaleMap
extends java.util.HashMap<java.lang.String,double[]>

Holds a number of musical scales as values, defined as series of intervals (double[]). The corresponding keys are the scale's names (String).

Author:
Florian Thalmann
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
ScaleMap()
           
 
Method Summary
 java.lang.Object[] getScaleNames(int numberOfIntervals)
          Returns an array with the names of all scales with the specified number of intervals.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

ScaleMap

public ScaleMap()
Method Detail

getScaleNames

public java.lang.Object[] getScaleNames(int numberOfIntervals)
Returns an array with the names of all scales with the specified number of intervals. The names can then be used as keys for getting the values (double[]) saved in the map.

Parameters:
numberOfIntervals - - the number of intervals in a scale