13 #ifndef __PLAYER_H__83B70D04_18A9_48ff_B08B_81BF613138DB__
14 #define __PLAYER_H__83B70D04_18A9_48ff_B08B_81BF613138DB__
16 #include "MusicStringParser.h"
17 #include "MidiRenderer.h"
26 unsigned int m_nOutPort;
27 unsigned int m_nTimerRes;
33 Player(
unsigned int nMIDIOutPortID = MIDI_MAPPER,
unsigned int nMIDITimerResMS = 20);
186 #endif // __PLAYER_H__83B70D04_18A9_48ff_B08B_81BF613138DB__
bool PlayAsync(const MString &strMusicNotes)
Implements a MusicString Parsing functionality
bool IsPlaying() const
Returns true if an asynchronous Play is currently in progress
bool Play(const MString &strMusicNotes)
Takes care of Rendering MIDI Output either to a file or to a MIDI out Port
MIDI Player for Music Strings
Player(unsigned int nMIDIOutPortID=MIDI_MAPPER, unsigned int nMIDITimerResMS=20)
Helper class for simple string manipulations
unsigned int TimerResolution()
Get/Set the Timer Resolution (in MilliSeconds) that should be used with this Player.
bool SaveAsMidiFile(const MString &strMusicNotes, const char *szOutputFilePath)
MusicStringParser & Parser()
Returns the associated Parser object.
bool SaveToMidiFile(const char *szOutputFilePath)
unsigned int MidiOutPort()
Get/Set the Midi Output Port that should be used with this Player.