2016-02-04 16:33:42 +00:00
|
|
|
#ifndef cmXScore_h
|
|
|
|
#define cmXScore_h
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
2016-02-07 04:36:53 +00:00
|
|
|
kOkXsRC = cmOkRC,
|
2016-02-04 16:33:42 +00:00
|
|
|
kXmlFailXsRC,
|
|
|
|
kLHeapFailXsRC,
|
2016-02-09 02:46:07 +00:00
|
|
|
kSyntaxErrorXsRC,
|
|
|
|
kCsvFailXsRC
|
2016-02-07 04:36:53 +00:00
|
|
|
};
|
2016-02-04 16:33:42 +00:00
|
|
|
|
|
|
|
typedef cmRC_t cmXsRC_t;
|
|
|
|
typedef cmHandle_t cmXsH_t;
|
|
|
|
|
|
|
|
extern cmXsH_t cmXsNullHandle;
|
|
|
|
|
|
|
|
// Prepare the MusicXML file:
|
|
|
|
//
|
|
|
|
// 1) Convert XML to UTF-8:
|
|
|
|
// a. Change: encoding='UTF-16' to encoding='UTF-8'
|
|
|
|
// b. Emacs C-x <RET> f utf-8 <RET>
|
|
|
|
//
|
|
|
|
// 2) Replace "DoletSibelius Unknown Symbol Index" with "DoletSibelius unknownSymIdx"
|
2016-02-07 04:36:53 +00:00
|
|
|
//
|
|
|
|
// 3) How to assigned dynamic markings.
|
|
|
|
// 4) Tempo syntax is inconsistent.
|
2016-02-09 02:46:07 +00:00
|
|
|
// 5) Heel is not being recognized
|
|
|
|
// 6) Sostenuto pedal events are not being parsed.
|
|
|
|
// 7) What is a 'pedal-change' event vs. a 'pedal-stop' event.
|
|
|
|
// 8) Verify the colors.
|
|
|
|
// 9) Remove blank bars at end.
|
|
|
|
|
2016-02-04 16:33:42 +00:00
|
|
|
cmXsRC_t cmXScoreInitialize( cmCtx_t* ctx, cmXsH_t* hp, const cmChar_t* xmlFn );
|
|
|
|
cmXsRC_t cmXScoreFinalize( cmXsH_t* hp );
|
|
|
|
|
|
|
|
bool cmXScoreIsValid( cmXsH_t h );
|
|
|
|
|
2016-02-09 02:46:07 +00:00
|
|
|
cmXsRC_t cmXScoreWriteCsv( cmXsH_t h, const cmChar_t* csvFn );
|
|
|
|
|
2016-02-07 04:36:53 +00:00
|
|
|
void cmXScoreReport( cmXsH_t h, cmRpt_t* rpt, bool sortFl );
|
2016-02-04 16:33:42 +00:00
|
|
|
|
|
|
|
cmXsRC_t cmXScoreTest( cmCtx_t* ctx, const cmChar_t* fn );
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|