libcm is a C development framework with an emphasis on audio signal processing applications.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cmScoreMatchGraphic.h 1.0KB

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef cmScoreMatchGraphic_h
  2. #define cmScoreMatchGraphic_h
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. enum
  7. {
  8. kOkSmgRC = cmOkRC,
  9. kFileSmgRC,
  10. kScoreFailSmgRC,
  11. kMidiFileFailSmgRC
  12. };
  13. typedef cmRC_t cmSmgRC_t;
  14. typedef cmHandle_t cmSmgH_t;
  15. extern cmSmgH_t cmSmgNullHandle;
  16. cmSmgRC_t cmScoreMatchGraphicAlloc( cmCtx_t* ctx, cmSmgH_t* hp, const cmChar_t* scoreFn, const cmChar_t* midiFn );
  17. cmSmgRC_t cmScoreMatchGraphicFree( cmSmgH_t* hp );
  18. bool cmScoreMatchGraphicIsValid( cmSmgH_t h );
  19. cmSmgRC_t cmScoreMatchGraphicInsertMidi( cmSmgH_t h, unsigned midiUid, unsigned midiPitch, unsigned midiVel, unsigned csvScoreEventId );
  20. cmSmgRC_t cmScoreMatchGraphicWrite( cmSmgH_t h, const cmChar_t* fn );
  21. // Generate a set of markers for use in a cmTimeLine file which forms a marked area
  22. // beginning at each bar line and ends at the end of the file.
  23. cmSmgRC_t cmScoreMatchGraphicGenTimeLineBars( cmSmgH_t h, const cmChar_t* fn, unsigned srate );
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif