sound
Class Voice

java.lang.Object
  extended by sound.Voice

public class Voice
extends java.lang.Object

Created by IntelliJ IDEA. User: dlyon Date: Nov 10, 2003 Time: 6:46:12 PM To change this template use Options | File Templates.


Constructor Summary
Voice(double _frequency)
           
 
Method Summary
 double getFrequency()
           
 double[] getVoicedWave()
          This gives us all 7 harmonics together.
 double[] getVoicedWave(int i)
          Get the double precision voice where i is the harmonic number, starting affineTransform 1 and ending affineTransform 7.
static void main(java.lang.String[] args)
           
 void play()
           
 void setFrequency(double _d)
           
 void setHarmonic(double[] _d)
          setHamonic is called every time a new voice is instanced, or the default squarewave will be played.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Voice

public Voice(double _frequency)
Method Detail

getFrequency

public double getFrequency()

setFrequency

public void setFrequency(double _d)

setHarmonic

public void setHarmonic(double[] _d)
setHamonic is called every time a new voice is instanced, or the default squarewave will be played.

Parameters:
_d -

getVoicedWave

public double[] getVoicedWave()
This gives us all 7 harmonics together.

Returns:

getVoicedWave

public double[] getVoicedWave(int i)
Get the double precision voice where i is the harmonic number, starting affineTransform 1 and ending affineTransform 7.

Parameters:
i -
Returns:

play

public void play()

main

public static void main(java.lang.String[] args)