cmScore.c : cmScorePrint() now prints pedal events.
This commit is contained in:
parent
c44a890088
commit
7db44fb13b
@ -148,6 +148,7 @@ cmScEvtRef_t _cmScEvtRefArray[] =
|
|||||||
{ kPgmEvtScId, kPgmMdId, "pgm" },
|
{ kPgmEvtScId, kPgmMdId, "pgm" },
|
||||||
{ kCtlEvtScId, kCtlMdId, "ctl" },
|
{ kCtlEvtScId, kCtlMdId, "ctl" },
|
||||||
{ kNonEvtScId, kNoteOnMdId, "non" },
|
{ kNonEvtScId, kNoteOnMdId, "non" },
|
||||||
|
{ kPedalEvtScId, 0, "ped" },
|
||||||
{ kInvalidEvtScId, 0, "***" }
|
{ kInvalidEvtScId, 0, "***" }
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -2404,6 +2405,7 @@ void _cmScorePrintEvent( const cmScoreEvt_t* r, unsigned i, cmRpt_t* rpt )
|
|||||||
r->barNumb );
|
r->barNumb );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case kPedalEvtScId:
|
||||||
case kNonEvtScId:
|
case kNonEvtScId:
|
||||||
cmRptPrintf(rpt,"%5i %5i %5i %3i %3i %s %5s %c%c%c %s\n",
|
cmRptPrintf(rpt,"%5i %5i %5i %3i %3i %s %5s %c%c%c %s\n",
|
||||||
i,
|
i,
|
||||||
@ -2412,7 +2414,7 @@ void _cmScorePrintEvent( const cmScoreEvt_t* r, unsigned i, cmRpt_t* rpt )
|
|||||||
r->barNumb,
|
r->barNumb,
|
||||||
r->barNoteIdx,
|
r->barNoteIdx,
|
||||||
cmScEvtTypeIdToLabel(r->type),
|
cmScEvtTypeIdToLabel(r->type),
|
||||||
cmMidiToSciPitch(r->pitch,NULL,0),
|
r->type==kNonEvtScId ? cmMidiToSciPitch(r->pitch,NULL,0) : (cmIsFlag(r->flags,kPedalUpScFl)? " up" : " dn"),
|
||||||
cmIsFlag(r->flags,kEvenScFl) ? 'e' : ' ',
|
cmIsFlag(r->flags,kEvenScFl) ? 'e' : ' ',
|
||||||
cmIsFlag(r->flags,kTempoScFl) ? 't' : ' ',
|
cmIsFlag(r->flags,kTempoScFl) ? 't' : ' ',
|
||||||
cmIsFlag(r->flags,kDynScFl) ? 'd' : ' ',
|
cmIsFlag(r->flags,kDynScFl) ? 'd' : ' ',
|
||||||
|
Loading…
Reference in New Issue
Block a user