#include <Panic.h>
Inheritance diagram for TSE3::Panic:


Public Member Functions | |
| Panic () | |
| virtual | ~Panic () |
| bool | status () const |
| void | setStatus (bool s) |
| int | port () const |
| void | setPort (int port) |
| bool | midiReset () const |
| void | setMidiReset (bool s) |
| bool | gmReset () const |
| void | setGmReset (bool s) |
| bool | gsReset () const |
| void | setGsReset (bool s) |
| bool | xgReset () const |
| void | setXgReset (bool s) |
| bool | gsIDMask (size_t device) const |
| void | setGsIDMask (size_t device, bool s) |
| bool | xgIDMask (size_t device) const |
| void | setXgIDMask (size_t device, bool s) |
| bool | allNotesOff () |
| void | setAllNotesOff (bool s) |
| bool | allNotesOffManually () |
| void | setAllNotesOffManually (bool s) |
| bool | allModsOff () |
| void | setAllModsOff (bool s) |
| bool | allPitchOff () |
| void | setAllPitchOff (bool s) |
| bool | allCtrlOff () |
| void | setAllCtrlOff (bool s) |
| bool | liftSustain () |
| void | setLiftSustain (bool s) |
| virtual PlayableIterator * | iterator (Clock index) |
| virtual Clock | lastClock () const |
Protected Attributes | |
| bool | _status |
| int | _port |
| bool | _midi |
| bool | _gm |
| bool | _gs |
| bool | _xg |
| unsigned int | gsMask |
| unsigned int | xgMask |
| bool | _allNotesOff |
| bool | _allNotesOffManually |
| bool | _allModsOff |
| bool | _allPitchOff |
| bool | _allCtrlOff |
| bool | _liftSustain |
The Panic class encapsulates the playable 'panic' information that can reset attached MIDI devices. This MIDI data stream is produced for a single port number, which you can specify.
Several different kinds of reset information can be sent:
|
|
Creates a Panic object with the default values. These are to send basic MIDI reset and GM MIDI reset sequences. The default output port is MidiScheduler::AllPorts. |
|
|
|
|
|
Returns the panic status: whether this panic sequence is generated. This takes precidence over all of the other status settings; if it is set to false, no MIDI events will be generated by the Panic object.
|
|
|
Sets the panic sequence.
|
|
|
Returns which port the object will produce output on.
|
|
|
Sets the output port for this object.
|
|
|
Returns the basic MIDI reset status.
|
|
|
Sets the basic MIDI reset status.
|
|
|
Returns the GM format MIDI reset status.
|
|
|
Sets the GM format MIDI reset status.
|
|
|
Returns the GS format MIDI reset status.
|
|
|
Sets the GS format MIDI reset status.
|
|
|
Returns the XG format MIDI reset status.
|
|
|
Sets the XG format MIDI reset status.
|
|
|
Returns the device mask for a GS device.
|
|
||||||||||||
|
Sets a GS device mask.
|
|
|
Returns the device mask for an XG device.
|
|
||||||||||||
|
Sets an XG device mask.
|
|
|
Whether to send a MidiControl_AllNotesOff.
|
|
|
Set whether to send a MidiControl_AllNotesOff.
|
|
|
Whether to send a MidiCommand_NoteOff for every note manually.
|
|
|
Set whether to send a MidiCommand_NoteOff for every note manually.
|
|
|
Whether to send a MidiControl_ModulationMSB/LSB zero.
|
|
|
Set whether to send a MidiControl_ModulationMSB/LSB zero.
|
|
|
Whether to send a MidiCommand_PitchBend zero.
|
|
|
Set whether to send a MidiCommand_PitchBend zero.
|
|
|
Whether to send a MidiControl_ResetAllControllers.
|
|
|
Set whether to send a MidiControl_ResetAllControllers.
|
|
|
Whether to send a list MidiControl_SustainPedal.
|
|
|
Set whether to send a list MidiControl_SustainPedal.
|
|
|
Implements TSE3::Playable. |
|
|
Implements TSE3::Playable. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.2