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

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

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

revision 2226 by iliev, Tue Aug 2 13:44:57 2011 UTC revision 2227 by iliev, Wed Aug 3 17:11:40 2011 UTC
# Line 107  namespace LinuxSampler { Line 107  namespace LinuxSampler {
107                  const unsigned int intLimit = (unsigned int) -1; // all 0xFFFF...                  const unsigned int intLimit = (unsigned int) -1; // all 0xFFFF...
108                  uiLevel = intLimit * phase;                  uiLevel = intLimit * phase;
109              }              }
110                
111                void setFrequency(float Frequency, unsigned int SampleRate) {
112                    const unsigned int intLimit = (unsigned int) -1; // all 0xFFFF...
113                    float r = Frequency / (float) SampleRate; // frequency alteration quotient
114                    c = (int) (intLimit * r);
115                }
116    
117          protected:          protected:
118              unsigned int uiLevel;              unsigned int uiLevel;

Legend:
Removed from v.2226  
changed lines
  Added in v.2227

  ViewVC Help
Powered by ViewVC