File indexing completed on 2024-04-28 15:08:06

0001 /* miniSynth - A Simple Software Synthesizer
0002    SPDX-FileCopyrightText: 2015 Ville Räisänen <vsr at vsr.name>
0003 
0004    SPDX-License-Identifier: GPL-3.0-or-later
0005 */
0006 
0007 #ifndef MODULATION_H
0008 #define MODULATION_H
0009 
0010 #include <qmath.h>
0011 #include "waveform.h"
0012 
0013 class Modulation {
0014 public:
0015     Modulation();
0016     ~Modulation() = default;
0017 
0018     qreal FM_freq, FM_ampl;
0019     qreal AM_freq, AM_ampl, AM_time;
0020     unsigned int mode;
0021 
0022     bool propFreq, useEnvelope;
0023 };
0024 
0025 #endif // MODULATION_H