• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • libtdemid
 

libtdemid

Public Member Functions | List of all members
MidiStatus Class Reference

#include <midistat.h>

Public Member Functions

 MidiStatus ()
 
 ~MidiStatus ()
 
void keyPressure (uchar chn, uchar note, uchar vel)
 
void chnPatchChange (uchar chn, uchar patch)
 
uchar chnPatch (uchar chn)
 
void chnPressure (uchar chn, uchar vel)
 
uchar chnPressure (uchar chn)
 
void chnPitchBender (uchar chn, uchar lsb, uchar msb)
 
int chnPitchBender (uchar chn)
 
void chnController (uchar chn, uchar ctl, uchar v)
 
uchar chnController (uchar chn, uchar ctl)
 
void sysex (uchar *data, ulong size)
 
void tmrSetTempo (int v)
 
void sendData (class DeviceManager *midi, int gm=1)
 

Detailed Description

Stores the status of a MIDI device .

That is, current patch in each channel, controller settings, pitch bender value, etc.

This is used to "play" with all those values and then send them to the MIDI device just by using sendData()

Stores the MIDI status.

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 40 of file midistat.h.

Constructor & Destructor Documentation

◆ MidiStatus()

MidiStatus::MidiStatus ( )

Constructor.

Definition at line 36 of file midistat.cpp.

◆ ~MidiStatus()

MidiStatus::~MidiStatus ( )

Destructor.

Definition at line 54 of file midistat.cpp.

Member Function Documentation

◆ chnController() [1/2]

uchar MidiStatus::chnController ( uchar  chn,
uchar  ctl 
)
inline

Returns the value used for controller ctl in channel chn.

Definition at line 117 of file midistat.h.

◆ chnController() [2/2]

void MidiStatus::chnController ( uchar  chn,
uchar  ctl,
uchar  v 
)

Stores a new value for controller ctl in channel chn.

Definition at line 76 of file midistat.cpp.

◆ chnPatch()

uchar MidiStatus::chnPatch ( uchar  chn)
inline

Returns the patch currently used in channel chn.

Definition at line 86 of file midistat.h.

◆ chnPatchChange()

void MidiStatus::chnPatchChange ( uchar  chn,
uchar  patch 
)

Stores a new patch in channel chn.

See also
chnPatch()
MidiOut::chnPatchChange()

Definition at line 61 of file midistat.cpp.

◆ chnPitchBender() [1/2]

int MidiStatus::chnPitchBender ( uchar  chn)
inline

Returns the pitch bender value used in channel chn.

Definition at line 107 of file midistat.h.

◆ chnPitchBender() [2/2]

void MidiStatus::chnPitchBender ( uchar  chn,
uchar  lsb,
uchar  msb 
)

Stores a new pitch bender value in channel chn.

Definition at line 71 of file midistat.cpp.

◆ chnPressure() [1/2]

uchar MidiStatus::chnPressure ( uchar  chn)
inline

Returns the pressure value currently used in channel chn.

Definition at line 97 of file midistat.h.

◆ chnPressure() [2/2]

void MidiStatus::chnPressure ( uchar  chn,
uchar  vel 
)

Stores a new channel pressure value in channel chn.

See also
MidiOut::chnPressure()

Definition at line 66 of file midistat.cpp.

◆ keyPressure()

void MidiStatus::keyPressure ( uchar  chn,
uchar  note,
uchar  vel 
)

Stores a new value for the key aftertouch.

See also
MidiOut::keyPressure()

◆ sendData()

void MidiStatus::sendData ( class DeviceManager *  midi,
int  gm = 1 
)

Sends the current MIDI state to the DeviceManager object used as parameter (you should have already set the default device to the one you want to use).

The gm parameter specifies if the patches used follow the GM standard (1), or follow the MT32 standard (0), in which case, they will be converted to GM before being sent.

Definition at line 89 of file midistat.cpp.

◆ sysex()

void MidiStatus::sysex ( uchar *  data,
ulong  size 
)

Stores a sysex message that will be send in the next call to sendData.

◆ tmrSetTempo()

void MidiStatus::tmrSetTempo ( int  v)

Sets the tempo.

See also
DeviceManager::tmrSetTempo()

Definition at line 84 of file midistat.cpp.


The documentation for this class was generated from the following files:
  • midistat.h
  • midistat.cpp

libtdemid

Skip menu "libtdemid"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

libtdemid

Skip menu "libtdemid"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for libtdemid by doxygen 1.9.4
This website is maintained by Timothy Pearson.