sound
Class VoiceUtil

java.lang.Object
  extended by sound.VoiceUtil

public class VoiceUtil
extends java.lang.Object

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


Constructor Summary
VoiceUtil()
           
 
Method Summary
 double[] add(double[] a, double[] b)
           
 double[] add(Voice v1, Voice v2)
           
 double[] getVoicedWave()
          All the computation is done here.
 Voice[] getVoices()
           
static void main(java.lang.String[] args)
           
 void play()
          play the 4 voice sample.
 void setVoice(Voice _v, int i)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VoiceUtil

public VoiceUtil()
Method Detail

getVoicedWave

public double[] getVoicedWave()
All the computation is done here.

Returns:
a waveform for a 4 voice synthesizer

getVoices

public Voice[] getVoices()

add

public double[] add(Voice v1,
                    Voice v2)

add

public double[] add(double[] a,
                    double[] b)

play

public void play()
play the 4 voice sample.


setVoice

public void setVoice(Voice _v,
                     int i)
Parameters:
_v - The voice we want to set.
i - a number from 0,1,2 or 3

main

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