cleaned up midi1
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2932 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -10,41 +10,33 @@
|
||||
class BMidiSynth : public BMidi
|
||||
{
|
||||
public:
|
||||
|
||||
BMidiSynth();
|
||||
virtual ~BMidiSynth();
|
||||
|
||||
status_t EnableInput(bool enable, bool loadInstruments);
|
||||
bool IsInputEnabled(void) const;
|
||||
|
||||
/* set volume. You can overdrive by passing values larger than 1.0 */
|
||||
void SetVolume(double volume);
|
||||
double Volume(void) const;
|
||||
|
||||
/* set note offset in semi tones */
|
||||
/* (12 is down an octave, -12 is up an octave) */
|
||||
void SetTransposition(int16 offset);
|
||||
int16 Transposition(void) const;
|
||||
|
||||
/* Mute and unmute channels (0 to 15) */
|
||||
void MuteChannel(int16 channel, bool do_mute);
|
||||
void GetMuteMap(char* pChannels) const;
|
||||
|
||||
void SoloChannel(int16 channel, bool do_solo);
|
||||
void GetSoloMap(char* pChannels) const;
|
||||
|
||||
/* Use these functions to drive the synth engine directly */
|
||||
status_t LoadInstrument(int16 instrument);
|
||||
status_t UnloadInstrument(int16 instrument);
|
||||
status_t RemapInstrument(int16 from, int16 to);
|
||||
|
||||
void FlushInstrumentCache(bool startStopCache);
|
||||
|
||||
/* get current midi tick in microseconds */
|
||||
uint32 Tick(void) const;
|
||||
|
||||
/* The channel variable is 1 to 16. Channel 10 is percussion for example. */
|
||||
/* The programNumber variable is a number from 0-127 */
|
||||
|
||||
virtual void NoteOff(
|
||||
uchar channel, uchar note, uchar velocity, uint32 time = B_NOW);
|
||||
|
||||
@@ -67,27 +59,26 @@ public:
|
||||
virtual void PitchBend(
|
||||
uchar channel, uchar lsb, uchar msb, uint32 time = B_NOW);
|
||||
|
||||
virtual void AllNotesOff(bool controlOnly, uint32 time = B_NOW);
|
||||
virtual void AllNotesOff(bool justChannel, uint32 time = B_NOW);
|
||||
|
||||
protected:
|
||||
|
||||
void* fSongVariables;
|
||||
void* fPerformanceVariables;
|
||||
bool fMidiQueue;
|
||||
|
||||
private:
|
||||
|
||||
friend class BSynth;
|
||||
|
||||
virtual void _ReservedMidiSynth1();
|
||||
virtual void _ReservedMidiSynth2();
|
||||
virtual void _ReservedMidiSynth3();
|
||||
virtual void _ReservedMidiSynth4();
|
||||
|
||||
friend class BSynth;
|
||||
|
||||
virtual void Run();
|
||||
|
||||
bool fInputEnabled;
|
||||
uint32 _reserved[4];
|
||||
};
|
||||
|
||||
#endif // _MIDI_SYNTH_H
|
||||
|
||||
|
||||
Reference in New Issue
Block a user