![]()  | 
  
    drumstick 2.10.0
    
   C++ MIDI libraries using Qt objects, idioms, and style. 
   | 
 
Event representing a MIDI channel pressure or after-touch event. More...
#include <alsaevent.h>

Public Member Functions | |
| ChanPressEvent () | |
| Default constructor.  | |
| ChanPressEvent (const snd_seq_event_t *event) | |
| Constructor from an ALSA event record.  More... | |
| ChanPressEvent (const int ch, const int val) | |
| Constructor.  More... | |
| int | getValue () const | 
| Gets the channel aftertouch value.  More... | |
| void | setValue (const int v) | 
| Sets the channel aftertouch value.  More... | |
| virtual ChanPressEvent * | clone () const override | 
| Clone this object returning a pointer to the new object.  More... | |
| void | setChannel (const MidiByte c) | 
| Sets the channel of the event.  More... | |
| int | getChannel () const | 
| Gets the event's channel.  More... | |
| void | setSequencerType (const snd_seq_event_type_t eventType) | 
| Sets the event's ALSA sequencer type.  More... | |
| snd_seq_event_type_t | getSequencerType () const | 
| Gets the sequencer event type.  More... | |
| void | setDestination (const unsigned char client, const unsigned char port) | 
| Sets the client:port destination of the event.  More... | |
| void | setSource (const unsigned char port) | 
| Sets the event's source port ID.  More... | |
| unsigned char | getSourceClient () const | 
| Gets the source client id.  More... | |
| unsigned char | getSourcePort () const | 
| Gets the source port id.  More... | |
| snd_seq_tick_time_t | getTick () const | 
| Gets the tick time of the event.  More... | |
| unsigned int | getRealTimeSecs () const | 
| Gets the seconds of the event's real time.  More... | |
| unsigned int | getRealTimeNanos () const | 
| Gets the nanoseconds of the event's real time.  More... | |
| void | setSubscribers () | 
| Sets the event's destination to be all the subscribers of the source port.  | |
| void | setBroadcast () | 
| Sets the event's destination to be all queues/clients/ports/channels.  | |
| void | setDirect () | 
| Sets the event to be immediately delivered, not queued/scheduled.  More... | |
| void | scheduleTick (const int queue, const int tick, const bool relative) | 
| Sets the event to be scheduled in musical time (ticks) units.  More... | |
| void | scheduleReal (const int queue, const ulong secs, const ulong nanos, const bool relative) | 
| Sets the event to be scheduled in real (clock) time units.  More... | |
| void | setPriority (const bool high) | 
| Sets the priority of the event.  More... | |
| unsigned char | getTag () const | 
| Gets the tag of the event.  More... | |
| void | setTag (const unsigned char aTag) | 
| Sets the event's tag.  More... | |
| unsigned int | getRaw32 (const unsigned int n) const | 
| Gets an event's raw 32 bits parameter.  More... | |
| void | setRaw32 (const unsigned int n, const unsigned int value) | 
| Sets an event's raw 32 bits parameter.  More... | |
| unsigned char | getRaw8 (const unsigned int n) const | 
| Gets an event's raw 8 bits parameter.  More... | |
| void | setRaw8 (const unsigned int n, const unsigned char value) | 
| Sets an event's raw 8 bits parameter.  More... | |
| snd_seq_event_t * | getHandle () | 
| Gets the handle of the event.  More... | |
| int | getEncodedLength () | 
| Gets the encoded length of the event record.  More... | |
Static Public Member Functions | |
| static bool | isSubscription (const SequencerEvent *event) | 
| Checks if the event's type is a subscription.  More... | |
| static bool | isPort (const SequencerEvent *event) | 
| Checks if the event's type is of type port.  More... | |
| static bool | isClient (const SequencerEvent *event) | 
| Checks if the event's type is of type client.  More... | |
| static bool | isConnectionChange (const SequencerEvent *event) | 
| Checks if the event's type is of type connection change.  More... | |
| static bool | isChannel (const SequencerEvent *event) | 
| Checks if the event's type is a Channel Voice message.  More... | |
Protected Member Functions | |
| Q_DECL_DEPRECATED void | free () | 
| Releases the event record.  More... | |
Protected Attributes | |
| snd_seq_event_t | m_event | 
| ALSA sequencer event record.  More... | |
Event representing a MIDI channel pressure or after-touch event.
Definition at line 428 of file alsaevent.h.
      
  | 
  inlineexplicit | 
Constructor from an ALSA event record.
| event | an ALSA event record | 
Definition at line 437 of file alsaevent.h.
| ChanPressEvent | ( | const int | ch, | 
| const int | val | ||
| ) | 
Constructor.
Constructor using proper attribute values.
| ch | MIDI Channel. | 
| val | Aftertouch value. | 
Definition at line 558 of file alsaevent.cpp.
References SequencerEvent::m_event.
      
  | 
  overridevirtual | 
Clone this object returning a pointer to the new object.
Reimplemented from ChannelEvent.
Definition at line 567 of file alsaevent.cpp.
References ChanPressEvent::ChanPressEvent(), and SequencerEvent::m_event.
      
  | 
  protectedinherited | 
Releases the event record.
Definition at line 373 of file alsaevent.cpp.
References SequencerEvent::m_event.
      
  | 
  inlineinherited | 
Gets the event's channel.
Definition at line 179 of file alsaevent.h.
      
  | 
  inherited | 
Gets the encoded length of the event record.
Definition at line 382 of file alsaevent.cpp.
References SequencerEvent::m_event.
      
  | 
  inlineinherited | 
Gets the handle of the event.
Definition at line 135 of file alsaevent.h.
Referenced by MidiClient::output(), MidiClient::outputBuffer(), MidiClient::outputDirect(), SequencerOutputThread::sendSongEvent(), MidiQueue::setRealTimePosition(), and MidiQueue::setTickPosition().
      
  | 
  inherited | 
Gets an event's raw 32 bits parameter.
| n | The parameter index, between 0 and 2. | 
Definition at line 331 of file alsaevent.cpp.
References SequencerEvent::m_event.
      
  | 
  inherited | 
Gets an event's raw 8 bits parameter.
| n | The parameter index, between 0 and 11. | 
Definition at line 353 of file alsaevent.cpp.
References SequencerEvent::m_event.
      
  | 
  inlineinherited | 
Gets the nanoseconds of the event's real time.
Definition at line 113 of file alsaevent.h.
      
  | 
  inlineinherited | 
Gets the seconds of the event's real time.
Definition at line 107 of file alsaevent.h.
      
  | 
  inlineinherited | 
Gets the sequencer event type.
Definition at line 81 of file alsaevent.h.
      
  | 
  inlineinherited | 
Gets the source client id.
Definition at line 89 of file alsaevent.h.
      
  | 
  inlineinherited | 
Gets the source port id.
Definition at line 95 of file alsaevent.h.
      
  | 
  inlineinherited | 
Gets the tag of the event.
Definition at line 125 of file alsaevent.h.
      
  | 
  inlineinherited | 
Gets the tick time of the event.
Definition at line 101 of file alsaevent.h.
      
  | 
  inline | 
Gets the channel aftertouch value.
Definition at line 446 of file alsaevent.h.
      
  | 
  staticinherited | 
Checks if the event's type is a Channel Voice message.
| event | A SequencerEvent object pointer | 
Definition at line 205 of file alsaevent.cpp.
      
  | 
  staticinherited | 
Checks if the event's type is of type client.
| event | A SequencerEvent object pointer | 
Definition at line 171 of file alsaevent.cpp.
      
  | 
  staticinherited | 
Checks if the event's type is of type connection change.
| event | A SequencerEvent object pointer | 
Definition at line 185 of file alsaevent.cpp.
Referenced by SequencerOutputThread::run().
      
  | 
  staticinherited | 
Checks if the event's type is of type port.
| event | A SequencerEvent object pointer | 
Definition at line 157 of file alsaevent.cpp.
      
  | 
  staticinherited | 
Checks if the event's type is a subscription.
| event | A SequencerEvent object pointer | 
Definition at line 144 of file alsaevent.cpp.
      
  | 
  inherited | 
Sets the event to be scheduled in real (clock) time units.
| queue | The queue number to be used. | 
| secs | The time in whole seconds. | 
| nanos | The nanoseconds to be added. | 
| relative | Use relative (to the current) time instead of absolute time. | 
Definition at line 292 of file alsaevent.cpp.
References SequencerEvent::m_event.
      
  | 
  inherited | 
Sets the event to be scheduled in musical time (ticks) units.
| queue | The queue number to be used. | 
| tick | The time in ticks. | 
| relative | Use relative (to the current) time instead of absolute time. | 
Definition at line 280 of file alsaevent.cpp.
References SequencerEvent::m_event.
Referenced by SequencerOutputThread::sendEchoEvent().
      
  | 
  inlineinherited | 
Sets the channel of the event.
| c | A channel, between 0 and 15. | 
Definition at line 173 of file alsaevent.h.
      
  | 
  inherited | 
Sets the client:port destination of the event.
| client | The destination's client ID | 
| port | The destination port ID | 
Definition at line 234 of file alsaevent.cpp.
References SequencerEvent::m_event.
Referenced by SequencerOutputThread::sendEchoEvent().
      
  | 
  inherited | 
Sets the event to be immediately delivered, not queued/scheduled.
Definition at line 269 of file alsaevent.cpp.
References SequencerEvent::m_event.
      
  | 
  inherited | 
Sets the priority of the event.
This is used in case of several events share the same scheduling time.
| high | Mark the event as a high priority one. | 
Definition at line 306 of file alsaevent.cpp.
References SequencerEvent::m_event.
      
  | 
  inherited | 
Sets an event's raw 32 bits parameter.
| n | The parameter index, between 0 and 2. | 
| value | The parameter's value. | 
Definition at line 342 of file alsaevent.cpp.
References SequencerEvent::m_event.
      
  | 
  inherited | 
Sets an event's raw 8 bits parameter.
| n | The parameter index, between 0 and 11. | 
| value | The parameter's value. | 
Definition at line 364 of file alsaevent.cpp.
References SequencerEvent::m_event.
      
  | 
  inherited | 
Sets the event's ALSA sequencer type.
| eventType | The ALSA sequencer type | 
Definition at line 223 of file alsaevent.cpp.
References SequencerEvent::m_event.
Referenced by TextEvent::operator=(), SystemEvent::SystemEvent(), TextEvent::TextEvent(), and ValueEvent::ValueEvent().
      
  | 
  inherited | 
Sets the event's source port ID.
| port | The source port ID | 
Definition at line 244 of file alsaevent.cpp.
References SequencerEvent::m_event.
Referenced by SequencerOutputThread::sendEchoEvent().
      
  | 
  inherited | 
Sets the event's tag.
This attribute is any arbitrary number, not used by the ALSA library. Range limited to 0 thru 255.
| aTag | A tag number. | 
Definition at line 316 of file alsaevent.cpp.
References SequencerEvent::m_event.
      
  | 
  inline | 
Sets the channel aftertouch value.
| v | the channel aftertouch value | 
Definition at line 451 of file alsaevent.h.
      
  | 
  protectedinherited | 
ALSA sequencer event record.
Definition at line 152 of file alsaevent.h.
Referenced by ChanPressEvent::ChanPressEvent(), SequencerEvent::clone(), ChannelEvent::clone(), KeyEvent::clone(), NoteEvent::clone(), NoteOnEvent::clone(), NoteOffEvent::clone(), KeyPressEvent::clone(), ControllerEvent::clone(), ProgramChangeEvent::clone(), PitchBendEvent::clone(), ChanPressEvent::clone(), VariableEvent::clone(), SysExEvent::clone(), TextEvent::clone(), SystemEvent::clone(), QueueControlEvent::clone(), ValueEvent::clone(), TempoEvent::clone(), SubscriptionEvent::clone(), ClientEvent::clone(), PortEvent::clone(), ControllerEvent::ControllerEvent(), SequencerEvent::free(), SequencerEvent::getEncodedLength(), SequencerEvent::getRaw32(), SequencerEvent::getRaw8(), KeyPressEvent::KeyPressEvent(), NoteEvent::NoteEvent(), NoteOffEvent::NoteOffEvent(), NoteOnEvent::NoteOnEvent(), SequencerEvent::operator=(), SysExEvent::operator=(), TextEvent::operator=(), VariableEvent::operator=(), PitchBendEvent::PitchBendEvent(), ProgramChangeEvent::ProgramChangeEvent(), QueueControlEvent::QueueControlEvent(), SequencerEvent::scheduleReal(), SequencerEvent::scheduleTick(), SequencerEvent::SequencerEvent(), SequencerEvent::setBroadcast(), SequencerEvent::setDestination(), SequencerEvent::setDirect(), SequencerEvent::setPriority(), SequencerEvent::setRaw32(), SequencerEvent::setRaw8(), SequencerEvent::setSequencerType(), SequencerEvent::setSource(), SequencerEvent::setSubscribers(), SequencerEvent::setTag(), SysExEvent::SysExEvent(), SystemEvent::SystemEvent(), TempoEvent::TempoEvent(), ValueEvent::ValueEvent(), and VariableEvent::VariableEvent().