/Users/dbisig/programming/swarms/trunk/synth/trunk/code/unit/util/iso_synth_ate_conditional_unit.h File Reference

#include "iso_synth_ate_unit.h"

Include dependency graph for iso_synth_ate_conditional_unit.h:

This graph shows which files directly or indirectly include this file:


Namespaces

namespace  iso
namespace  iso::synth

Classes

class  iso::synth::ATEConditionalUnit
 ATEConditionalUnit samples an audio stream at regular intervals and sends the sampled values as events, but only if the suffice a conditional statement
this unit is a subclass of the default AudioToEvent unit (ATEUnit). It specializes in conditional statements, such as (if audio(t) > 0.8 then output audio(t) as event)
This class allows for two separate conditional statements that are linked with an AND, here is an example:
if ( audio(t) operator argument) AND (audio(t) operator2 argument2) then (send audio(t) as event). Both logical operator stategements are optional and can be
bypassed by setting the logical operator index to -1. This comparision is done at the interval rate (see ATEUnit). If for any reason, you need sample accurate comparision, set the interval to 0. don't forget
all switchports from ATEUnit are inherited and can be used in this unit. There is a logical problem with this unit: The two statements are connected by an AND. If you need an logical OR between the statements, we suggest, you
instatiate two separate ATEConditionalUnits (with a single conditional statement each). These two units will fire an event if either of the statements are
matched, thus having the same effect as an logical "OR" between two statements. More...

Detailed Description


Generated on Fri Feb 25 14:18:28 2011 for synth by  doxygen 1.5.1