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

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

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

revision 2225 by iliev, Tue Aug 2 13:44:57 2011 UTC revision 2227 by iliev, Wed Aug 3 17:11:40 2011 UTC
# Line 132  namespace LinuxSampler { Line 132  namespace LinuxSampler {
132                  steps *= phase + 0.25f;                  steps *= phase + 0.25f;
133                  for (int i = 0; i < steps; i++) render();                  for (int i = 0; i < steps; i++) render();
134              }              }
135                
136                void setFrequency(float Frequency, unsigned int SampleRate) {
137                    c1 = 2.0f * M_PI * Frequency / (float) SampleRate;
138                    c2 = 2.0f * M_PI * Frequency / (float) SampleRate * 3.0f;
139                }
140    
141          private:          private:
142              float c1;              float c1;

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

  ViewVC Help
Powered by ViewVC