File indexing completed on 2024-05-19 05:47:18

0001 /* miniSynth - A Simple Software Synthesizer
0002    Copyright (C) 2015 Ville Räisänen <vsr at vsr.name>
0003 
0004    This program is free software: you can redistribute it and/or modify
0005    it under the terms of the GNU General Public License as published by
0006    the Free Software Foundation, either version 3 of the License, or
0007    (at your option) any later version.
0008 
0009    This program is distributed in the hope that it will be useful,
0010    but WITHOUT ANY WARRANTY; without even the implied warranty of
0011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0012    GNU General Public License for more details.
0013 
0014    You should have received a copy of the GNU General Public License
0015    along with this program.  If not, see <https://www.gnu.org/licenses/>.
0016 */
0017 
0018 #include "modulation.h"
0019 #include "waveform.h"
0020 
0021 Modulation::Modulation() : FM_freq(0.f), FM_ampl(0.f),
0022                            AM_freq(0.f), AM_ampl(0.f), AM_time(0.2f),
0023                            mode(Waveform::MODE_SIN),
0024                            propFreq(false), useEnvelope(false) {
0025 }