com.perisic.sound
Class VoiceAssignment

java.lang.Object
  extended by com.perisic.sound.VoiceAssignment

public class VoiceAssignment
extends java.lang.Object

The set of five voices that define the composition.

Copyright:(c) Marc Conrad, Tim French 2006-2010; Usage of the works is permitted provided that this instrument is retained with the works, so that any entity that uses the works is notified of this instrument. DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.

Author:
Marc

Constructor Summary
VoiceAssignment(long seed, double x, double y)
          Construction of a set of five voices bass, medium, sopran, high and veryHigh based on a seed and coordinates in an x-y plane.
VoiceAssignment(java.util.Random rG)
          Construction of a set of five voices bass, medium, sopran, high and veryHigh based on the random number generator rG.
 
Method Summary
 Voice[] getVoices()
          The array contains the five voices in the order { veryHigh, high, sopran, medium, bass }
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VoiceAssignment

public VoiceAssignment(long seed,
                       double x,
                       double y)
Construction of a set of five voices bass, medium, sopran, high and veryHigh based on a seed and coordinates in an x-y plane. Voices will be similar when the coordinates are close.

Parameters:
seed - the seed for the random number generator
x - x-coordinate
y - y-coordinate

VoiceAssignment

public VoiceAssignment(java.util.Random rG)
Construction of a set of five voices bass, medium, sopran, high and veryHigh based on the random number generator rG.

Parameters:
rG -
Method Detail

getVoices

public Voice[] getVoices()
The array contains the five voices in the order { veryHigh, high, sopran, medium, bass }

Returns:
an array of the five voices.