Cleaned up libmidi. See the log message
from the libmidi source for details. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1820 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+49
-28
@@ -1,43 +1,64 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
#ifndef _MIDI_TEXT_H_
|
||||
#define _MIDI_TEXT_H_
|
||||
|
||||
#ifndef _MIDI_TEXT_H
|
||||
#define _MIDI_TEXT_H
|
||||
|
||||
#include <BeBuild.h>
|
||||
#include <Midi.h>
|
||||
#include <stdio.h>
|
||||
|
||||
class BMidiText : public BMidi {
|
||||
class BMidiText : public BMidi
|
||||
{
|
||||
public:
|
||||
BMidiText();
|
||||
virtual ~BMidiText();
|
||||
|
||||
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 control_number,
|
||||
uchar control_value, uint32 time = B_NOW);
|
||||
virtual void ProgramChange(uchar channel, uchar program_number,
|
||||
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,
|
||||
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(void * data, size_t data_length,
|
||||
uint32 time = B_NOW);
|
||||
virtual void SystemCommon(uchar status_byte, uchar data1,
|
||||
uchar data2, uint32 time = B_NOW);
|
||||
virtual void SystemRealTime(uchar status_byte, uint32 time = B_NOW);
|
||||
virtual void TempoChange(int32 beats_per_minute, uint32 time = B_NOW);
|
||||
virtual void AllNotesOff(bool just_channel = true, uint32 time = B_NOW);
|
||||
|
||||
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(
|
||||
void* data, size_t dataLength, uint32 time = B_NOW);
|
||||
|
||||
virtual void SystemCommon(
|
||||
uchar status, uchar data1, uchar data2, uint32 time = B_NOW);
|
||||
|
||||
virtual void SystemRealTime(uchar status, uint32 time = B_NOW);
|
||||
|
||||
virtual void TempoChange(int32 beatsPerMinute, uint32 time = B_NOW);
|
||||
|
||||
virtual void AllNotesOff(bool justChannel = true, uint32 time = B_NOW);
|
||||
|
||||
void ResetTimer(bool start = false);
|
||||
|
||||
private:
|
||||
int32 _start_time;
|
||||
|
||||
private:
|
||||
void _PrintTime();
|
||||
virtual void _ReservedMidiText1();
|
||||
|
||||
virtual void Run();
|
||||
|
||||
void WaitAndPrint(uint32 time);
|
||||
|
||||
int32 startTime;
|
||||
uint32 _reserved[4];
|
||||
};
|
||||
|
||||
#endif _MIDI_TEXT_H_
|
||||
#endif // _MIDI_TEXT_H
|
||||
|
||||
|
||||
Reference in New Issue
Block a user