From b17635cc78f8a5eb232c77bd9f53f1342bf6e378 Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 16 Mar 2016 18:35:28 -0400 Subject: [PATCH] cmXScore.c : Tied notes now must be assigned to the same voice. --- app/cmXScore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/cmXScore.c b/app/cmXScore.c index c28dea4..ea9fad5 100644 --- a/app/cmXScore.c +++ b/app/cmXScore.c @@ -796,7 +796,7 @@ bool _cmXScoreFindTiedNote( cmXScore_t* p, cmXsMeas_t* mp, cmXsNote_t* np, bool // for each note starting at nnp for(; nnp!=NULL; nnp=nnp->slink) { - if( /*nnp->voice->id == np->voice->id &&*/ nnp->step == np->step && nnp->octave == np->octave ) + if( nnp->voice->id == np->voice->id && nnp->step == np->step && nnp->octave == np->octave ) { nnp->flags |= kTieProcXsFl; nnp->flags = cmClrFlag(nnp->flags,kOnsetXsFl); @@ -821,7 +821,7 @@ bool _cmXScoreFindTiedNote( cmXScore_t* p, cmXsMeas_t* mp, cmXsNote_t* np, bool } - cmErrWarnMsg(&p->err,kUnterminatedTieXsRC,"The tied %c%c%i in measure %i was not terminated.",np->step,acc,np->octave,measNumb); + cmErrWarnMsg(&p->err,kUnterminatedTieXsRC,"The tied %c%c%i in measure %i was not terminated.",np->step,acc,np->octave,measNumb0); return false; } @@ -1659,7 +1659,7 @@ cmXsRC_t cmXScoreTest( cmCtx_t* ctx, const cmChar_t* xmlFn, const cmChar_t* midi if((rc = cmXScoreInitialize( ctx, &h, xmlFn, midiFn)) != kOkXsRC ) return cmErrMsg(&ctx->err,rc,"XScore alloc failed."); - cmXScoreWriteCsv(h,"/home/kevin/temp/a0.csv"); + cmXScoreWriteCsv(h,"/Users/kevin/temp/a0.csv"); cmXScoreReport(h,&ctx->rpt,false); return cmXScoreFinalize(&h);