From 19d31789dba3f8cdad432bd8a4dc93b5280be488 Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 29 Sep 2013 18:46:20 -0700 Subject: [PATCH] cmProc4.h/c : Update comments and documentation on cmScMod object. --- cmProc4.c | 3 +++ cmProc4.h | 27 ++++++++++++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/cmProc4.c b/cmProc4.c index 8b6deb0..388132d 100644 --- a/cmProc4.c +++ b/cmProc4.c @@ -3535,6 +3535,7 @@ cmScModEntry_t* _cmScModulatorInsertEntry(cmScModulator* p, unsigned idx, unsign return rc; } +/* cmRC_t _cmScModulatorParse2( cmScModulator* p, cmCtx_t* ctx, cmSymTblH_t stH, const cmChar_t* fn ) { cmRC_t rc = cmOkRC; @@ -3648,6 +3649,7 @@ cmRC_t _cmScModulatorParse2( cmScModulator* p, cmCtx_t* ctx, cmSymTblH_t stH, co return rc; } +*/ cmRC_t _cmScModulatorParse( cmScModulator* p, cmCtx_t* ctx, cmSymTblH_t stH, const cmChar_t* fn ) { @@ -4140,6 +4142,7 @@ cmRC_t cmScModulatorExec( cmScModulator* p, unsigned scLocIdx ) } + // Update the active variables cmScModVar_t* pp = NULL; cmScModVar_t* vp = p->alist; for(; vp!=NULL; vp=vp->alink) diff --git a/cmProc4.h b/cmProc4.h index 69caf4c..8231091 100644 --- a/cmProc4.h +++ b/cmProc4.h @@ -495,6 +495,31 @@ unsigned cmScAlignScanToTimeLineEvent( cmScMatcher* p, cmTlH_t tlH, cmTlObj_t* void cmScAlignScanMarkers( cmRpt_t* rpt, cmTlH_t tlH, cmScH_t scH ); //======================================================================================================================= +/* +Syntax: + - score location + - name of the modulator + - variable name + - type of operation + + + + - set a variable min value + - set a variable max value + - limit how often a variable is transmitted while it is ramping + - type dependent value - see 'Types' below. + - ending value for a ramping variable + - determines the length of time to get to the ending value + + The value of parameters may be literal numeric values or may refer to + variables by their name. + +Types: + set = set to which may be a literal or another variable. + line = ramp from its current value to over seconds + sline = set to and ramp to over seconds + + */ enum { kInvalidModTId, @@ -535,7 +560,7 @@ typedef struct cmScModVar_str unsigned phase; // cycle phase since activation double min; double max; - double rate; // output rate in milliseconds + double rate; // output rate in milliseconds (use struct cmScModEntry_str* entry; // last entry assoc'd with this value struct cmScModVar_str* vlink; // p->vlist link struct cmScModVar_str* alink; // p->alist link