Browse Source

cmMidiScoreFollow.c : Add call to cmScoreMatchGraphicUpdateMidiFromScore().

master
kevin 8 years ago
parent
commit
21d13a94fd
1 changed files with 7 additions and 3 deletions
  1. 7
    3
      app/cmMidiScoreFollow.c

+ 7
- 3
app/cmMidiScoreFollow.c View File

151
 {
151
 {
152
   cmMsfRC_t             rc          = kOkMsfRC;
152
   cmMsfRC_t             rc          = kOkMsfRC;
153
   //const cmChar_t* scoreFn         = cmFsMakeUserFn("src/kc/src/kc/data","mod2e","csv",NULL);
153
   //const cmChar_t* scoreFn         = cmFsMakeUserFn("src/kc/src/kc/data","mod2e","csv",NULL);
154
-  const cmChar_t*          scoreFn  = cmFsMakeUserFn("temp","a5","csv",NULL);
154
+  const cmChar_t*          scoreFn  = cmFsMakeUserFn("temp","a6","csv",NULL);
155
   const cmChar_t*          midiFn   = cmFsMakeUserFn("media/projects/imag_themes/scores/gen","round1-utf8_11","mid",NULL);
155
   const cmChar_t*          midiFn   = cmFsMakeUserFn("media/projects/imag_themes/scores/gen","round1-utf8_11","mid",NULL);
156
   const cmChar_t*          outFn    = cmFsMakeUserFn("temp","match","txt",NULL);
156
   const cmChar_t*          outFn    = cmFsMakeUserFn("temp","match","txt",NULL);
157
   const cmChar_t*          svgFn    = cmFsMakeUserFn("temp","score0","html",NULL);
157
   const cmChar_t*          svgFn    = cmFsMakeUserFn("temp","score0","html",NULL);
158
+  const cmChar_t*          newMidiFn= cmFsMakeUserFn("temp","a6","mid",NULL);
158
   const cmChar_t*          tlBarFn  = cmFsMakeUserFn("temp",NULL,"time_line_temp","txt",NULL);
159
   const cmChar_t*          tlBarFn  = cmFsMakeUserFn("temp",NULL,"time_line_temp","txt",NULL);
159
   
160
   
160
   double                   srate    = 96000.0;
161
   double                   srate    = 96000.0;
262
 
263
 
263
   //_cmMsf_ReportMidiErrors(&sfr, scH, m, mN);
264
   //_cmMsf_ReportMidiErrors(&sfr, scH, m, mN);
264
 
265
 
265
-  //cmScorePrint(scH,&atc->ctx->rpt);
266
-  //cmMidiFilePrintMsgs( mfH, &atc->ctx->rpt );
266
+  //cmScorePrint(scH,&ctx->rpt);
267
+  //cmMidiFilePrintMsgs( mfH, &ctx->rpt );
267
 
268
 
268
   // write the tracking match file as an SVG file.
269
   // write the tracking match file as an SVG file.
269
   cmScoreMatchGraphicWrite( smgH, svgFn );
270
   cmScoreMatchGraphicWrite( smgH, svgFn );
271
   // write a cmTimeLine file which contains markers at each bar position
272
   // write a cmTimeLine file which contains markers at each bar position
272
   //cmScoreMatchGraphicGenTimeLineBars(smgH, tlBarFn, srate );
273
   //cmScoreMatchGraphicGenTimeLineBars(smgH, tlBarFn, srate );
273
 
274
 
275
+  cmScoreMatchGraphicUpdateMidiFromScore( ctx, smgH, newMidiFn );
276
+
274
 
277
 
275
  errLabel:
278
  errLabel:
276
   
279
   
287
   cmFsFreeFn(midiFn);
290
   cmFsFreeFn(midiFn);
288
   cmFsFreeFn(outFn);
291
   cmFsFreeFn(outFn);
289
   cmFsFreeFn(svgFn);
292
   cmFsFreeFn(svgFn);
293
+  cmFsFreeFn(newMidiFn);
290
   cmFsFreeFn(tlBarFn);
294
   cmFsFreeFn(tlBarFn);
291
   
295
   
292
   return rc;
296
   return rc;

Loading…
Cancel
Save