libcm is a C development framework with an emphasis on audio signal processing applications.
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

cmScoreMatchGraphic.h 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. kOpFailSmgRC
  13. };
  14. typedef cmRC_t cmSmgRC_t;
  15. typedef cmHandle_t cmSmgH_t;
  16. extern cmSmgH_t cmSmgNullHandle;
  17. cmSmgRC_t cmScoreMatchGraphicAlloc( cmCtx_t* ctx, cmSmgH_t* hp, const cmChar_t* scoreFn, const cmChar_t* midiFn );
  18. cmSmgRC_t cmScoreMatchGraphicFree( cmSmgH_t* hp );
  19. bool cmScoreMatchGraphicIsValid( cmSmgH_t h );
  20. cmSmgRC_t cmScoreMatchGraphicInsertMidi( cmSmgH_t h, unsigned midiUid, unsigned midiPitch, unsigned midiVel, unsigned csvScoreEventId );
  21. cmSmgRC_t cmScoreMatchGraphicWrite( cmSmgH_t h, const cmChar_t* fn );
  22. // Generate a set of markers for use in a cmTimeLine file which forms a marked area
  23. // beginning at each bar line and ends at the end of the file.
  24. cmSmgRC_t cmScoreMatchGraphicGenTimeLineBars( cmSmgH_t h, const cmChar_t* fn, unsigned srate );
  25. // Update the MIDI file velocity values and insert pedal events
  26. // from from score into MIDI file and then write the updated MIDI
  27. // file to 'newMidiFn'.
  28. cmSmgRC_t cmScoreMatchGraphicUpdateMidiFromScore( cmCtx_t* ctx, cmSmgH_t h, const cmChar_t* newMidiFn );
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. #endif