/[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 2931 by schoenebeck, Sat Jul 9 14:38:33 2016 UTC revision 2953 by schoenebeck, Sat Jul 16 11:24:39 2016 UTC
# Line 34  namespace LinuxSampler { Line 34  namespace LinuxSampler {
34              float Pitch;        ///< as linear frequency ratio (1.0 being neutral)              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.              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.              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                float Cutoff;       ///< between 0.0 and 1.0
38                float Resonance;    ///< between 0.0 and 1.0
39                float Attack;       ///< between 0.0 and 1.0
40                float Decay;        ///< between 0.0 and 1.0
41                float Release;      ///< between 0.0 and 1.0
42          } Override;          } Override;
43          /// Sampler format specific informations and variables.          /// Sampler format specific informations and variables.
44          union _Format {          union _Format {
# Line 49  namespace LinuxSampler { Line 54  namespace LinuxSampler {
54              Override.Pitch      = 1.f;              Override.Pitch      = 1.f;
55              Override.Pan        = 0.f;              Override.Pan        = 0.f;
56              Override.PanSources = 0;              Override.PanSources = 0;
57                Override.Cutoff     = 1.f;
58                Override.Resonance  = 1.f;
59                Override.Attack     = 1.f;
60                Override.Decay      = 1.f;
61                Override.Release    = 1.f;
62              Format = _Format();              Format = _Format();
63          }          }
64      };      };
65    
66      /**      /**
67       * Contains the voices caused by one specific note, as well as basic       * Contains the voices caused by one specific note, as well as basic
68       * informations about the note itself.       * informations about the note itself. You can see a Note object as one
69         * specific event in time where one or more voices were spawned at the same
70         * time and all those voices due to the same cause.
71         *
72         * For example when you press down and hold the sustain pedal, and then
73         * trigger the same note on the keyboard multiple times, for each key
74         * strokes a separate Note instance is created.
75         *
76         * If your instrument contains a real-time instrument script, then that
77         * script might also trigger additional voices programmatically (by
78         * calling the built-in script function play_note()). Each time the script
79         * calls play_note() a new Note instance is created and the script may then
80         * further control the voices of specific notes independently from each
81         * other. For example for each key stroke on your keyboard the instrument
82         * script might trigger 3 additional notes programmatically and assign a
83         * different tuning filter parameters for each one of the 3 notes
84         * independently.
85       */       */
86      template<class V>      template<class V>
87      class Note : public NoteBase {      class Note : public NoteBase {
# Line 87  namespace LinuxSampler { Line 113  namespace LinuxSampler {
113              Override.Pitch      = 1.f;              Override.Pitch      = 1.f;
114              Override.Pan        = 0.f;              Override.Pan        = 0.f;
115              Override.PanSources = 0;              Override.PanSources = 0;
116                Override.Cutoff     = 1.f;
117                Override.Resonance  = 1.f;
118                Override.Attack     = 1.f;
119                Override.Decay      = 1.f;
120                Override.Release    = 1.f;
121              Format = _Format();              Format = _Format();
122              if (pActiveVoices) {              if (pActiveVoices) {
123                  typename RTList<V>::Iterator itVoice = pActiveVoices->first();                  typename RTList<V>::Iterator itVoice = pActiveVoices->first();

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

  ViewVC Help
Powered by ViewVC