/[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 53 by schoenebeck, Mon Apr 26 17:15:51 2004 UTC revision 246 by schoenebeck, Sun Sep 19 14:12:55 2004 UTC
# Line 2  Line 2 
2   *                                                                         *   *                                                                         *
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003 by Benno Senoner and Christian Schoenebeck         *   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *
6   *                                                                         *   *                                                                         *
7   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
8   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 71  namespace LinuxSampler { Line 71  namespace LinuxSampler {
71                  type_note_off,                  type_note_off,
72                  type_pitchbend,                  type_pitchbend,
73                  type_control_change,                  type_control_change,
74                    type_sysex,           ///< MIDI system exclusive message
75                  type_cancel_release,  ///< transformed either from a note-on or sustain-pedal-down event                  type_cancel_release,  ///< transformed either from a note-on or sustain-pedal-down event
76                  type_release          ///< transformed either from a note-off or sustain-pedal-up event                  type_release          ///< transformed either from a note-off or sustain-pedal-up event
77              } Type;              } Type;
# Line 82  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              int16_t Pitch;            ///< Pitch value for pitchbend events.                      uint8_t Controller;  ///< MIDI controller number of control change event.
94                        uint8_t Value;       ///< Controller Value of control change event.
95                    } 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.53  
changed lines
  Added in v.246

  ViewVC Help
Powered by ViewVC