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;