Marsyas  0.5.0-beta1
Public Types | Public Member Functions | Static Public Member Functions | Data Fields | Protected Member Functions | Friends
MarSystem Class Reference

MarSystem transforms a realvec. More...

#include <MarSystem.h>

Inherited by AbsMax, AbsSoundFileSink, AbsSoundFileSource, AbsSoundFileSource2, AccentFilterBank, Accumulator, AdditiveOsc, ADRess, ADRessSpectrum, ADRessStereoSpectrum, ADSR, AimBoxes, AimGammatone, AimHCL, AimHCL2, AimLocalMax, AimPZFC, AimPZFC2, AimSAI, AimSSI, AimVQ, AliasingOsc, AMDF, ANN_node, Annotator, APDelayOsc, ArffFileSink, AubioYin, AudioSink, AudioSinkBlocking, AudioSource, AudioSourceBlocking, AutoCorrelation, AutoCorrelationFFT, AveragingPattern, BaseAudioSink, BeatAgent, BeatHistoFeatures, BeatHistogram, BeatHistogramFromPeaks, BeatPhase, BeatReferee, BeatTimesSink, BICchangeDetector, Biquad, BlitOsc, CARFAC, Cartesian2Polar, Cascade, Centroid, Chroma, ChromaFilter, ChromaScale, ClassificationReport, ClassOutputSink, Clip, Combinator, CompExp, Compressor, Confidence, ConstQFiltering, CrossCorrelation, CsvFileSource, CsvSink, Daub4, DCSource, Deinterleave, DeInterleaveSizecontrol, Delay, DelaySamples, Delta, DeltaFirstOrderRegression, Differentiator, DownSampler, DPWOsc, DTW, DTWWD, Energy, EnhADRess, EnhADRessStereoSpectrum, Envelope, ERB, Esitar, F0Analysis, Fanin, Fanout, FanOutIn, Filter, FlowCutSource, FlowThru, FlowToControl, Flux, FM, FMeasure, FullWaveRectifier, Gain, GaussianClassifier, GMMClassifier, HalfWaveRectifier, HarmonicEnhancer, HarmonicStrength, HWPS, Inject, InvSpectrum, KNNClassifier, Krumhansl_key_finder, Kurtosis, Limiter, LPC, LPCC, LSP, LyonAgc, LyonChannelDiff, LyonPassiveEar, LyonZeroOutPreEmph, Map, MarFileSink, MarSystemTemplateAdvanced, MarSystemTemplateBasic, MarSystemTemplateMedium, MatchBassModel, MathPower, MaxArgMax, MaxMin, McAulayQuatieri, Mean, MeanAbsoluteDeviation, MeddisHairCell, Median, MedianFilter, Memory, MemorySource, Metric, Metric2, MFCC, MidiFileSynthSource, MidiInput, MidiOutput, MinArgMin, MixToMono, Mono2Stereo, Negative, NoiseGate, NoiseSource, Norm, Normalize, NormalizeAbs, NormCut, NormMatrix, NormMaxMin, OnePole, OneRClassifier, OnsetTimes, OrcaSnip, OverlapAdd, Panorama, Parallel, ParallelMatrixWeight, PatchMatrix, PCA, Peak2Rms, PeakClusterSelect, PeakConvert, PeakConvert2, PeakDistanceHorizontality, PeakEnhancer, Peaker, PeakerAdaptive, PeakerOnset, PeakFeatureSelect, PeakInObservation, PeakLabeler, PeakMask, PeakPeriods2BPM, PeakRatio, PeakResidual, PeakSynthFFT, PeakSynthOsc, PeakSynthOscBank, PeakViewMerge, PeakViewSink, PeakViewSource, PhaseLock, PhiSEMFilter, PhiSEMSource, Pitch2Chroma, PitchDiff, PlotSink, Plucked, Polar2Cartesian, Power, PowerSpectrum, PowerToAverageRatio, Product, PvConvert, PvConvolve, PvFold, PvMultiResolution, PvOscBank, PvOverlapadd, PvUnconvert, PWMSource, RadioDrumInput, Ratio, RBF, OscTransmitter, RealvecSink, RealvecSource, Reassign, Reciprocal, RemoveObservations, Resample, ResampleBezier, ResampleLinear, ResampleNearestNeighbour, ResampleSinc, Reverse, Rms, Rolloff, RunningAutocorrelation, RunningStatistics, SCF, Selector, SelfSimilarityMatrix, SeneffEar, Series, SFM, Shifter, ShiftInput, ShiftOutput, Shredder, Sidechain, Signum, SilenceRemove, SimilarityMatrix, SimulMaskingFft, SineSource, Skewness, SliceDelta, SliceShuffle, SMO, SNR, SOM, SoundFileSink, SoundFileSource, SoundFileSource2, SoundFileSourceHopper, SpectralCentroidBandNorm, SpectralFlatnessAllBands, SpectralSNR, SpectralTransformations, Spectrum, Spectrum2ACMChroma, Spectrum2Chroma, Spectrum2Mel, Square, StandardDeviation, StereoSpectrum, StereoSpectrumFeatures, StereoSpectrumSources, StretchLinear, Subtract, SubtractMean, Sum, SVFilter, SVMClassifier, SVMClassifier, TempoHypotheses, Threshold, TimeFreqPeakConnectivity, TimelineLabeler, TimeStretch, Transposer, TriangularFilterBank, Unfold, UpdatingBassModel, Upsample, Vibrato, ViconFileSource, WaveguideOsc, WaveletBands, WaveletPyramid, WaveletStep, WekaSink, WekaSource, WHaSp, Whitening, Windowing, Yin, ZeroCrossings, and ZeroRClassifier.

Public Types

typedef std::vector< MarSystem * >
::size_type 
child_count_t
typedef std::vector
< MarSystemObserver * >
::size_type 
observer_count_t

Public Member Functions

bool addControl (std::string cname, MarControlPtr v)
bool addControl (std::string cname, MarControlPtr v, MarControlPtr &ptr)
bool addctrl (std::string cname, MarControlPtr v)
bool addctrl (std::string cname, MarControlPtr v, MarControlPtr &ptr)
virtual bool addMarSystem (MarSystem *marsystem)
void addObserver (MarSystemObserver *observer)
void addTimer (std::string tmr_class, std::string tmr_ident)
void addTimer (std::string tmr_class, std::string tmr_ident, std::vector< TmParam > params)
void addToScope (MarSystem *marsystem)
void attachMarSystem (MarSystem *system)
void checkFlow (realvec &in, realvec &out)
MarSystemchild (const std::string &name)
 Get immediate child by name.
const std::vector< MarSystem * > & children () const
virtual MarSystemclone () const =0
MarControlPtr control (const std::string &name)
 Get immediate control by name.
const std::map< std::string,
MarControlPtr > & 
controls ()
void detachMarSystem (MarSystem *system)
const std::string & getAbsPath () const
virtual MarSystemgetChildMarSystem (std::string path)
 Get ...[grand-][grand-]child by path.
virtual std::vector< MarSystem * > getChildren ()
MarControlPtr getControl (std::string path, bool searchParent=false, bool searchChildren=true)
 Get control of ...[grand-][grand-]child by path.
MarControlPtr getControlLocal (std::string cname)
std::map< std::string,
MarControlPtr
getControls (std::map< std::string, MarControlPtr > *cmap=NULL)
MarControlPtr getctrl (std::string cname)
const std::map< std::string,
MarControlPtr > & 
getLocalControls ()
std::string getMATLABscript ()
const std::string & getName () const
MarSystemgetParent () const
const std::string & getPrefix () const
mrs_natural getTime (std::string timer_name)
const std::string & getType () const
bool hasControl (std::string cname, bool searchChildren=true)
bool hasControlLocal (MarControlPtr control)
bool hasControlLocal (std::string cname)
bool hasControlState (std::string cname)
bool hasctrlState (std::string cname)
bool hasctrlState (char *cname)
bool hasctrlState (MarControlPtr control)
bool hasObserver (MarSystemObserver *observer) const
bool isComposite ()
bool isDescendentOf (MarSystem *parent)
bool isUpdating ()
bool linkControl (std::string cname1, std::string cname2, bool update=true)
 MarSystem (std::string type, std::string name)
 MarSystem (const MarSystem &a)
MarSystemparentScope ()
std::string path () const
void process (realvec &in, realvec &out)
virtual std::ostream & put (std::ostream &o, bool verbose)
virtual std::istream & put (std::istream &is)
virtual std::ostream & put_html (std::ostream &o)
void relinkControls (const MarSystem &a)
MarControlPtr remoteControl (const std::string &path)
 Get control of system in remote scope.
MarSystemremoteSystem (const std::string &path)
 Get system in remote scope.
void removeFromScope ()
void removeObserver (MarSystemObserver *observer)
void removeTimer (std::string name)
MarSystemscope ()
void setControlState (std::string cname, bool state)
void setctrlState (std::string cname, bool state)
void setctrlState (const char *cname, bool state)
void setctrlState (MarControlPtr control, bool state)
void setMATLABscript (std::string script)
virtual void setName (std::string name)
virtual void setParent (const MarSystem *parent)
virtual void setType (std::string type)
MarSystemsubSystem (const std::string &name)
 Get system in immediate scope.
void tick ()
std::string toString ()
virtual marostringtoString (marostring &m)
std::string toStringGraphViz ()
void toStringGraphViz (std::ostringstream &os_defs, std::ostringstream &os_links)
std::string toStringShort ()
void update (MarControlPtr sender=MarControlPtr())
void updatePath ()
bool updControl (const char *cname, MarControlPtr newcontrol, bool upd=true)
bool updControl (std::string cname, MarControlPtr newcontrol, bool upd=true)
void updControl (EvEvent *me)
void updControl (TmTime t, EvEvent *ev)
void updControl (TmTime t, Repeat r, EvEvent *ev)
void updControl (TmTime t, std::string cname, MarControlPtr control)
void updControl (TmTime t, Repeat r, std::string cname, MarControlPtr control)
void updctrl (EvEvent *me)
void updctrl (TmTime t, EvEvent *ev)
void updctrl (TmTime t, Repeat rep, EvEvent *ev)
void updctrl (TmTime t, std::string cname, MarControlPtr control)
void updctrl (TmTime t, Repeat rep, std::string cname, MarControlPtr control)
void updtimer (std::string tmr_ctrl_path, TmControlValue value)
void updtimer (std::string tmr_path, TmParam param)
void updtimer (std::string tmr_path, std::vector< TmParam > params)
virtual ~MarSystem ()

Static Public Member Functions

static std::string splitPathEnd (const std::string &path, std::string &remaining)

Data Fields

MarControlPtr ctrl_active_
MarControlPtr ctrl_debug_
MarControlPtr ctrl_inObservations_
MarControlPtr ctrl_inObsNames_
MarControlPtr ctrl_inSamples_
MarControlPtr ctrl_inStabilizingDelay_
MarControlPtr ctrl_israte_
MarControlPtr ctrl_mute_
MarControlPtr ctrl_onObservations_
MarControlPtr ctrl_onObsNames_
MarControlPtr ctrl_onSamples_
MarControlPtr ctrl_onStabilizingDelay_
MarControlPtr ctrl_osrate_
MarControlPtr ctrl_processedData_
MarControlPtr ctrl_verbose_

Protected Member Functions

virtual void myProcess (realvec &in, realvec &out)=0
 Processes data.
virtual void myUpdate (MarControlPtr sender)
 Updates internal state due to a control change.

Friends

class MarControl
class MarSystemManager
marsyas_EXPORT friend
std::ostream & 
operator<< (std::ostream &, MarSystem &)
marsyas_EXPORT friend
std::ostream & 
operator<< (std::ostream &, const std::map< std::string, MarControlPtr > &)
marsyas_EXPORT friend
std::istream & 
operator>> (std::istream &, MarSystem &)

Detailed Description

MarSystem transforms a realvec.

Abstract base class for any type of system. Basically a MarSystem takes as input a vector of float numbers (realvec) and produces a new vector (possibly with different dimensionality). Different types of computation can be used. MarSystems are the core processing blocks of Marsyas including transformations like FFT, Filter as well as feature extractors like Spectral Centroid.

Controls: (these are inherited by all MarSystems)

Definition at line 92 of file MarSystem.h.


Member Typedef Documentation

typedef std::vector<MarSystem*>::size_type child_count_t

Definition at line 100 of file MarSystem.h.

typedef std::vector<MarSystemObserver*>::size_type observer_count_t

Definition at line 101 of file MarSystem.h.


Constructor & Destructor Documentation

MarSystem ( std::string  type,
std::string  name 
)

Definition at line 41 of file MarSystem.cpp.

MarSystem ( const MarSystem a)

Definition at line 91 of file MarSystem.cpp.

~MarSystem ( ) [virtual]

Definition at line 276 of file MarSystem.cpp.


Member Function Documentation

bool addControl ( std::string  cname,
MarControlPtr  v 
)

Definition at line 1572 of file MarSystem.cpp.

bool addControl ( std::string  cname,
MarControlPtr  v,
MarControlPtr ptr 
)

Definition at line 1557 of file MarSystem.cpp.

bool addctrl ( std::string  cname,
MarControlPtr  v 
) [inline]

Definition at line 334 of file MarSystem.h.

bool addctrl ( std::string  cname,
MarControlPtr  v,
MarControlPtr ptr 
) [inline]

Definition at line 338 of file MarSystem.h.

bool addMarSystem ( MarSystem marsystem) [virtual]

Reimplemented in Accumulator.

Definition at line 341 of file MarSystem.cpp.

void addObserver ( MarSystemObserver observer)

Definition at line 2257 of file MarSystem.cpp.

void addTimer ( std::string  tmr_class,
std::string  tmr_ident 
)

Definition at line 1644 of file MarSystem.cpp.

void addTimer ( std::string  tmr_class,
std::string  tmr_ident,
std::vector< TmParam params 
)

Definition at line 1649 of file MarSystem.cpp.

void addToScope ( MarSystem marsystem)

Definition at line 422 of file MarSystem.cpp.

void attachMarSystem ( MarSystem system)

Definition at line 2274 of file MarSystem.cpp.

void checkFlow ( realvec in,
realvec out 
)

Definition at line 639 of file MarSystem.cpp.

MarSystem * child ( const std::string &  name)

Get immediate child by name.

Parameters:
nameChild's name (without type).

Definition at line 1394 of file MarSystem.cpp.

const std::vector<MarSystem*>& children ( ) const [inline]

Definition at line 406 of file MarSystem.h.

virtual MarSystem* clone ( ) const [pure virtual]

Implemented in BeatReferee, APDelayOsc, AimPZFC2, WekaSource, AimPZFC, PhaseLock, AimSAI, Accumulator, SoundFileSource, AudioSink, TimelineLabeler, BlitOsc, RunningAutocorrelation, AudioSource, OneRClassifier, GMMClassifier, MP3FileSource, Selector, ArffFileSink, TimeFreqPeakConnectivity, WekaSink, LPC, ShiftInput, SoundFileSourceHopper, BeatTimesSink, AimGammatone, PeakConvert2, BeatAgent, LyonPassiveEar, AimSSI, MatchBassModel, MidiFileSynthSource, RunningStatistics, TempoHypotheses, MFCC, NormCut, AimLocalMax, SeneffEar, AudioSinkBlocking, AuFileSource, TriangularFilterBank, BICchangeDetector, CompExp, SVMClassifier, AimBoxes, SVMClassifier, NormMaxMin, Resample, AimHCL2, AimVQ, DTW, NoiseGate, AimHCL, Annotator, ClassificationReport, AutoCorrelation, DPWOsc, DeInterleaveSizecontrol, HWPS, PeakConvert, WavFileSource, AudioSourceBlocking, Deinterleave, GaussianClassifier, HarmonicStrength, PvOscBank, SimulMaskingFft, PeakDistanceHorizontality, Plucked, Combinator, Delay, Spectrum2Mel, SelfSimilarityMatrix, Fanout, PlotSink, AliasingOsc, PvUnconvert, BeatHistoFeatures, MarSystemTemplateAdvanced, OnsetTimes, WavFileSink, DeltaFirstOrderRegression, PeakFeatureSelect, Confidence, DelaySamples, ERB, GStreamerSource, MeddisHairCell, Limiter, PeakViewSink, ResampleSinc, Spectrum, McAulayQuatieri, SliceShuffle, PitchDiff, ResampleBezier, Sum, UpdatingBassModel, Yin, ADRess, CARFAC, FlowCutSource, Inject, Peaker, PeakViewMerge, WavFileSource2, Windowing, FMeasure, Krumhansl_key_finder, OnePole, PeakerOnset, RawFileSource, RemoveObservations, SNR, BeatPhase, CollectionFileSource, MarSystemTemplateBasic, PeakSynthOscBank, AuFileSink, DownSampler, MixToMono, Spectrum2Chroma, CrossCorrelation, EnhADRess, FanOutIn, KNNClassifier, PvConvert, WaveguideOsc, AdditiveOsc, MidiOutput, Spectrum2ACMChroma, CsvFileSource, MP3FileSink, NormalizeAbs, PCA, PeakViewSource, RadioDrumInput, RealvecSource, PvMultiResolution, SVFilter, MathPower, MidiInput, PeakSynthOsc, PowerSpectrum, OscTransmitter, ADSR, AubioYin, Biquad, DTWWD, Filter, SCF, PatchMatrix, Shredder, SliceDelta, SoundFileSource2, SpectralFlatnessAllBands, ViconFileSource, ADRessSpectrum, Memory, OggFileSource, ParallelMatrixWeight, PeakPeriods2BPM, SFM, SimilarityMatrix, SMO, ConstQFiltering, Envelope, Flux, MarSystemTemplateMedium, PeakEnhancer, PowerToAverageRatio, RealvecSink, SOM, SpectralCentroidBandNorm, SubtractMean, PeakClusterSelect, PvOverlapadd, RBF, SilenceRemove, WaveletBands, WHaSp, AbsSoundFileSource2, Daub4, Fanin, MeanAbsoluteDeviation, PeakRatio, PeakSynthFFT, ShiftOutput, SoundFileSink, ChromaFilter, LPCC, Metric2, Rolloff, SineSource, FlowThru, HarmonicEnhancer, LSP, Metric, Parallel, SpectralTransformations, Differentiator, MemorySource, Pitch2Chroma, Shifter, StereoSpectrumSources, Upsample, AutoCorrelationFFT, AveragingPattern, BeatHistogram, BeatHistogramFromPeaks, ClassOutputSink, Gain, MaxMin, NoiseSource, PvFold, PWMSource, ResampleLinear, ResampleNearestNeighbour, AbsMax, Chroma, Clip, Esitar, F0Analysis, OverlapAdd, AccentFilterBank, Centroid, InvSpectrum, PeakLabeler, PeakResidual, StereoSpectrumFeatures, Subtract, Vibrato, WaveletPyramid, ADRessStereoSpectrum, DCSource, MedianFilter, Mono2Stereo, Ratio, Series, Signum, SpectralSNR, StereoSpectrum, Unfold, ZeroRClassifier, OrcaSnip, PeakerAdaptive, StandardDeviation, TimeStretch, WaveletStep, ANN_node, EnhADRessStereoSpectrum, HalfWaveRectifier, Kurtosis, MaxArgMax, Median, MinArgMin, StretchLinear, ZeroCrossings, Compressor, Mean, PeakInObservation, Transposer, AMDF, Cartesian2Polar, Cascade, FM, MarFileSink, Negative, Norm, Panorama, Peak2Rms, Polar2Cartesian, Skewness, Threshold, Whitening, FullWaveRectifier, NormMatrix, PeakMask, Reassign, PhiSEMSource, Reciprocal, Reverse, Square, Energy, Product, Power, PvConvolve, Rms, Sidechain, Normalize, ChromaScale, Delta, FlowToControl, PhiSEMFilter, CsvSink, and Map.

MarControlPtr control ( const std::string &  name)

Get immediate control by name.

Parameters:
nameControl name (without type).

Definition at line 1407 of file MarSystem.cpp.

const std::map<std::string, MarControlPtr>& controls ( ) [inline]

Definition at line 244 of file MarSystem.h.

void detachMarSystem ( MarSystem system)

Definition at line 2289 of file MarSystem.cpp.

const std::string & getAbsPath ( ) const

Definition at line 613 of file MarSystem.cpp.

MarSystem * getChildMarSystem ( std::string  path) [virtual]

Get ...[grand-][grand-]child by path.

Parameters:
pathPath composed of child types and names, e.g. "child-type/child-name/child-type/child-name/..."

Definition at line 470 of file MarSystem.cpp.

vector< MarSystem * > getChildren ( ) [virtual]

Definition at line 1351 of file MarSystem.cpp.

MarControlPtr getControl ( std::string  path,
bool  searchParent = false,
bool  searchChildren = true 
)

Get control of ...[grand-][grand-]child by path.

Parameters:
pathPath composed of types and names of children and a type and name of a control, e.g. "child-type/child-name/child-type/child-name/.../control-type/control-name"
searchParentWhether to search for matching control among parents (recursively).
searchChildrenWhether to search for mathing control among children (recursively).

Definition at line 1090 of file MarSystem.cpp.

MarControlPtr getControlLocal ( std::string  cname) [inline]

Definition at line 322 of file MarSystem.h.

map< mrs_string, MarControlPtr > getControls ( std::map< std::string, MarControlPtr > *  cmap = NULL)

Definition at line 1306 of file MarSystem.cpp.

MarControlPtr getctrl ( std::string  cname) [inline]

Definition at line 326 of file MarSystem.h.

const map< mrs_string, MarControlPtr > & getLocalControls ( )

Definition at line 1298 of file MarSystem.cpp.

mrs_string getMATLABscript ( )

Definition at line 1685 of file MarSystem.cpp.

const std::string & getName ( ) const

Definition at line 601 of file MarSystem.cpp.

MarSystem* getParent ( ) const [inline]

Definition at line 386 of file MarSystem.h.

const std::string & getPrefix ( ) const

Definition at line 607 of file MarSystem.cpp.

mrs_natural getTime ( std::string  timer_name)

Definition at line 1673 of file MarSystem.cpp.

const std::string & getType ( void  ) const

Definition at line 595 of file MarSystem.cpp.

bool hasControl ( std::string  cname,
bool  searchChildren = true 
)

Definition at line 1180 of file MarSystem.cpp.

bool hasControlLocal ( MarControlPtr  control) [inline]

Definition at line 298 of file MarSystem.h.

bool hasControlLocal ( std::string  cname) [inline]

Definition at line 303 of file MarSystem.h.

bool hasControlState ( std::string  cname)

Definition at line 1155 of file MarSystem.cpp.

bool hasctrlState ( std::string  cname) [inline]

Definition at line 363 of file MarSystem.h.

bool hasctrlState ( char *  cname) [inline]

Definition at line 367 of file MarSystem.h.

bool hasctrlState ( MarControlPtr  control) [inline]

Definition at line 371 of file MarSystem.h.

bool hasObserver ( MarSystemObserver observer) const

Definition at line 2249 of file MarSystem.cpp.

bool isComposite ( ) [inline]

Definition at line 308 of file MarSystem.h.

bool isDescendentOf ( MarSystem parent)

Definition at line 410 of file MarSystem.cpp.

bool isUpdating ( )

Definition at line 754 of file MarSystem.cpp.

bool linkControl ( std::string  cname1,
std::string  cname2,
bool  update = true 
)

Definition at line 940 of file MarSystem.cpp.

virtual void myProcess ( realvec in,
realvec out 
) [protected, pure virtual]

Processes data.

Parameters:
inInput data to read.
outOutput data to write.

Implement this method in subclass to define specific data processing.

Implemented in BeatReferee, APDelayOsc, AimPZFC2, AimPZFC, WekaSource, PhaseLock, AimSAI, Accumulator, SoundFileSource, AudioSink, TimelineLabeler, BlitOsc, RunningAutocorrelation, AudioSource, OneRClassifier, GMMClassifier, MP3FileSource, Selector, ArffFileSink, TimeFreqPeakConnectivity, WekaSink, SoundFileSourceHopper, LPC, ShiftInput, AimGammatone, BeatTimesSink, PeakConvert2, BeatAgent, LyonPassiveEar, AimSSI, MatchBassModel, MidiFileSynthSource, RunningStatistics, OscTransmitter, TempoHypotheses, AimLocalMax, AuFileSource, MFCC, NormCut, SeneffEar, AudioSinkBlocking, TriangularFilterBank, BICchangeDetector, CompExp, AimBoxes, SVMClassifier, Resample, SVMClassifier, AimHCL2, AimVQ, CARFAC, NormMaxMin, AimHCL, Annotator, DTW, NoiseGate, ClassificationReport, DPWOsc, WavFileSource, AutoCorrelation, DeInterleaveSizecontrol, HarmonicStrength, HWPS, PeakConvert, PvOscBank, AudioSourceBlocking, Deinterleave, GaussianClassifier, PeakDistanceHorizontality, SimulMaskingFft, Combinator, Plucked, Delay, Spectrum2Mel, PlotSink, SelfSimilarityMatrix, WavFileSink, AliasingOsc, Fanout, Esitar, PvUnconvert, BeatHistoFeatures, DeltaFirstOrderRegression, MarSystemTemplateAdvanced, OnsetTimes, DelaySamples, PeakFeatureSelect, Confidence, ERB, MeddisHairCell, GStreamerSource, Limiter, PeakViewSink, ResampleSinc, SliceShuffle, Spectrum, McAulayQuatieri, MidiOutput, PitchDiff, WavFileSource2, Inject, ResampleBezier, Sum, UpdatingBassModel, Yin, ADRess, AuFileSink, FlowCutSource, Krumhansl_key_finder, Peaker, PeakViewMerge, RemoveObservations, Windowing, FMeasure, MarSystemTemplateBasic, OnePole, PeakerOnset, PeakSynthOscBank, PvConvert, SNR, BeatPhase, CollectionFileSource, MixToMono, RawFileSource, DownSampler, Spectrum2ACMChroma, Spectrum2Chroma, CrossCorrelation, EnhADRess, FanOutIn, KNNClassifier, MP3FileSink, WaveguideOsc, AdditiveOsc, CsvFileSource, NormalizeAbs, PCA, PeakViewSource, RadioDrumInput, RealvecSource, SVFilter, MathPower, PvMultiResolution, ADSR, MidiInput, PeakSynthOsc, PowerSpectrum, AubioYin, Biquad, DTWWD, Filter, SCF, SoundFileSource2, SliceDelta, SpectralFlatnessAllBands, ViconFileSource, ParallelMatrixWeight, PatchMatrix, Shredder, ADRessSpectrum, Envelope, Memory, OggFileSource, PeakEnhancer, PeakPeriods2BPM, PowerToAverageRatio, SFM, SimilarityMatrix, SMO, SOM, SpectralCentroidBandNorm, SubtractMean, AbsSoundFileSource2, ConstQFiltering, Flux, MarSystemTemplateMedium, RealvecSink, SpectralTransformations, MeanAbsoluteDeviation, PeakClusterSelect, PvOverlapadd, RBF, SilenceRemove, SoundFileSink, WaveletBands, WHaSp, Fanin, PeakRatio, PeakSynthFFT, ShiftOutput, ChromaFilter, Daub4, FlowThru, LPCC, Pitch2Chroma, Rolloff, SineSource, HarmonicEnhancer, LSP, Metric2, Parallel, Differentiator, F0Analysis, MemorySource, Metric, Shifter, StereoSpectrumSources, Upsample, AutoCorrelationFFT, AveragingPattern, BeatHistogram, BeatHistogramFromPeaks, ClassOutputSink, Gain, NoiseSource, PvFold, PWMSource, ResampleLinear, ResampleNearestNeighbour, Chroma, Clip, MaxMin, MedianFilter, OverlapAdd, AbsMax, AccentFilterBank, Centroid, InvSpectrum, PeakLabeler, PeakResidual, Series, StereoSpectrumFeatures, Subtract, Vibrato, WaveletPyramid, ADRessStereoSpectrum, DCSource, Mono2Stereo, Signum, SpectralSNR, StereoSpectrum, Unfold, ZeroRClassifier, OrcaSnip, PeakerAdaptive, PeakInObservation, StandardDeviation, TimeStretch, WaveletStep, ANN_node, EnhADRessStereoSpectrum, HalfWaveRectifier, Kurtosis, MaxArgMax, Median, MinArgMin, StretchLinear, ZeroCrossings, Compressor, Mean, Peak2Rms, Transposer, AMDF, Cartesian2Polar, MarFileSink, Negative, Norm, Panorama, Polar2Cartesian, Skewness, Whitening, Energy, FullWaveRectifier, NormMatrix, PeakMask, Reassign, PhiSEMSource, Power, Product, Reciprocal, Reverse, Square, AbsSoundFileSink, BaseAudioSink, FM, AbsSoundFileSource, PvConvolve, Rms, Normalize, ChromaScale, and PhiSEMFilter.

void myUpdate ( MarControlPtr  sender) [protected, virtual]

Updates internal state due to a control change.

Parameters:
senderThe control that triggered the update; more precisely, any control passed to the update() method - could be an invalid one.

Implement this method in subclass to define specific response to control changes.

Reimplemented in OscTransmitter, PlotSink, Spectrum2ACMChroma, SVFilter, ADSR, Pitch2Chroma, F0Analysis, Upsample, MedianFilter, PeakInObservation, and Peak2Rms.

Definition at line 736 of file MarSystem.cpp.

MarSystem* parentScope ( ) [inline]

Definition at line 396 of file MarSystem.h.

std::string path ( ) const

Definition at line 1374 of file MarSystem.cpp.

void process ( realvec in,
realvec out 
)

Definition at line 671 of file MarSystem.cpp.

ostream & put ( std::ostream &  o,
bool  verbose 
) [virtual]

Definition at line 1874 of file MarSystem.cpp.

istream & put ( std::istream &  is) [virtual]

Definition at line 2069 of file MarSystem.cpp.

ostream & put_html ( std::ostream &  o) [virtual]

Definition at line 1952 of file MarSystem.cpp.

void relinkControls ( const MarSystem a)

Definition at line 227 of file MarSystem.cpp.

MarControlPtr remoteControl ( const std::string &  path)

Get control of system in remote scope.

Parameters:
pathPath composed of system names (without types) and a control name. For example: "name/.../name/control-name" or "/name/.../name/control-name".

Each following name in the path is looked up in previous name's scope. A "/" at beginning starts lookup at root system, else lookup starts at this system.

Definition at line 1537 of file MarSystem.cpp.

MarSystem * remoteSystem ( const std::string &  path)

Get system in remote scope.

Parameters:
pathPath composed of system names (without types). For example: "name/name/..." or "/name/name/...".

Each following name in the path is looked up in previous name's scope. A "/" at beginning starts lookup at root system, else lookup starts at this system.

Definition at line 1483 of file MarSystem.cpp.

void removeFromScope ( )

Definition at line 453 of file MarSystem.cpp.

void removeObserver ( MarSystemObserver observer)

Definition at line 2265 of file MarSystem.cpp.

void removeTimer ( std::string  name)

Definition at line 1638 of file MarSystem.cpp.

MarSystem* scope ( )
void setControlState ( std::string  cname,
bool  state 
)

Definition at line 1168 of file MarSystem.cpp.

void setctrlState ( std::string  cname,
bool  state 
) [inline]

Definition at line 348 of file MarSystem.h.

void setctrlState ( const char *  cname,
bool  state 
) [inline]

Definition at line 352 of file MarSystem.h.

void setctrlState ( MarControlPtr  control,
bool  state 
) [inline]

Definition at line 356 of file MarSystem.h.

void setMATLABscript ( std::string  script)

Definition at line 1679 of file MarSystem.cpp.

void setName ( std::string  name) [virtual]

Definition at line 543 of file MarSystem.cpp.

void setParent ( const MarSystem parent) [virtual]

Definition at line 534 of file MarSystem.cpp.

void setType ( std::string  type) [virtual]

Definition at line 569 of file MarSystem.cpp.

std::string splitPathEnd ( const std::string &  path,
std::string &  remaining 
) [static]

Definition at line 1356 of file MarSystem.cpp.

MarSystem * subSystem ( const std::string &  name)

Get system in immediate scope.

Parameters:
nameSystem's name (without type).

Definition at line 1421 of file MarSystem.cpp.

void tick ( )

Definition at line 716 of file MarSystem.cpp.

mrs_string toString ( )

Reimplemented in CARFAC.

Definition at line 1702 of file MarSystem.cpp.

marostring & toString ( marostring m) [virtual]

Definition at line 1795 of file MarSystem.cpp.

mrs_string toStringGraphViz ( )

Definition at line 1711 of file MarSystem.cpp.

void toStringGraphViz ( std::ostringstream &  os_defs,
std::ostringstream &  os_links 
)

Definition at line 1728 of file MarSystem.cpp.

mrs_string toStringShort ( )

Definition at line 1691 of file MarSystem.cpp.

void update ( MarControlPtr  sender = MarControlPtr())

Definition at line 760 of file MarSystem.cpp.

void updatePath ( )

Definition at line 619 of file MarSystem.cpp.

bool updControl ( const char *  cname,
MarControlPtr  newcontrol,
bool  upd = true 
)

Definition at line 1211 of file MarSystem.cpp.

bool updControl ( std::string  cname,
MarControlPtr  newcontrol,
bool  upd = true 
)

Definition at line 1222 of file MarSystem.cpp.

void updControl ( EvEvent me)

Definition at line 1261 of file MarSystem.cpp.

void updControl ( TmTime  t,
EvEvent ev 
)

Definition at line 1271 of file MarSystem.cpp.

void updControl ( TmTime  t,
Repeat  r,
EvEvent ev 
)

Definition at line 1277 of file MarSystem.cpp.

void updControl ( TmTime  t,
std::string  cname,
MarControlPtr  control 
)

Definition at line 1283 of file MarSystem.cpp.

void updControl ( TmTime  t,
Repeat  r,
std::string  cname,
MarControlPtr  control 
)

Definition at line 1289 of file MarSystem.cpp.

void updctrl ( EvEvent me)

Definition at line 1604 of file MarSystem.cpp.

void updctrl ( TmTime  t,
EvEvent ev 
)

Definition at line 1614 of file MarSystem.cpp.

void updctrl ( TmTime  t,
Repeat  rep,
EvEvent ev 
)

Definition at line 1620 of file MarSystem.cpp.

void updctrl ( TmTime  t,
std::string  cname,
MarControlPtr  control 
)

Definition at line 1626 of file MarSystem.cpp.

void updctrl ( TmTime  t,
Repeat  rep,
std::string  cname,
MarControlPtr  control 
)

Definition at line 1632 of file MarSystem.cpp.

void updtimer ( std::string  tmr_ctrl_path,
TmControlValue  value 
)

Definition at line 1655 of file MarSystem.cpp.

void updtimer ( std::string  tmr_path,
TmParam  param 
)

Definition at line 1660 of file MarSystem.cpp.

void updtimer ( std::string  tmr_path,
std::vector< TmParam params 
)

Definition at line 1665 of file MarSystem.cpp.


Friends And Related Function Documentation

friend class MarControl [friend]

Definition at line 97 of file MarSystem.h.

friend class MarSystemManager [friend]

Definition at line 96 of file MarSystem.h.

marsyas_EXPORT friend std::ostream& operator<< ( std::ostream &  o,
MarSystem sys 
) [friend]

Definition at line 2299 of file MarSystem.cpp.

marsyas_EXPORT friend std::ostream& operator<< ( std::ostream &  o,
const std::map< std::string, MarControlPtr > &  c 
) [friend]

Definition at line 2313 of file MarSystem.cpp.

marsyas_EXPORT friend std::istream& operator>> ( std::istream &  is,
MarSystem sys 
) [friend]

Definition at line 2306 of file MarSystem.cpp.


Field Documentation

Definition at line 539 of file MarSystem.h.

Definition at line 536 of file MarSystem.h.

Definition at line 527 of file MarSystem.h.

Definition at line 529 of file MarSystem.h.

Definition at line 526 of file MarSystem.h.

Definition at line 530 of file MarSystem.h.

Definition at line 528 of file MarSystem.h.

Definition at line 538 of file MarSystem.h.

Definition at line 532 of file MarSystem.h.

Definition at line 534 of file MarSystem.h.

Definition at line 531 of file MarSystem.h.

Definition at line 535 of file MarSystem.h.

Definition at line 533 of file MarSystem.h.

Definition at line 540 of file MarSystem.h.

Definition at line 537 of file MarSystem.h.


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