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

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

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

revision 3117 by schoenebeck, Wed Dec 14 17:34:54 2016 UTC revision 3118 by schoenebeck, Fri Apr 21 13:33:03 2017 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2   *                                                                         *   *                                                                         *
3   *   Copyright (C) 2005 Christian Schoenebeck                              *   *   Copyright (C) 2005 - 2017 Christian Schoenebeck                       *
4   *                                                                         *   *                                                                         *
5   *   This library is free software; you can redistribute it and/or modify  *   *   This library is free software; you can redistribute it and/or modify  *
6   *   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 82  namespace LinuxSampler { Line 82  namespace LinuxSampler {
82              LFOBase(float Max) {              LFOBase(float Max) {
83                  this->ExtController = 0;                  this->ExtController = 0;
84                  this->Max           = Max;                  this->Max           = Max;
85                    this->InternalDepth = 0;
86                    this->Frequency = 20.f;
87                    this->ExtControlValue = 0;
88                    this->ExtControlDepthCoeff = 0;
89                    this->ScriptDepthFactor = 1.f;
90                    this->ScriptFrequencyFactor = 1.f;
91              }              }
92    
93              virtual ~LFOBase() {              virtual ~LFOBase() {
# Line 101  namespace LinuxSampler { Line 107  namespace LinuxSampler {
107               *               *
108               * @param ExtControlValue - new external controller value               * @param ExtControlValue - new external controller value
109               */               */
110              //abstract inline void update(const uint16_t& ExtControlValue); //< what a pity that abstract inliners are not supported by C++98 (probably by upcoming C++0x?)              //abstract inline void updateByMIDICtrlValue(const uint16_t& ExtControlValue); //< what a pity that abstract inliners are not supported by C++98 (probably by upcoming C++0x?)
111    
112              /**              /**
113               * Will be called by the voice when the key / voice was triggered.               * Will be called by the voice when the key / voice was triggered.
# Line 122  namespace LinuxSampler { Line 128  namespace LinuxSampler {
128          protected:          protected:
129              float Max;              float Max;
130              float InternalDepth;              float InternalDepth;
131              float ExtControlDepthCoeff;              float Frequency; ///< Internal base frequency for this LFO.
132                float ExtControlValue; ///< The current external MIDI controller value (0-127).
133                float ExtControlDepthCoeff; ///< A usually constant factor used to convert a new MIDI controller value from range 0-127 to the required internal implementation dependent value range.
134                float ScriptDepthFactor; ///< Usually neutral (1.0), only altered by external RT instrument script functions.
135                float ScriptFrequencyFactor; ///< Usually neutral (1.0), only altered by external RT instrument script functions.
136      };      };
137    
138  } // namespace LinuxSampler  } // namespace LinuxSampler

Legend:
Removed from v.3117  
changed lines
  Added in v.3118

  ViewVC Help
Powered by ViewVC