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

Annotation of /linuxsampler/trunk/src/engines/common/LFOSquarePulse.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3614 - (hide annotations) (download) (as text)
Tue Oct 1 09:11:27 2019 UTC (4 years, 7 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 1918 byte(s)
Refactored LFO class names and their header file names:

* Renamed PulseLFO -> LFOPulse, LFOSawIntMath -> LFOSawIntMathNew,
  SawLFO -> LFOSawIntMathOld, SineLFO -> LFOSineBuiltinFn,
  LFOSine -> LFOSineNumericComplexNr, SquareLFO -> LFOSquarePulse.

* Separated LFOSquarePulse (previously "SquareLFO") to its own
  header file.

* Renamed type LFOSigned -> LFOTriangleSigned.

* Renamed type LFOUnsigned -> LFOTriangleUnsigned.

* Bumped version (2.1.1.svn19).

1 schoenebeck 3614 /***************************************************************************
2     * *
3     * Copyright (C) 2011 Grigor Iliev *
4     * *
5     * 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 *
7     * the Free Software Foundation; either version 2 of the License, or *
8     * (at your option) any later version. *
9     * *
10     * This library is distributed in the hope that it will be useful, *
11     * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13     * GNU General Public License for more details. *
14     * *
15     * You should have received a copy of the GNU General Public License *
16     * along with this library; if not, write to the Free Software *
17     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
18     * MA 02111-1307 USA *
19     ***************************************************************************/
20    
21     #ifndef LS_LFO_SQUARE_PULSE_H
22     #define LS_LFO_SQUARE_PULSE_H
23    
24     #include "LFOPulse.h"
25    
26     namespace LinuxSampler {
27    
28     /** @brief Square LFO (using specialized Pulse LFO as implementation).
29     */
30     template<LFO::range_type_t RANGE>
31     class LFOSquarePulse : public LFOPulse<RANGE, 500> {
32     public:
33     LFOSquarePulse(float Max) : LFOPulse<RANGE, 500>::LFOPulse(Max) { }
34     };
35    
36     } // namespace LinuxSampler
37    
38     #endif // LS_LFO_SQUARE_PULSE_H

  ViewVC Help
Powered by ViewVC