26 #include <libtdemid/dattypes.h>
27 #include <tdelibs_export.h>
61 struct midi_info *midiinfo;
67 struct synth_info *synthinfo;
153 void seqbuf_dump (
void);
158 void seqbuf_clean (
void);
163 void checkAlsa (
void);
191 int initManager(
void);
207 {
return deviceForChannel(chn); }
218 {
return (device!=0L) ? device[chn2dev[chn]] : 0L ; }
228 void setDeviceNumberForChannel(
int chn,
int dev);
262 void closeDev (
void);
280 void noteOn ( uchar chn, uchar note, uchar vel );
292 void noteOff ( uchar chn, uchar note, uchar vel );
302 void keyPressure ( uchar chn, uchar note, uchar vel );
312 void chnPatchChange ( uchar chn, uchar patch );
321 void chnPressure ( uchar chn, uchar vel );
333 void chnPitchBender ( uchar chn, uchar lsb, uchar msb );
348 void chnController ( uchar chn, uchar ctl , uchar v );
362 void sysEx ( uchar *data,ulong size);
369 void wait (
double ms);
375 void tmrSetTempo(
int v);
380 void tmrStart(
long int tpcn);
392 void tmrContinue(
void);
397 void allNotesOff(
void);
421 void setVolumePercentage(
int i);
429 int defaultDevice(
void);
440 void setDefaultDevice(
int i);
470 int setPatchesToUse(
int *patchesused);
478 const char *midiMapFilename(
void);
493 int rate(
void) {
return m_rate; }
523 const char *name(
int i);
530 const char *type(
int i);
533 class DeviceManagerPrivate;
534 DeviceManagerPrivate *d;
int synthDevices(void)
Returns the number of internal synthesizers available on the system.
int deviceNumberForChannel(int chn)
Returns the device number associated with a given channel.
int midiPorts(void)
Returns the number of MIDI ports available on the system.
External MIDI port output class .
MidiOut * chntodev(int chn)
int usingAlsa(void)
Returns true if it's running ALSA and false if OSS is being run.
A Midi Mapper class which defines the way MIDI events are translated (or "mapped") to different ones...
int rate(void)
Returns the SNDCTL_SEQ_CTRLRATE ioctl value.
MIDI Device Manager class .
MidiOut * deviceForChannel(int chn)
It's possible to send different MIDI channels to different MIDI devices, so that you can for example ...