|
@@ -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);
|