ch.aplu.util
Interface Waveform

All Known Implementing Classes:
Waveform.ChirpWave, Waveform.SawtoothWave, Waveform.SineWave, Waveform.SquareWave, Waveform.TriangleWave

public interface Waveform

Interface to define the signature of the function to play.


Nested Class Summary
static class Waveform.ChirpWave
          Implements a waveform (chirp).
static class Waveform.SawtoothWave
          Implements a waveform (sawtooth).
static class Waveform.SineWave
          Implements a waveform (sine).
static class Waveform.SquareWave
          Implements a waveform (square).
static class Waveform.TriangleWave
          Implements a waveform (triangle).
static class Waveform.WavePlot
          Class to display a simple graphics window with 5 periods of the given waveform.
 
Method Summary
 double f(double t, double freq)
          Signature of the function to play
 

Method Detail

f

double f(double t,
         double freq)
Signature of the function to play

Parameters:
t - the time in seconds
freq - the frequency in Hertz
Returns:
the function return value