/[svn]/linuxsampler/trunk/src/engines/common/Event.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/common/Event.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 244 by schoenebeck, Fri Sep 17 01:01:11 2004 UTC revision 250 by schoenebeck, Mon Sep 20 00:31:13 2004 UTC
# Line 83  namespace LinuxSampler { Line 83  namespace LinuxSampler {
83                  destination_count  ///< Total number of modulation destinations (this has to stay the last element in the enum)                  destination_count  ///< Total number of modulation destinations (this has to stay the last element in the enum)
84              };              };
85              union {              union {
86                  uint8_t Key;          ///< MIDI key number for note-on and note-off events.                  /// Note-on and note-off event specifics
87                  uint8_t Controller;   ///< MIDI controller number for control change events.                  struct _Note {
88              };                      uint8_t Key;         ///< MIDI key number of note-on / note-off event.
89              union {                      uint8_t Velocity;    ///< Trigger or release velocity of note-on / note-off event.
90                  uint8_t Velocity;     ///< Trigger or release velocity for note-on or note-off events.                      int8_t  Layer;       ///< Layer index (usually only used if a note-on event has to be postponed, e.g. due to shortage of free voices).
91                  uint8_t Value;        ///< Value for control change events.                      int8_t  ReleaseTrigger; ///< If new voice should be a release triggered voice (actually boolean field and usually only used if a note-on event has to be postponed, e.g. due to shortage of free voices).
92              };                  } Note;
93              union {                  /// Control change event specifics
94                  int16_t Pitch;        ///< Pitch value for pitchbend events.                  struct _CC {
95                  uint    Size;         ///< Data length (in bytes) for MIDI system exclusive messages.                      uint8_t Controller;  ///< MIDI controller number of control change event.
96              };                      uint8_t Value;       ///< Controller Value of control change event.
97                    } CC;
98                    /// Pitchbend event specifics
99                    struct _Pitch {
100                        int16_t Pitch;       ///< Pitch value of pitchbend event.
101                    } Pitch;
102                    /// MIDI system exclusive event specifics
103                    struct _Sysex {
104                        uint Size;           ///< Data length (in bytes) of MIDI system exclusive message.
105                    } Sysex;
106                } Param;
107    
108              inline uint FragmentPos() {              inline uint FragmentPos() {
109                  if (iFragmentPos >= 0) return (uint) iFragmentPos;                  if (iFragmentPos >= 0) return (uint) iFragmentPos;

Legend:
Removed from v.244  
changed lines
  Added in v.250

  ViewVC Help
Powered by ViewVC