/[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 246 by schoenebeck, Sun Sep 19 14:12:55 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.                  } Note;
91                  uint8_t Value;        ///< Value for control change events.                  /// Control change event specifics
92              };                  struct _CC {
93              union {                      uint8_t Controller;  ///< MIDI controller number of control change event.
94                  int16_t Pitch;        ///< Pitch value for pitchbend events.                      uint8_t Value;       ///< Controller Value of control change event.
95                  uint    Size;         ///< Data length (in bytes) for MIDI system exclusive messages.                  } CC;
96              };                  /// Pitchbend event specifics
97                    struct _Pitch {
98                        int16_t Pitch;       ///< Pitch value of pitchbend event.
99                    } Pitch;
100                    /// MIDI system exclusive event specifics
101                    struct _Sysex {
102                        uint Size;           ///< Data length (in bytes) of MIDI system exclusive message.
103                    } Sysex;
104                } Param;
105    
106              inline uint FragmentPos() {              inline uint FragmentPos() {
107                  if (iFragmentPos >= 0) return (uint) iFragmentPos;                  if (iFragmentPos >= 0) return (uint) iFragmentPos;

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

  ViewVC Help
Powered by ViewVC