13 #ifndef __MUSICNOTE_LIB_H__EBEE094C_FF6E_43a1_A6CE_D619564F9C6A__
14 #define __MUSICNOTE_LIB_H__EBEE094C_FF6E_43a1_A6CE_D619564F9C6A__
26 #ifndef MUSICNOTELIB_API
27 #define MUSICNOTELIB_API
28 #endif // MUSICNOTELIB_API
31 #include "MidiDevice.h"
33 #if defined WIN32 || defined _WIN32
34 #define STDCALL __stdcall
36 #define STDCALL //__attribute__((stdcall))
41 typedef void (STDCALL *LPFNTRACEPROC)(
void* pUserData,
const TCHAR* szTraceMsg);
42 typedef void (STDCALL *LPFNERRORPROC)(
void* pUserData,
long lErrCode,
const TCHAR* szErrorMsg,
const TCHAR* szToken);
73 LPFNTRACEPROC traceCallbackProc,
74 LPFNERRORPROC errorCallbackProc,
100 unsigned int nTimerResMS,
101 LPFNTRACEPROC traceCallbackProc,
102 LPFNERRORPROC errorCallbackProc,
115 MUSICNOTELIB_API void Parse(
const TCHAR* szNotes, LPFNTRACEPROC traceCallbackProc,
void* pUserData);
123 #endif // __MUSICNOTE_LIB_H__EBEE094C_FF6E_43a1_A6CE_D619564F9C6A__
MUSICNOTELIB_API bool PlayMusicString(const TCHAR *szMusicNotes)
MUSICNOTELIB_API MStringPlayer * CreateMusicStringPlayer()
MUSICNOTELIB_API bool PlayMusicStringWithOpts(const TCHAR *szMusicNotes, int nMidiOutPortID, unsigned int nTimerResMS)
MUSICNOTELIB_API bool PlayMusicStringCB(const TCHAR *szMusicNotes, LPFNTRACEPROC traceCallbackProc, LPFNERRORPROC errorCallbackProc, void *pUserData)
MUSICNOTELIB_API bool PlayMusicStringWithOptsCB(const TCHAR *szMusicNotes, int nMidiOutPortID, unsigned int nTimerResMS, LPFNTRACEPROC traceCallbackProc, LPFNERRORPROC errorCallbackProc, void *pUserData)
MUSICNOTELIB_API bool SaveAsMidiFile(const TCHAR *szMusicNotes, const char *szOutputFilePath)