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

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

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

linuxsampler/trunk/src/engines/common/PulseLFO.h revision 3612 by schoenebeck, Mon Sep 30 18:03:43 2019 UTC linuxsampler/trunk/src/engines/common/LFOPulse.h revision 3614 by schoenebeck, Tue Oct 1 09:11:27 2019 UTC
# Line 32  namespace LinuxSampler { Line 32  namespace LinuxSampler {
32       * math (without branches) to synthesize the pulse wave.       * math (without branches) to synthesize the pulse wave.
33       */       */
34      template<LFO::range_type_t RANGE, int WIDTH /* in permilles */>      template<LFO::range_type_t RANGE, int WIDTH /* in permilles */>
35      class PulseLFO : public LFOBase<RANGE> {      class LFOPulse : public LFOBase<RANGE> {
36          public:          public:
37    
38              /**              /**
# Line 40  namespace LinuxSampler { Line 40  namespace LinuxSampler {
40               *               *
41               * @param Max - maximum value of the output levels               * @param Max - maximum value of the output levels
42               */               */
43              PulseLFO(float Max) : LFOBase<RANGE>::LFOBase(Max) {              LFOPulse(float Max) : LFOBase<RANGE>::LFOBase(Max) {
44              }              }
45    
46              /**              /**
# Line 161  namespace LinuxSampler { Line 161  namespace LinuxSampler {
161              int   c;              int   c;
162              float normalizer;              float normalizer;
163      };      };
       
     template<LFO::range_type_t RANGE>  
     class SquareLFO : public PulseLFO<RANGE, 500> {  
         public:  
             SquareLFO(float Max) : PulseLFO<RANGE, 500>::PulseLFO(Max) { }  
     };  
164    
165  } // namespace LinuxSampler  } // namespace LinuxSampler
166    

Legend:
Removed from v.3612  
changed lines
  Added in v.3614

  ViewVC Help
Powered by ViewVC