CLAM::InControl Class Reference

#include <InControl.hxx>

Inheritance diagram for CLAM::InControl:

CLAM::InControlPublisher CLAM::InControlTmpl< ProcObj >

List of all members.


Detailed Description

Processing in control class.

Controls are limited to emmit and receive TControlData (float) numbers. Though extensible typed connections are future planned development:

See also:
TypedInControl

Definition at line 44 of file InControl.hxx.


Public Member Functions

virtual int DoControl (TControlData val)
 Stores the incoming control value.
const TControlDataGetLastValue () const
 Returns the last TControlData (float) received event.
bool GetLastValueAsBoolean () const
 Returns the last TControlData (float) received interpreted as a bool.
int GetLastValueAsInteger () const
 Returns the last TControlData (float) received interpireted as an integer.
const std::string & GetName () const
bool IsConnectedTo (OutControl &)
bool IsConnected () const
bool IsBounded () const
TControlData UpperBound () const
TControlData LowerBound () const
TControlData DefaultValue () const
 Returns the bounds mean or the value set with SetDefaultValue() if its the case.
void SetDefaultValue (TControlData val)
void SetBounds (TControlData lower, TControlData upper)
ProcessingGetProcessing () const
void OutControlInterface_AddLink (OutControl &outControl)
 Implementation detail just to be used from OutControl.
void OutControlInterface_RemoveLink (OutControl &outControl)
 Implementation detail just to be used from OutControl.
 InControl (const std::string &name, Processing *parent=0, const bool publish=true)
virtual ~InControl ()

Protected Attributes

std::list< OutControl * > mLinks
TControlData mLastValue
std::string mName
ProcessingmParent
TControlData mDefaultValue
TControlData mUpperBound
TControlData mLowerBound
bool mBounded
bool mHasDefaultValue

Constructor & Destructor Documentation

CLAM::InControl::InControl ( const std::string &  name,
Processing parent = 0,
const bool  publish = true 
)

Todo:
constructor rework. parent Optional. If present, is the processing where to be published.

Definition at line 29 of file InControl.cxx.

References CLAM::Processing::RegisterInControl().

CLAM::InControl::~InControl (  )  [virtual]


Member Function Documentation

virtual int CLAM::InControl::DoControl ( TControlData  val  )  [inline, virtual]

Stores the incoming control value.

It can be retrieved using GetLastValue

Reimplemented in CLAM::InControlTmpl< ProcObj >, CLAM::InControlPublisher, CLAM::InControlTmpl< CLAM::SegmentSMSMorph >, CLAM::InControlTmpl< CLAM::PhaseManagement >, CLAM::InControlTmpl< CLAM::SpectrumInterpolator >, CLAM::InControlTmpl< CLAM::SinusoidalSynthesis >, CLAM::InControlTmpl< CLAM::MIDIClocker >, CLAM::InControlTmpl< CLAM::ControlMapper >, CLAM::InControlTmpl< CLAM::SMSSineFilter >, CLAM::InControlTmpl< CLAM::FDFilterGen >, CLAM::InControlTmpl< CLAM::BinaryControlOp< BinOp > >, CLAM::InControlTmpl< CLAM::Dispatcher >, CLAM::InControlTmpl< CLAM::EnvelopeGenerator >, CLAM::InControlTmpl< CLAM::SpectralPeakArrayInterpolator >, CLAM::InControlTmpl< CLAM::ADSR >, CLAM::InControlTmpl< CLAM::FDCombFilter >, CLAM::InControlTmpl< CLAM::SMSSynthesis >, CLAM::InControlTmpl< CLAM::MIDIDispatcher >, CLAM::InControlTmpl< CLAM::EnvelopeExtractor >, CLAM::InControlTmpl< CLAM::FrameInterpolator >, CLAM::InControlTmpl< CLAM::PrintControl >, CLAM::InControlTmpl< CLAM::Instrument >, and CLAM::InControlTmpl< CLAM::SegmentSMSHarmonizer >.

Definition at line 65 of file InControl.hxx.

References mLastValue.

Referenced by CLAM::TokenDelay< T >::ConcreteConfigure(), CLAM::SpectralDelay::ConcreteConfigure(), CLAM::SMSSinusoidalGain::ConcreteConfigure(), CLAM::SMSResidualGain::ConcreteConfigure(), CLAM::SMSPitchShift::ConcreteConfigure(), CLAM::SMSHarmonizer::ConcreteConfigure(), CLAM::SMSGenderChange::ConcreteConfigure(), CLAM::SimpleOscillator::ConcreteConfigure(), CLAM::SegmentSMSTimeStretch::ConcreteConfigure(), CLAM::Robotization::ConcreteConfigure(), CLAM::OscillatingSpectralNotch::ConcreteConfigure(), CLAM::ControlScaler::ConcreteConfigure(), CLAM::Control2Data::ConcreteConfigure(), CLAM::CircularShift::ConcreteConfigure(), CLAM::AudioAmplifier::ConcreteConfigure(), CLAM::ThreeBandFilter::ConcreteConfigure(), CLAM::SMSPitchShift::Do(), CLAM::InControlPublisher::DoControl(), CLAM::InControlTmpl< ProcObj >::DoControl(), CLAM::SMSHarmonizer::IgnoreResidual(), CLAM::SegmentSMSHarmonizer::IgnoreResidual(), CLAM::Vocoder::InitControls(), CLAM::SpectralSpread::InitControls(), CLAM::SpectralRingModulation::InitControls(), CLAM::SpectralReverse::InitControls(), CLAM::SpectralPhaseModulation::InitControls(), CLAM::SpectralNotch::InitControls(), CLAM::SpectralGate::InitControls(), CLAM::SpectralFocus::InitControls(), CLAM::SpectralExciter::InitControls(), CLAM::SpectralCombTriang::InitControls(), CLAM::SpectralCombDelta::InitControls(), CLAM::SpectralAverage::InitControls(), CLAM::SpectralAmplitudeModulation::InitControls(), CLAM::SampleAndHold::InitControls(), CLAM::Peakalizer::InitControls(), CLAM::Partializer::InitControls(), CLAM::HumRemover::InitControls(), CLAM::FrameTransformation::InitControls(), CLAM::Deesser::InitControls(), CLAM::ThreeBandAM::InitControls(), CLAM::ThreeBandGate::InitControls(), CLAM::ThreeBandCompressor::InitControls(), CLAM::CircularShift::SetAmount(), and CLAM::WindowGenerator::SetSize().

const TControlData& CLAM::InControl::GetLastValue (  )  const [inline]

Returns the last TControlData (float) received event.

Reimplemented in CLAM::InControlPublisher.

Definition at line 67 of file InControl.hxx.

References mLastValue.

Referenced by CLAM::SimpleOscillator::ApplyFreqAndAmpControls(), CLAM::TokenDelay< T >::ConcreteConfigure(), CLAM::WindowGenerator::Do(), CLAM::Vocoder::Do(), CLAM::TokenDelay< T >::Do(), CLAM::SpectralSpread::Do(), CLAM::SpectralShapeShift::Do(), CLAM::SpectralRingModulation::Do(), CLAM::SpectralReverse::Do(), CLAM::SpectralReject::Do(), CLAM::SpectralPhaseModulation::Do(), CLAM::SpectralNotch::Do(), CLAM::SpectralLimiter::Do(), CLAM::SpectralGate::Do(), CLAM::SpectralFocus::Do(), CLAM::SpectralExciter::Do(), CLAM::SpectralDelay::Do(), CLAM::SpectralCombTriang::Do(), CLAM::SpectralCombDelta::Do(), CLAM::SpectralAverage::Do(), CLAM::SpectralAmplitudeModulation::Do(), CLAM::SMSSpectralShapeShift::Do(), CLAM::SMSSinusoidalGain::Do(), CLAM::SMSResidualGain::Do(), CLAM::SMSPitchShift::Do(), CLAM::SMSOddEvenHarmonicRatio::Do(), CLAM::SMSMorph::Do(), CLAM::SMSHarmonizer::Do(), CLAM::SMSGenderChange::Do(), CLAM::SMSFreqShift::Do(), CLAM::SMSDeesser::Do(), CLAM::SinTracking::Do(), CLAM::SimpleOscillator::Do(), CLAM::SampleAndHold::Do(), CLAM::Robotization::Do(), CLAM::RandomPhase::Do(), CLAM::Peakalizer::Do(), CLAM::Partializer::Do(), CLAM::OscillatingSpectralNotch::Do(), CLAM::NoSpectralTransformation::Do(), CLAM::MIDIKeyboard::Do(), CLAM::HumRemover::Do(), CLAM::FreqShift::Do(), CLAM::Deesser::Do(), CLAM::ControlScaler::Do(), CLAM::Control2Data::Do(), CLAM::CircularShift::Do(), CLAM::AudioFileMemoryLoader::Do(), CLAM::AudioAmplifier::Do(), CLAM::ThreeBandAM::Do(), CLAM::ThreeBandGate::Do(), CLAM::ThreeBandFilter::Do(), CLAM::ThreeBandCompressor::Do(), CLAM::MIDI2Melody::GenerateOutputData(), CLAM::ControlSink::GetControlValue(), CLAM::GetFloatFromInControl(), CLAM::InControlPublisher::GetLastValue(), CLAM::TokenDelay< CLAM::SpectralPeakArray >::GivenDelay(), CLAM::SegmentSMSHarmonizer::UpdateBPF(), and CLAM::SegmentSMSTimeStretch::UpdateTimeAndIndex().

bool CLAM::InControl::GetLastValueAsBoolean (  )  const [inline]

Returns the last TControlData (float) received interpreted as a bool.

Definition at line 69 of file InControl.hxx.

References mLastValue.

int CLAM::InControl::GetLastValueAsInteger (  )  const [inline]

Returns the last TControlData (float) received interpireted as an integer.

Definition at line 74 of file InControl.hxx.

References mLastValue.

const std::string& CLAM::InControl::GetName (  )  const [inline]

Definition at line 75 of file InControl.hxx.

References mName.

bool CLAM::InControl::IsConnectedTo ( OutControl out  ) 

Definition at line 52 of file InControl.cxx.

References CLAM::OutControl::IsConnectedTo().

bool CLAM::InControl::IsConnected (  )  const

Definition at line 57 of file InControl.cxx.

References mLinks.

bool CLAM::InControl::IsBounded (  )  const

Definition at line 62 of file InControl.cxx.

References mBounded.

TControlData CLAM::InControl::UpperBound (  )  const

Definition at line 66 of file InControl.cxx.

References mUpperBound.

TControlData CLAM::InControl::LowerBound (  )  const

Definition at line 70 of file InControl.cxx.

References mLowerBound.

TControlData CLAM::InControl::DefaultValue (  )  const

Returns the bounds mean or the value set with SetDefaultValue() if its the case.

Definition at line 85 of file InControl.cxx.

References mDefaultValue, mHasDefaultValue, mLowerBound, and mUpperBound.

void CLAM::InControl::SetDefaultValue ( TControlData  val  ) 

void CLAM::InControl::SetBounds ( TControlData  lower,
TControlData  upper 
)

Processing* CLAM::InControl::GetProcessing (  )  const [inline]

Definition at line 86 of file InControl.hxx.

References mParent.

void CLAM::InControl::OutControlInterface_AddLink ( OutControl outControl  ) 

Implementation detail just to be used from OutControl.

Definition at line 91 of file InControl.cxx.

References mLinks.

Referenced by CLAM::OutControl::AddLink().

void CLAM::InControl::OutControlInterface_RemoveLink ( OutControl outControl  ) 

Implementation detail just to be used from OutControl.

Definition at line 96 of file InControl.cxx.

References mLinks.

Referenced by CLAM::OutControl::RemoveLink().


Member Data Documentation

std::list<OutControl*> CLAM::InControl::mLinks [protected]

std::string CLAM::InControl::mName [protected]

Definition at line 50 of file InControl.hxx.

Referenced by GetName().

Definition at line 51 of file InControl.hxx.

Referenced by GetProcessing(), and ~InControl().

Definition at line 52 of file InControl.hxx.

Referenced by DefaultValue(), and SetDefaultValue().

Definition at line 53 of file InControl.hxx.

Referenced by DefaultValue(), SetBounds(), and UpperBound().

Definition at line 54 of file InControl.hxx.

Referenced by DefaultValue(), LowerBound(), and SetBounds().

Definition at line 56 of file InControl.hxx.

Referenced by IsBounded(), and SetBounds().

Definition at line 57 of file InControl.hxx.

Referenced by DefaultValue(), and SetDefaultValue().


The documentation for this class was generated from the following files:

Generated on Tue Aug 12 22:33:47 2008 for CLAM by  doxygen 1.5.5