/[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 3188 by schoenebeck, Fri May 19 14:23:12 2017 UTC revision 3246 by schoenebeck, Sun May 28 22:22:56 2017 UTC
# Line 12  Line 12 
12    
13  #include "../../common/Pool.h"  #include "../../common/Pool.h"
14  #include "Event.h"  #include "Event.h"
15    #include "Fade.h"
16    
17  #define DEFAULT_NOTE_VOLUME_TIME_S  0.013 /* 13ms */  #define DEFAULT_NOTE_VOLUME_TIME_S  0.013f /* 13ms */
18  #define DEFAULT_NOTE_PITCH_TIME_S   0.013 /* 13ms */  #define DEFAULT_NOTE_PITCH_TIME_S   0.013f /* 13ms */
19    
20  namespace LinuxSampler {  namespace LinuxSampler {
21    
# Line 49  namespace LinuxSampler { Line 50  namespace LinuxSampler {
50              float AmpLFOFreq;   ///< between 0.0 and 1.0              float AmpLFOFreq;   ///< between 0.0 and 1.0
51              float PitchLFODepth; ///< between 0.0 and 1.0              float PitchLFODepth; ///< between 0.0 and 1.0
52              float PitchLFOFreq; ///< between 0.0 and 1.0              float PitchLFOFreq; ///< between 0.0 and 1.0
53                fade_curve_t VolumeCurve;
54                fade_curve_t PitchCurve;
55          } Override;          } Override;
56          /// Sampler format specific informations and variables.          /// Sampler format specific informations and variables.
57          union _Format {          union _Format {
# Line 58  namespace LinuxSampler { Line 61  namespace LinuxSampler {
61                  uint8_t DimBits; ///< Used only in conjunction with DimMask: Dimension bits that shall be selected.                  uint8_t DimBits; ///< Used only in conjunction with DimMask: Dimension bits that shall be selected.
62              } Gig;              } Gig;
63          } Format;          } Format;
64            int userPar[4]; ///< Used only for real-time instrument script functions set_event_par() and get_event_par() to store script author's user specific data ($EVENT_PAR_0 to $EVENT_PAR_3).
65      protected:      protected:
66          NoteBase() : hostKey(0), parentNoteID(0), pChildNotes(NULL) {          NoteBase() : hostKey(0), parentNoteID(0), pChildNotes(NULL) {
67              Override.Volume     = 1.f;              Override.Volume     = 1.f;
# Line 75  namespace LinuxSampler { Line 79  namespace LinuxSampler {
79              Override.AmpLFOFreq    = 1.f;              Override.AmpLFOFreq    = 1.f;
80              Override.PitchLFODepth = 1.f;              Override.PitchLFODepth = 1.f;
81              Override.PitchLFOFreq  = 1.f;              Override.PitchLFOFreq  = 1.f;
82                Override.VolumeCurve = DEFAULT_FADE_CURVE;
83                Override.PitchCurve  = DEFAULT_FADE_CURVE;
84    
85              Format = _Format();              Format = _Format();
86    
87                userPar[0] = 0;
88                userPar[1] = 0;
89                userPar[2] = 0;
90                userPar[3] = 0;
91          }          }
92      };      };
93    
# Line 145  namespace LinuxSampler { Line 156  namespace LinuxSampler {
156              Override.AmpLFOFreq    = 1.f;              Override.AmpLFOFreq    = 1.f;
157              Override.PitchLFODepth = 1.f;              Override.PitchLFODepth = 1.f;
158              Override.PitchLFOFreq  = 1.f;              Override.PitchLFOFreq  = 1.f;
159                Override.VolumeCurve = DEFAULT_FADE_CURVE;
160                Override.PitchCurve  = DEFAULT_FADE_CURVE;
161              Format = _Format();              Format = _Format();
162                userPar[0] = 0;
163                userPar[1] = 0;
164                userPar[2] = 0;
165                userPar[3] = 0;
166              if (pActiveVoices) {              if (pActiveVoices) {
167                  typename RTList<V>::Iterator itVoice = pActiveVoices->first();                  typename RTList<V>::Iterator itVoice = pActiveVoices->first();
168                  typename RTList<V>::Iterator itVoicesEnd = pActiveVoices->end();                  typename RTList<V>::Iterator itVoicesEnd = pActiveVoices->end();

Legend:
Removed from v.3188  
changed lines
  Added in v.3246

  ViewVC Help
Powered by ViewVC