marytts.signalproc.sinusoidal.test
Class SinusoidsTester

java.lang.Object
  extended by marytts.signalproc.sinusoidal.test.BaseTester
      extended by marytts.signalproc.sinusoidal.test.SinusoidsTester
Direct Known Subclasses:
HarmonicsTester

public class SinusoidsTester
extends BaseTester

This class can be used to generate various sinusoid signals and writing them to wav and ptc files to be used in testing the analysis/synthesis algorithms

Author:
Oytun Türk

Field Summary
static int DEFAULT_FRAME_INDEX
           
static float DEFAULT_PHASE
           
 
Fields inherited from class marytts.signalproc.sinusoidal.test.BaseTester
DEFAULT_ABS_MAX_VAL, DEFAULT_AMP, DEFAULT_DUR, DEFAULT_FS, DEFAULT_SKIP_SIZE_FOR_PITCH_CONTOUR, DEFAULT_WINDOW_SIZE_FOR_PITCH_CONTOUR, f0s, fs, pitchMarks, signal, ss, ws
 
Constructor Summary
SinusoidsTester()
           
SinusoidsTester(float freqInHz)
           
SinusoidsTester(float freqInHz, float amp)
           
SinusoidsTester(float freqInHz, float amp, float phaseInDegrees)
           
SinusoidsTester(float freqInHz, float amp, float phaseInDegrees, int frameIndex)
           
SinusoidsTester(float freqInHz, float amp, float phaseInDegrees, int frameIndex, float durationInSeconds)
           
SinusoidsTester(float freqInHz, float amp, float phaseInDegrees, int frameIndex, float durationInSeconds, int samplingRateInHz)
           
SinusoidsTester(Sinusoid sin)
           
SinusoidsTester(Sinusoid[] sinsIn)
           
SinusoidsTester(Sinusoid[] sinsIn, float durationInSeconds)
           
SinusoidsTester(Sinusoid[] sinsIn, float[] startTimesInSeconds, float[] endTimesInSeconds)
           
SinusoidsTester(Sinusoid[] sinsIn, float[] startTimesInSeconds, float[] endTimesInSeconds, int samplingRateInHz)
           
SinusoidsTester(Sinusoid[] sinsIn, float durationInSeconds, int samplingRateInHz)
           
SinusoidsTester(Sinusoid sin, float durationInSeconds)
           
SinusoidsTester(Sinusoid sin, float durationInSeconds, int samplingRateInHz)
           
 
Method Summary
 void init(Sinusoid[] sinsIn, float[] startTimesInSeconds, float[] endTimesInSeconds, int samplingRateInHz)
           
 void init(Sinusoid[] sinsIn, float startTimeInSeconds, float endTimeInSeconds, int samplingRateInHz)
           
 void init(Sinusoid[] sinsIn, float durationInSeconds, int samplingRateInHz)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class marytts.signalproc.sinusoidal.test.BaseTester
write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PHASE

public static float DEFAULT_PHASE

DEFAULT_FRAME_INDEX

public static int DEFAULT_FRAME_INDEX
Constructor Detail

SinusoidsTester

public SinusoidsTester()

SinusoidsTester

public SinusoidsTester(float freqInHz)

SinusoidsTester

public SinusoidsTester(float freqInHz,
                       float amp)

SinusoidsTester

public SinusoidsTester(float freqInHz,
                       float amp,
                       float phaseInDegrees)

SinusoidsTester

public SinusoidsTester(float freqInHz,
                       float amp,
                       float phaseInDegrees,
                       int frameIndex)

SinusoidsTester

public SinusoidsTester(float freqInHz,
                       float amp,
                       float phaseInDegrees,
                       int frameIndex,
                       float durationInSeconds)

SinusoidsTester

public SinusoidsTester(Sinusoid sin)

SinusoidsTester

public SinusoidsTester(Sinusoid sin,
                       float durationInSeconds)

SinusoidsTester

public SinusoidsTester(float freqInHz,
                       float amp,
                       float phaseInDegrees,
                       int frameIndex,
                       float durationInSeconds,
                       int samplingRateInHz)

SinusoidsTester

public SinusoidsTester(Sinusoid sin,
                       float durationInSeconds,
                       int samplingRateInHz)

SinusoidsTester

public SinusoidsTester(Sinusoid[] sinsIn)

SinusoidsTester

public SinusoidsTester(Sinusoid[] sinsIn,
                       float durationInSeconds)

SinusoidsTester

public SinusoidsTester(Sinusoid[] sinsIn,
                       float durationInSeconds,
                       int samplingRateInHz)

SinusoidsTester

public SinusoidsTester(Sinusoid[] sinsIn,
                       float[] startTimesInSeconds,
                       float[] endTimesInSeconds)

SinusoidsTester

public SinusoidsTester(Sinusoid[] sinsIn,
                       float[] startTimesInSeconds,
                       float[] endTimesInSeconds,
                       int samplingRateInHz)
Method Detail

init

public void init(Sinusoid[] sinsIn,
                 float durationInSeconds,
                 int samplingRateInHz)

init

public void init(Sinusoid[] sinsIn,
                 float startTimeInSeconds,
                 float endTimeInSeconds,
                 int samplingRateInHz)

init

public void init(Sinusoid[] sinsIn,
                 float[] startTimesInSeconds,
                 float[] endTimesInSeconds,
                 int samplingRateInHz)

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException