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

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

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

revision 2930 by schoenebeck, Tue Apr 19 15:49:34 2016 UTC revision 2931 by schoenebeck, Sat Jul 9 14:38:33 2016 UTC
# Line 28  namespace LinuxSampler { Line 28  namespace LinuxSampler {
28          RTList<note_id_t>* pChildNotes; ///< Note ID list of "child" notes of this note. These are special notes that must be released once this note gets released.          RTList<note_id_t>* pChildNotes; ///< Note ID list of "child" notes of this note. These are special notes that must be released once this note gets released.
29          Event cause; ///< Copy of the original event (usually a note-on event) which caused this note.          Event cause; ///< Copy of the original event (usually a note-on event) which caused this note.
30          event_id_t eventID; ///< Unique ID of the actual original @c Event which caused this note.          event_id_t eventID; ///< Unique ID of the actual original @c Event which caused this note.
31            /// Optional synthesis parameters that might be overridden (by calling real-time instrument script functions like change_vol(), change_pitch(), etc.).
32            struct  _Override {
33                float Volume;       ///< as linear amplification ratio (1.0 being neutral)
34                float Pitch;        ///< as linear frequency ratio (1.0 being neutral)
35                float Pan;          ///< between -1.0 (most left) and +1.0 (most right) and 0.0 being neutral.
36                int64_t PanSources; ///< Might be used for calculating an average pan value in differential way: amount of times the Pan value had been changed and shall be calculated relatively upon.
37            } Override;
38          /// Sampler format specific informations and variables.          /// Sampler format specific informations and variables.
39          union _Format {          union _Format {
40              /// Gigasampler/GigaStudio format specifics.              /// Gigasampler/GigaStudio format specifics.
# Line 38  namespace LinuxSampler { Line 45  namespace LinuxSampler {
45          } Format;          } Format;
46      protected:      protected:
47          NoteBase() : hostKey(0), parentNoteID(0), pChildNotes(NULL) {          NoteBase() : hostKey(0), parentNoteID(0), pChildNotes(NULL) {
48                Override.Volume     = 1.f;
49                Override.Pitch      = 1.f;
50                Override.Pan        = 0.f;
51                Override.PanSources = 0;
52              Format = _Format();              Format = _Format();
53          }          }
54      };      };
# Line 72  namespace LinuxSampler { Line 83  namespace LinuxSampler {
83                  pChildNotes->clear();                  pChildNotes->clear();
84              cause = Event();              cause = Event();
85              eventID = 0;              eventID = 0;
86                Override.Volume     = 1.f;
87                Override.Pitch      = 1.f;
88                Override.Pan        = 0.f;
89                Override.PanSources = 0;
90              Format = _Format();              Format = _Format();
91              if (pActiveVoices) {              if (pActiveVoices) {
92                  typename RTList<V>::Iterator itVoice = pActiveVoices->first();                  typename RTList<V>::Iterator itVoice = pActiveVoices->first();

Legend:
Removed from v.2930  
changed lines
  Added in v.2931

  ViewVC Help
Powered by ViewVC