gr.teicrete.mta.synthesizer
Class FMSynthesizer

java.lang.Object
  extended by gr.teicrete.mta.synthesizer.AbstractSensorSynthesizer
      extended by gr.teicrete.mta.synthesizer.FMSynthesizer
All Implemented Interfaces:
Mappable

public class FMSynthesizer
extends AbstractSensorSynthesizer

The synthesizer class for frequency modulation synthesis.

Author:
zavi

Constructor Summary
FMSynthesizer(java.util.LinkedList<SynthParameter> params, int number)
          Constructs a new FMSynthesizer object with the specified synthesis parameters
 
Method Summary
 SynthParameter getParameter(int parNum)
          Returns the specified parameter
 SynthParameter getParameter(java.lang.String parName)
          Returns the specified parameter
 void setParameter(java.lang.String parName, double value)
          Sets a value to the specified synthesizer parameter
 void start()
          Starts the FMSynthesizer
 void stop()
          Stops the FMSynthesizer
 java.lang.String toString()
          Returns a String representation of the FMSynthesizer
 
Methods inherited from class gr.teicrete.mta.synthesizer.AbstractSensorSynthesizer
getNumber, synthOn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FMSynthesizer

public FMSynthesizer(java.util.LinkedList<SynthParameter> params,
                     int number)
Constructs a new FMSynthesizer object with the specified synthesis parameters

Parameters:
params - A LinkedList containing the SynthParameters for this synthesizer
channel - An integer representing the channel the synthesizer is assigned to
Method Detail

start

public void start()
Starts the FMSynthesizer

Specified by:
start in class AbstractSensorSynthesizer

stop

public void stop()
Stops the FMSynthesizer

Specified by:
stop in class AbstractSensorSynthesizer

setParameter

public void setParameter(java.lang.String parName,
                         double value)
                  throws BadSynthValueException,
                         BadSynthParameterException
Description copied from class: AbstractSensorSynthesizer
Sets a value to the specified synthesizer parameter

Specified by:
setParameter in class AbstractSensorSynthesizer
Parameters:
parName - The parameter name
value - The value to assign to the parameter
Throws:
BadSynthValueException
BadSynthParameterException

getParameter

public SynthParameter getParameter(java.lang.String parName)
                            throws BadSynthParameterException
Description copied from class: AbstractSensorSynthesizer
Returns the specified parameter

Specified by:
getParameter in class AbstractSensorSynthesizer
Parameters:
parName - The parameter name
Returns:
The synthesizer parameter object
Throws:
BadSynthParameterException

getParameter

public SynthParameter getParameter(int parNum)
Description copied from class: AbstractSensorSynthesizer
Returns the specified parameter

Overrides:
getParameter in class AbstractSensorSynthesizer
Parameters:
parNum - The parameter's number
Returns:
The SynthParameter object

toString

public java.lang.String toString()
Returns a String representation of the FMSynthesizer

Specified by:
toString in class AbstractSensorSynthesizer