#include <alsaout.h>
|
| AlsaOut (int d, int client=64, int port=0, const char *cname="", const char *pname="") |
|
virtual | ~AlsaOut () |
|
virtual void | openDev (int sqfd) |
|
virtual void | closeDev () |
|
virtual void | initDev () |
|
int | deviceType () const |
|
virtual const char * | deviceName (void) const |
|
int | rate (void) |
|
virtual void | noteOn (uchar chn, uchar note, uchar vel) |
|
virtual void | noteOff (uchar chn, uchar note, uchar vel) |
|
virtual void | keyPressure (uchar chn, uchar note, uchar vel) |
|
virtual void | chnPatchChange (uchar chn, uchar patch) |
|
virtual void | chnPressure (uchar chn, uchar vel) |
|
virtual void | chnPitchBender (uchar chn, uchar lsb, uchar msb) |
|
virtual void | chnController (uchar chn, uchar ctl, uchar v) |
|
virtual void | sysex (uchar *data, ulong size) |
|
virtual void | channelSilence (uchar chn) |
|
virtual void | channelMute (uchar chn, int b) |
|
virtual void | setVolumePercentage (int volper) |
|
int | ok (void) |
|
virtual void | wait (double ticks) |
|
virtual void | tmrSetTempo (int v) |
|
virtual void | tmrStart (int tpcn) |
|
virtual void | tmrStart () |
|
virtual void | tmrStop () |
|
virtual void | tmrContinue () |
|
void | sync (int i=0) |
|
| MidiOut (int d=0) |
|
virtual | ~MidiOut () |
|
int | deviceType () const |
|
const char * | deviceName (void) const |
|
void | setMidiMapper (MidiMapper *map) |
|
void | allNotesOff (void) |
|
int | ok (void) |
|
const char * | midiMapFilename () |
|
void | sync (int i=0) |
|
Sends MIDI events to a MIDI devices using ALSA.
- Version
- 0.9.5 17/01/2000
- Author
- Antonio Larrosa Jimenez larro.nosp@m.sa@k.nosp@m.de.or.nosp@m.g
Definition at line 37 of file alsaout.h.
◆ AlsaOut()
AlsaOut::AlsaOut |
( |
int |
d, |
|
|
int |
client = 64 , |
|
|
int |
port = 0 , |
|
|
const char * |
cname = "" , |
|
|
const char * |
pname = "" |
|
) |
| |
◆ ~AlsaOut()
Destructor.
It doesn't matter if you close the device ( closeDev() ) before you destruct the object because in other case, it will be closed here.
Definition at line 126 of file alsaout.cpp.
◆ channelMute()
void AlsaOut::channelMute |
( |
uchar |
chn, |
|
|
int |
b |
|
) |
| |
|
virtual |
Mute or "unmute" a given channel .
- Parameters
-
chn | channel to work on |
b | if true, the device will ignore subsequent notes played on the chn channel, and mute all notes being played on it. If b is false, the channel is back to work. |
Reimplemented from MidiOut.
Definition at line 441 of file alsaout.cpp.
◆ channelSilence()
void AlsaOut::channelSilence |
( |
uchar |
chn | ) |
|
|
virtual |
Mutes all notes being played on a given channel.
Reimplemented from MidiOut.
Definition at line 427 of file alsaout.cpp.
◆ chnController()
void AlsaOut::chnController |
( |
uchar |
chn, |
|
|
uchar |
ctl, |
|
|
uchar |
v |
|
) |
| |
|
virtual |
◆ chnPatchChange()
void AlsaOut::chnPatchChange |
( |
uchar |
chn, |
|
|
uchar |
patch |
|
) |
| |
|
virtual |
◆ chnPitchBender()
void AlsaOut::chnPitchBender |
( |
uchar |
chn, |
|
|
uchar |
lsb, |
|
|
uchar |
msb |
|
) |
| |
|
virtual |
◆ chnPressure()
void AlsaOut::chnPressure |
( |
uchar |
chn, |
|
|
uchar |
vel |
|
) |
| |
|
virtual |
◆ closeDev()
void AlsaOut::closeDev |
( |
void |
| ) |
|
|
virtual |
Closes the device.
It basically tells the device (the file descriptor) is going to be closed.
- See also
- openDev
Reimplemented from MidiOut.
Definition at line 181 of file alsaout.cpp.
◆ deviceName()
const char * AlsaOut::deviceName |
( |
void |
| ) |
const |
|
virtual |
◆ deviceType()
int AlsaOut::deviceType |
( |
| ) |
const |
|
inline |
- Returns
- the device type of the object. This is to identify the inherited class that a given object is polymorphed to. The returned value is one of these :
- KMID_EXTERNAL_MIDI if it's a MidiOut object
- KMID_SYNTH if it's a SynthOut object (as an AWE device)
- KMID_FM if it's a FMOut object
- KMID_GUS if it's a GUSOut object
which are defined in midispec.h
- See also
- deviceName
Definition at line 129 of file alsaout.h.
◆ initDev()
void AlsaOut::initDev |
( |
void |
| ) |
|
|
virtual |
Initializes the device sending generic standard midi events and controllers, such as changing the patches of each channel to an Acoustic Piano (000), setting the volume to a normal value, etc.
Reimplemented from MidiOut.
Definition at line 209 of file alsaout.cpp.
◆ keyPressure()
void AlsaOut::keyPressure |
( |
uchar |
chn, |
|
|
uchar |
note, |
|
|
uchar |
vel |
|
) |
| |
|
virtual |
◆ noteOff()
void AlsaOut::noteOff |
( |
uchar |
chn, |
|
|
uchar |
note, |
|
|
uchar |
vel |
|
) |
| |
|
virtual |
◆ noteOn()
void AlsaOut::noteOn |
( |
uchar |
chn, |
|
|
uchar |
note, |
|
|
uchar |
vel |
|
) |
| |
|
virtual |
◆ ok()
Returns true if everything's ok and false if there has been any problem.
Definition at line 209 of file alsaout.h.
◆ openDev()
void AlsaOut::openDev |
( |
int |
sqfd | ) |
|
|
virtual |
Opens the device.
This is generally called from DeviceManager , so you shouldn't call this yourself (except if you created the MidiOut object yourself.
- Parameters
-
sqfd | a file descriptor of /dev/sequencer |
- See also
- closeDev
-
initDev
Reimplemented from MidiOut.
Definition at line 132 of file alsaout.cpp.
◆ rate()
int AlsaOut::rate |
( |
void |
| ) |
|
|
inline |
◆ seqbuf_clean()
void AlsaOut::seqbuf_clean |
( |
void |
| ) |
|
|
protectedvirtual |
◆ seqbuf_dump()
void AlsaOut::seqbuf_dump |
( |
void |
| ) |
|
|
protectedvirtual |
◆ setVolumePercentage()
virtual void AlsaOut::setVolumePercentage |
( |
int |
volper | ) |
|
|
inlinevirtual |
Change all channel volume events multiplying it by this percentage correction Instead of forcing a channel to a fixed volume, this method allows to music to fade out even when it was being played softly.
- Parameters
-
volper | is an integer value, where 0 is quiet, 100 is used to send an unmodified value, 200 play music twice louder than it should, etc. |
Reimplemented from MidiOut.
Definition at line 203 of file alsaout.h.
◆ sync()
void AlsaOut::sync |
( |
int |
i = 0 | ) |
|
◆ sysex()
void AlsaOut::sysex |
( |
uchar * |
data, |
|
|
ulong |
size |
|
) |
| |
|
virtual |
◆ tmrContinue()
void AlsaOut::tmrContinue |
( |
void |
| ) |
|
|
virtual |
◆ tmrSetTempo()
void AlsaOut::tmrSetTempo |
( |
int |
v | ) |
|
|
virtual |
◆ tmrStart() [1/2]
virtual void AlsaOut::tmrStart |
( |
| ) |
|
|
inlinevirtual |
◆ tmrStart() [2/2]
void AlsaOut::tmrStart |
( |
int |
tpcn | ) |
|
|
virtual |
◆ tmrStop()
void AlsaOut::tmrStop |
( |
void |
| ) |
|
|
virtual |
◆ wait()
void AlsaOut::wait |
( |
double |
ticks | ) |
|
|
virtual |
◆ DeviceManager
◆ begintime
double AlsaOut::begintime |
|
protected |
◆ convertrate
double AlsaOut::convertrate |
|
protected |
◆ count
◆ di
AlsaOutPrivate* AlsaOut::di |
◆ lastcount
double AlsaOut::lastcount |
|
protected |
◆ lasttime
◆ m_rate
◆ ndevs
◆ nmidiports
◆ time
The documentation for this class was generated from the following files: