2002-07-09 16:24:59 +04:00
|
|
|
|
2002-11-01 19:11:03 +03:00
|
|
|
#ifndef _MIDI_TEXT_H
|
|
|
|
#define _MIDI_TEXT_H
|
|
|
|
|
|
|
|
#include <BeBuild.h>
|
2002-07-09 16:24:59 +04:00
|
|
|
#include <Midi.h>
|
2002-11-01 19:11:03 +03:00
|
|
|
#include <stdio.h>
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2015-08-24 18:18:26 +03:00
|
|
|
class BMidiText : public BMidi {
|
2002-07-09 16:24:59 +04:00
|
|
|
public:
|
2003-03-18 01:24:09 +03:00
|
|
|
|
2002-07-09 16:24:59 +04:00
|
|
|
BMidiText();
|
|
|
|
virtual ~BMidiText();
|
|
|
|
|
2002-11-01 19:11:03 +03:00
|
|
|
virtual void NoteOff(
|
|
|
|
uchar channel, uchar note, uchar velocity, uint32 time = B_NOW);
|
|
|
|
|
|
|
|
virtual void NoteOn(
|
|
|
|
uchar channel, uchar note, uchar velocity, uint32 time = B_NOW);
|
|
|
|
|
|
|
|
virtual void KeyPressure(
|
|
|
|
uchar channel, uchar note, uchar pressure, uint32 time = B_NOW);
|
|
|
|
|
|
|
|
virtual void ControlChange(
|
|
|
|
uchar channel, uchar controlNumber, uchar controlValue,
|
2002-07-09 16:24:59 +04:00
|
|
|
uint32 time = B_NOW);
|
2002-11-01 19:11:03 +03:00
|
|
|
|
|
|
|
virtual void ProgramChange(
|
|
|
|
uchar channel, uchar programNumber, uint32 time = B_NOW);
|
|
|
|
|
|
|
|
virtual void ChannelPressure(
|
|
|
|
uchar channel, uchar pressure, uint32 time = B_NOW);
|
|
|
|
|
|
|
|
virtual void PitchBend(
|
|
|
|
uchar channel, uchar lsb, uchar msb, uint32 time = B_NOW);
|
|
|
|
|
|
|
|
virtual void SystemExclusive(
|
2003-03-18 01:24:09 +03:00
|
|
|
void* data, size_t length, uint32 time = B_NOW);
|
2002-11-01 19:11:03 +03:00
|
|
|
|
|
|
|
virtual void SystemCommon(
|
|
|
|
uchar status, uchar data1, uchar data2, uint32 time = B_NOW);
|
|
|
|
|
|
|
|
virtual void SystemRealTime(uchar status, uint32 time = B_NOW);
|
|
|
|
|
2002-07-09 16:24:59 +04:00
|
|
|
void ResetTimer(bool start = false);
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
2002-11-01 19:11:03 +03:00
|
|
|
virtual void _ReservedMidiText1();
|
2003-03-18 01:24:09 +03:00
|
|
|
virtual void _ReservedMidiText2();
|
|
|
|
virtual void _ReservedMidiText3();
|
2002-11-01 19:11:03 +03:00
|
|
|
|
|
|
|
virtual void Run();
|
|
|
|
|
2006-06-19 17:24:04 +04:00
|
|
|
void _WaitAndPrint(uint32 time);
|
2002-11-01 19:11:03 +03:00
|
|
|
|
2006-06-19 17:24:04 +04:00
|
|
|
uint32 fStartTime;
|
2002-11-01 19:11:03 +03:00
|
|
|
uint32 _reserved[4];
|
2002-07-09 16:24:59 +04:00
|
|
|
};
|
|
|
|
|
2002-11-01 19:11:03 +03:00
|
|
|
#endif // _MIDI_TEXT_H
|
|
|
|
|