/Users/dbisig/programming/swarms/trunk/synth/trunk/code/unit/gen/iso_synth_trigger_sample_unit.h File Reference

#include "iso_synth_types.h"
#include "iso_synth_input_unit.h"
#include "iso_synth_channel.h"
#include "iso_synth_frame.h"
#include <sndfile.h>

Include dependency graph for iso_synth_trigger_sample_unit.h:

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


Namespaces

namespace  iso
namespace  iso::synth

Classes

class  iso::synth::TriggerSampleUnit

Detailed Description

this unit entrusts an external unit with the task of triggering the playback of its samples. For this reason it accepts on its "trigger" controlport trigger control buffers. These are interpreted as follows: val > 0.0: start new playback at playStart position, use amplitude val. val == 0.0: ignore trigger data (just carry on) val < 0.0: stop playback (trigger fadeout) ~= -0.1: very slow fadeout == -1.0: instantaneous stop

transfer function of negative values for "trigger": if val < 0: fade out time = 1 / (20 * -val); therfor, fade decrement = (20 * a * -val) / sr

ControlPorts: name: trigger defaultValue: 0.0
name: transpose defaultValue: 1.0

SwitchPorts: name: active channelCount: n defaultValue: 1.0 resizable: false function: setActive
name: playStart channelCount: n defaultValue: 0.0 resizable: false function: setPlayStartPosition
name: playEnd channelCount: n defaultValue: file durations in ms resizable: false function setPlayStopPosition

playStart and playEnd are both provided as values in miliseconds!!

Created by John Flury on 24/02/08.


Generated on Fri Feb 25 14:17:56 2011 for synth by  doxygen 1.5.1