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: LFOSquarePulse(float Max)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 41