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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3625 - (show annotations) (download) (as text)
Thu Oct 3 13:37:25 2019 UTC (4 years, 5 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 2028 byte(s)
* gig format extension: Added support for different LFO wave forms
  (currently either sine [default], triangle, saw or square).

* gig format extension: Added support for LFO phase displacement
  (0°..360°).

* gig format extension: Added support for flipping LFO polarity on LFO 3
  (in the original gig format this was only available for LFO 1 and LFO 2).

* Bumped version (2.1.1.svn22).

1 /***************************************************************************
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 //NOTE: DO NOT add any custom initialization here, since it would break LFOCluster construction !
35 }
36 };
37
38 } // namespace LinuxSampler
39
40 #endif // LS_LFO_SQUARE_PULSE_H

  ViewVC Help
Powered by ViewVC