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

libtdemid

Public Attributes | List of all members
SpecialEvent Struct Reference

#include <player.h>

Public Attributes

int id
 
ulong diffmilliseconds
 
ulong absmilliseconds
 
int ticks
 
int type
 
char text [1024]
 
ulong tempo
 
int num
 
int den
 
struct SpecialEvent * next
 

Detailed Description

This struct stores text, lyrics and change tempo events among others.

It includes the main information for an event. That is, the absolute millisecond at which this event is played (from the beginning of the song), the delta milliseconds from the previous SpecialEvent, an ID, etc.

This struct is used as nodes for a linked list, which you can get using MidiPlayer::specialEvents().

Struct used to store certain events

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 48 of file player.h.

Member Data Documentation

◆ absmilliseconds

ulong SpecialEvent::absmilliseconds

The absolute millisecond (from the beginning of the song) at which this SpecialEvent object is played.

See also
diffmilliseconds

Definition at line 68 of file player.h.

◆ den

int SpecialEvent::den

Denominator .

It has a meaning only for Change number of beats per measure and beat events.

Definition at line 109 of file player.h.

◆ diffmilliseconds

ulong SpecialEvent::diffmilliseconds

Delta milliseconds from the previous SpecialEvent.

See also
absmilliseconds

Definition at line 60 of file player.h.

◆ id

int SpecialEvent::id

An integer ID, that is assigned in order to each SpecialEvent.

Definition at line 53 of file player.h.

◆ next

struct SpecialEvent* SpecialEvent::next

This struct stores text, lyrics and change tempo events among others.

It includes the main information for an event. That is, the absolute millisecond at which this event is played (from the beginning of the song), the delta milliseconds from the previous SpecialEvent, an ID, etc.

This struct is used as nodes for a linked list, which you can get using MidiPlayer::specialEvents().

Definition at line 121 of file player.h.

◆ num

int SpecialEvent::num

Numerator .

It has a meaning only for Change number of beats per measure and beat events.

Definition at line 104 of file player.h.

◆ tempo

ulong SpecialEvent::tempo

Tempo field .

It has a meaning only for Change Tempo events.

Definition at line 99 of file player.h.

◆ text

char SpecialEvent::text[1024]

Text field .

It has a meaning only for Text and Lyrics events.

Definition at line 94 of file player.h.

◆ ticks

int SpecialEvent::ticks

MIDI ticks (from the beginning of the song) at which this event is played.

Definition at line 73 of file player.h.

◆ type

int SpecialEvent::type

Type of event.

This currently includes:

  • 0 - Nothing, end of linked list.
  • 1 - Text Event . See text.
  • 3 - Change Tempo Event . See tempo.
  • 5 - Lyrics Event . See text.
  • 6 - Change number of beats per measure . See num and den.
  • 7 - Beat . See num and den.

The "Change number of beats per measure" and "beat" events are not really in the midi file, but they are added to the linked list in case you have an use for it.

Definition at line 89 of file player.h.


The documentation for this struct was generated from the following file:
  • player.h

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.