Sfoglia il codice sorgente

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

master
kevin 10 anni fa
parent
commit
19d31789db
2 ha cambiato i file con 29 aggiunte e 1 eliminazioni
  1. 3
    0
      cmProc4.c
  2. 26
    1
      cmProc4.h

+ 3
- 0
cmProc4.c Vedi File

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

+ 26
- 1
cmProc4.h Vedi File

@@ -495,6 +495,31 @@ unsigned   cmScAlignScanToTimeLineEvent( cmScMatcher* p, cmTlH_t tlH, cmTlObj_t*
495 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 523
 enum
499 524
 {
500 525
   kInvalidModTId,
@@ -535,7 +560,7 @@ typedef struct cmScModVar_str
535 560
   unsigned                 phase;    // cycle phase since activation  
536 561
   double                   min;
537 562
   double                   max;
538
-  double                   rate;     // output rate in milliseconds
563
+  double                   rate;     // output rate in milliseconds (use
539 564
   struct cmScModEntry_str* entry;    // last entry assoc'd with this value
540 565
   struct cmScModVar_str*   vlink;    // p->vlist link
541 566
   struct cmScModVar_str*   alink;    // p->alist link

Loading…
Annulla
Salva