libcm is a C development framework with an emphasis on audio signal processing applications.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

cmXScore.h 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #ifndef cmXScore_h
  2. #define cmXScore_h
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. enum
  7. {
  8. kOkXsRC = cmOkRC,
  9. kXmlFailXsRC,
  10. kLHeapFailXsRC,
  11. kSyntaxErrorXsRC,
  12. kCsvFailXsRC,
  13. kUnterminatedTieXsRC,
  14. kUnterminatedSlurXsRC,
  15. kUnterminatedOctaveShiftXsrRC,
  16. kMidiFailXsRC
  17. };
  18. typedef cmRC_t cmXsRC_t;
  19. typedef cmHandle_t cmXsH_t;
  20. extern cmXsH_t cmXsNullHandle;
  21. // Prepare the MusicXML file:
  22. //
  23. // 1) Convert XML to UTF-8:
  24. // a. Change: encoding='UTF-16' to encoding='UTF-8'
  25. // b. Emacs C-x <RET> f utf-8 <RET>
  26. // c. Change: <?xml ... encoding='UTF-16' to encoding='UTF-8' ...?>
  27. //
  28. // 2) Replace "DoletSibelius Unknown Symbol Index" with "DoletSibelius unknownSymIdx"
  29. //
  30. // 3) How to assigned dynamic markings (they are not attached to notes). (from MIDI file?)
  31. // 4) Tempo syntax is inconsistent (only a problem in full part2 score)
  32. // 5) Heel is being parsed but not used.
  33. // 6) Sostenuto pedal events are not being parsed because they are not pedal events.
  34. // 7) What is a 'pedal-change' event vs. a 'pedal-stop' event.
  35. // 8) Verify the colors. (done)
  36. // 9) Remove blank bars at end (done in xml - do in score)
  37. //10) Need to assign section targets (always default to next section)
  38. //11) Mark tied notes for skip. (done)
  39. //12) Determine note off locations based on ties and slurs - defer 'pedal' to player
  40. //13) Check that the measures are given in sorted order.
  41. //14) Current implementation assumes meter changes only occur at measure boundaries.
  42. //15) Score Fixes: Add meter to bar 1, fix time errors (shown in voice report)
  43. cmXsRC_t cmXScoreInitialize( cmCtx_t* ctx, cmXsH_t* hp, const cmChar_t* xmlFn, const cmChar_t* midiFn );
  44. cmXsRC_t cmXScoreFinalize( cmXsH_t* hp );
  45. bool cmXScoreIsValid( cmXsH_t h );
  46. cmXsRC_t cmXScoreWriteCsv( cmXsH_t h, const cmChar_t* csvFn );
  47. cmXsRC_t cmXScoreWriteMidi( cmXsH_t h, const cmChar_t* fn );
  48. void cmXScoreReport( cmXsH_t h, cmRpt_t* rpt, bool sortFl );
  49. cmXsRC_t cmXScoreTest( cmCtx_t* ctx, const cmChar_t* xmlFn, const cmChar_t* midiFn );
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif