From 59dbe1df1033965be8766ed759c1739b1b931531 Mon Sep 17 00:00:00 2001 From: kevin larke Date: Sun, 19 Mar 2017 10:33:11 -0400 Subject: [PATCH] cmScore.c : Changed invalid MIDI velocity from fatal error to a warning. --- app/cmScore.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/cmScore.c b/app/cmScore.c index a88f032..ccb00bd 100644 --- a/app/cmScore.c +++ b/app/cmScore.c @@ -745,7 +745,12 @@ cmScRC_t _cmScParseNoteOn( cmSc_t* p, unsigned rowIdx, cmScoreEvt_t* s, unsigned return cmErrMsg(&p->err,kSyntaxErrScRC,"Unable to convert the scientific pitch '%s' to a MIDI value. "); if((midiVel = cmCsvCellUInt( p->cH,rowIdx,kD1ColScIdx)) >= kInvalidMidiVelocity ) - return cmErrMsg(&p->err,kSyntaxErrScRC,"An invalid MIDI velocity (%i) was encountered.",midiVel); + { + //return cmErrMsg(&p->err,kSyntaxErrScRC,"An invalid MIDI velocity (%i) was encountered.",midiVel); + midiVel = 64; + cmErrWarnMsg(&p->err,kSyntaxErrScRC,"An invalilid MIDI velocity (%i) was encountered.",midiVel); + } + // get the sec's field - or DBL_MAX if it is not set if((secs = cmCsvCellDouble(p->cH, rowIdx, kSecsColScIdx )) == DBL_MAX) // Returns DBL_MAX on error.