sound
Class VoiceUtil
java.lang.Object
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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VoiceUtil
public VoiceUtil()
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)