cwPianoScore.cpp : Piano score must now include the 'dots' field. The 'bar' and 'section' fields are now read from the score file.

This commit is contained in:
kevin 2023-05-13 07:46:20 -04:00
parent 2a51daaa90
commit 7e462e2754

View File

@ -62,7 +62,6 @@ namespace cw
return buf_idx; return buf_idx;
} }
rc_t _parse_csv_double( const char* lineBuf, unsigned bfi, unsigned efi, double &valueRef ) rc_t _parse_csv_double( const char* lineBuf, unsigned bfi, unsigned efi, double &valueRef )
{ {
errno = 0; errno = 0;
@ -94,6 +93,7 @@ namespace cw
kSec_FIdx, kSec_FIdx,
kDur_FIdx, kDur_FIdx,
kRval_FIdx, kRval_FIdx,
kDots_FIdx,
kSPitch_FIdx, kSPitch_FIdx,
kDMark_FIdx, kDMark_FIdx,
kDLevel_FIdx, kDLevel_FIdx,
@ -105,6 +105,9 @@ namespace cw
kBpm_FIdx, kBpm_FIdx,
kGrace_FIdx, kGrace_FIdx,
kPedal_FIdx, kPedal_FIdx,
kDyn_FIdx,
kEven_FIdx,
kTempo_FIdx,
kMax_FIdx kMax_FIdx
}; };
@ -122,7 +125,6 @@ namespace cw
goto errLabel; goto errLabel;
} }
if( bfi != efi ) if( bfi != efi )
{ {
switch( field_idx ) switch( field_idx )
@ -147,6 +149,14 @@ namespace cw
rc = _parse_csv_unsigned( line_buf, bfi, efi, e->d1 ); rc = _parse_csv_unsigned( line_buf, bfi, efi, e->d1 );
break; break;
case kBar_FIdx:
rc = _parse_csv_unsigned( line_buf, bfi, efi, e->bar );
break;
case kSection_FIdx:
rc = _parse_csv_unsigned( line_buf, bfi, efi, e->section );
break;
default: default:
break; break;
} }