gr.teicrete.mta.synthesizer
Class AMSynthesizer

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

public class AMSynthesizer
extends AbstractSensorSynthesizer

The synthesizer class for Amplitude Modulation synthesis

Author:
zavi

Constructor Summary
AMSynthesizer(java.util.LinkedList<SynthParameter> params, int number)
          Constructs a new AMSynthesizer object with the specified synthesis parameters
 
Method Summary
 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 AM Synthesizer
 void stop()
          Stops the AM Synthesizer
 java.lang.String toString()
          Returns a String representation of the AMSynthesizer
 
Methods inherited from class gr.teicrete.mta.synthesizer.AbstractSensorSynthesizer
getNumber, getParameter, synthOn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AMSynthesizer

public AMSynthesizer(java.util.LinkedList<SynthParameter> params,
                     int number)
Constructs a new AMSynthesizer 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 AM Synthesizer

Specified by:
start in class AbstractSensorSynthesizer

stop

public void stop()
Stops the AM Synthesizer

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

toString

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

Specified by:
toString in class AbstractSensorSynthesizer