瀏覽代碼

cmProc4.h/c : Update comments and documentation on cmScMod object.

master
kevin 10 年之前
父節點
當前提交
19d31789db
共有 2 個文件被更改,包括 29 次插入1 次删除
  1. 3
    0
      cmProc4.c
  2. 26
    1
      cmProc4.h

+ 3
- 0
cmProc4.c 查看文件

3535
   return rc;
3535
   return rc;
3536
 }
3536
 }
3537
 
3537
 
3538
+/*
3538
 cmRC_t _cmScModulatorParse2( cmScModulator* p, cmCtx_t* ctx, cmSymTblH_t stH, const cmChar_t* fn )
3539
 cmRC_t _cmScModulatorParse2( cmScModulator* p, cmCtx_t* ctx, cmSymTblH_t stH, const cmChar_t* fn )
3539
 {
3540
 {
3540
   cmRC_t        rc  = cmOkRC;
3541
   cmRC_t        rc  = cmOkRC;
3648
 
3649
 
3649
   return rc;
3650
   return rc;
3650
 }
3651
 }
3652
+*/
3651
 
3653
 
3652
 cmRC_t _cmScModulatorParse( cmScModulator* p, cmCtx_t* ctx, cmSymTblH_t stH, const cmChar_t* fn )
3654
 cmRC_t _cmScModulatorParse( cmScModulator* p, cmCtx_t* ctx, cmSymTblH_t stH, const cmChar_t* fn )
3653
 {
3655
 {
4140
   }
4142
   }
4141
     
4143
     
4142
   
4144
   
4145
+  // Update the active variables
4143
   cmScModVar_t* pp = NULL;
4146
   cmScModVar_t* pp = NULL;
4144
   cmScModVar_t* vp = p->alist;
4147
   cmScModVar_t* vp = p->alist;
4145
   for(; vp!=NULL; vp=vp->alink)
4148
   for(; vp!=NULL; vp=vp->alink)

+ 26
- 1
cmProc4.h 查看文件

495
 void       cmScAlignScanMarkers(  cmRpt_t* rpt, cmTlH_t tlH, cmScH_t scH );
495
 void       cmScAlignScanMarkers(  cmRpt_t* rpt, cmTlH_t tlH, cmScH_t scH );
496
 
496
 
497
 //=======================================================================================================================
497
 //=======================================================================================================================
498
+/*
499
+Syntax: <loc> <mod> <var> <type>   <params>
500
+  <loc> - score location
501
+  <mod> - name of the modulator 
502
+  <var> - variable name 
503
+  <type> - type of operation
504
+
505
+  <params>
506
+
507
+    <min>  - set a variable min value
508
+    <max>  - set a variable max value
509
+    <rate> - limit how often a variable is transmitted while it is ramping
510
+    <val>  - type dependent value - see 'Types' below.  
511
+    <end>  - ending value for a ramping variable
512
+    <dur>  - determines the length of time to get to the ending value
513
+
514
+  The value of parameters may be literal numeric values or may refer to
515
+   variables by their name.
516
+
517
+Types:
518
+  set    = set <var> to <val> which may be a literal or another variable.
519
+  line   = ramp from its current value to <val> over <dur> seconds
520
+  sline  = set <var> to <val> and ramp to <end> over <dur> seconds
521
+
522
+ */
498
 enum
523
 enum
499
 {
524
 {
500
   kInvalidModTId,
525
   kInvalidModTId,
535
   unsigned                 phase;    // cycle phase since activation  
560
   unsigned                 phase;    // cycle phase since activation  
536
   double                   min;
561
   double                   min;
537
   double                   max;
562
   double                   max;
538
-  double                   rate;     // output rate in milliseconds
563
+  double                   rate;     // output rate in milliseconds (use
539
   struct cmScModEntry_str* entry;    // last entry assoc'd with this value
564
   struct cmScModEntry_str* entry;    // last entry assoc'd with this value
540
   struct cmScModVar_str*   vlink;    // p->vlist link
565
   struct cmScModVar_str*   vlink;    // p->vlist link
541
   struct cmScModVar_str*   alink;    // p->alist link
566
   struct cmScModVar_str*   alink;    // p->alist link

Loading…
取消
儲存