Browse Source

cmXScore.h/c : Added 'outFn' parameter to cmXScoreTest().

master
Kevin Larke 8 years ago
parent
commit
b1a404d34c
2 changed files with 4 additions and 3 deletions
  1. 3
    2
      app/cmXScore.c
  2. 1
    1
      app/cmXScore.h

+ 3
- 2
app/cmXScore.c View File

@@ -1719,7 +1719,7 @@ cmXsRC_t cmXScoreWriteMidi( cmXsH_t h, const cmChar_t* fn )
1719 1719
   }  
1720 1720
 }
1721 1721
 
1722
-cmXsRC_t cmXScoreTest( cmCtx_t* ctx, const cmChar_t* xmlFn, const cmChar_t* midiFn )
1722
+cmXsRC_t cmXScoreTest( cmCtx_t* ctx, const cmChar_t* xmlFn, const cmChar_t* midiFn, const cmChar_t* outFn )
1723 1723
 {
1724 1724
   cmXsRC_t rc;
1725 1725
   cmXsH_t h = cmXsNullHandle;
@@ -1727,7 +1727,8 @@ cmXsRC_t cmXScoreTest( cmCtx_t* ctx, const cmChar_t* xmlFn, const cmChar_t* midi
1727 1727
   if((rc = cmXScoreInitialize( ctx, &h, xmlFn, midiFn)) != kOkXsRC )
1728 1728
     return cmErrMsg(&ctx->err,rc,"XScore alloc failed.");
1729 1729
 
1730
-  cmXScoreWriteCsv(h,"/Users/kevin/temp/a0.csv");
1730
+  if( outFn != NULL )
1731
+    cmXScoreWriteCsv(h,outFn);
1731 1732
   cmXScoreReport(h,&ctx->rpt,true);
1732 1733
   
1733 1734
   return cmXScoreFinalize(&h);

+ 1
- 1
app/cmXScore.h View File

@@ -62,7 +62,7 @@ extern "C" {
62 62
 
63 63
   void     cmXScoreReport( cmXsH_t h, cmRpt_t* rpt, bool sortFl );
64 64
 
65
-  cmXsRC_t cmXScoreTest( cmCtx_t* ctx, const cmChar_t* xmlFn, const cmChar_t* midiFn );
65
+  cmXsRC_t cmXScoreTest( cmCtx_t* ctx, const cmChar_t* xmlFn, const cmChar_t* midiFn, const cmChar_t* outFn );
66 66
   
67 67
 #ifdef __cplusplus
68 68
 }

Loading…
Cancel
Save