13 #ifndef __MSYNTHESIZER_H__ 14 #define __MSYNTHESIZER_H__ 43 static constexpr
double MUTE = 0.00;
44 static constexpr
double MAX = 10.00;
45 static constexpr
double N = 20.0;
53 std::atomic<bool>
lock1 {
false };
54 std::atomic<bool>
lock2 {
true };
90 int index(
const QString&)
const;
91 QString
name(
unsigned)
const;
100 const std::vector<Effect*>&
effectList(
int ab)
const {
return _effectList[ab]; }
int index(const QString &) const
Definition: msynthesizer.cpp:103
float effect1Buffer[MAX_BUFFERSIZE]
Definition: msynthesizer.h:61
static constexpr double MAX
Definition: msynthesizer.h:44
~MasterSynthesizer()
Definition: msynthesizer.cpp:66
int indexOfEffect(int ab, const QString &name)
Definition: msynthesizer.cpp:299
float boost() const
Definition: msynthesizer.h:119
Definition: midipatch.h:29
float effect2Buffer[MAX_BUFFERSIZE]
Definition: msynthesizer.h:62
QString name(unsigned) const
Definition: msynthesizer.cpp:119
int dynamicsMethod() const
Definition: msynthesizer.h:122
int _dynamicsMethod
Definition: msynthesizer.h:40
Definition: synthesizer.h:41
static const int MAX_BUFFERSIZE
Definition: msynthesizer.h:48
MasterSynthesizer()
Definition: msynthesizer.cpp:29
void setEffect(int ab, int idx)
Definition: msynthesizer.cpp:211
Effect * _effect[MAX_EFFECTS]
Definition: msynthesizer.h:57
void setGainAsDecibels(float decibelValue)
Definition: msynthesizer.cpp:435
float maxGainAsDecibels
Definition: msynthesizer.h:116
std::atomic< bool > lock1
Definition: msynthesizer.h:53
float gainAsDecibels() const
Definition: msynthesizer.cpp:458
void sfChanged()
Definition: msynthesizer.h:67
float sampleRate()
Definition: msynthesizer.h:81
float _boost
Definition: msynthesizer.h:37
bool setState(const SynthesizerState &)
Definition: msynthesizer.cpp:322
void setMasterTuning(double val)
Definition: msynthesizer.cpp:467
Definition: synthesizerstate.h:55
float _gain
Definition: msynthesizer.h:36
void setCcToUseIndex(int val)
Definition: msynthesizer.h:125
void setSampleRate(float val)
Definition: msynthesizer.cpp:241
std::vector< Synthesizer * > _synthesizer
Definition: msynthesizer.h:55
int ccToUseIndex() const
Definition: msynthesizer.h:124
float minGainAsDecibels
Definition: msynthesizer.h:115
void setGain(float f)
Definition: msynthesizer.cpp:422
void registerSynthesizer(Synthesizer *)
Definition: msynthesizer.cpp:193
bool storeState()
Definition: msynthesizer.cpp:402
float convertGainToDecibels(float gain) const
Definition: msynthesizer.cpp:447
MasterSynthesizer * synti
Definition: musescore.cpp:172
void process(unsigned, float *)
Definition: msynthesizer.cpp:260
void registerEffect(int ab, Effect *)
Definition: msynthesizer.cpp:202
SynthesizerState state() const
Definition: msynthesizer.cpp:377
const std::vector< Effect * > & effectList(int ab) const
Definition: msynthesizer.h:100
Definition: aeolus.cpp:26
void setBoost(float v)
Definition: msynthesizer.h:120
void allSoundsOff(int channel)
Definition: msynthesizer.cpp:159
Effect * effect(int ab)
Definition: msynthesizer.cpp:232
QList< MidiPatch * > getPatchInfo() const
Definition: msynthesizer.cpp:132
static constexpr float defaultGain
Definition: msynthesizer.h:50
void reset()
Definition: msynthesizer.cpp:81
static constexpr double MUTE
Definition: msynthesizer.h:43
float gain() const
Definition: msynthesizer.h:112
double masterTuning() const
Definition: msynthesizer.h:88
static const int MAX_EFFECTS
Definition: msynthesizer.h:49
double _masterTuning
Definition: msynthesizer.h:38
std::atomic< bool > lock2
Definition: msynthesizer.h:54
std::vector< Effect * > _effectList[MAX_EFFECTS]
Definition: msynthesizer.h:56
void init()
Definition: msynthesizer.cpp:39
Definition: msynthesizer.h:33
static constexpr double N
Definition: msynthesizer.h:45
int _ccToUse
Definition: msynthesizer.h:41
float defaultGainAsDecibels
Definition: msynthesizer.h:114
const std::vector< Synthesizer * > synthesizer() const
Definition: msynthesizer.h:101
float _sampleRate
Definition: msynthesizer.h:59
void allNotesOff(int channel)
Definition: msynthesizer.cpp:169
void setDynamicsMethod(int val)
Definition: msynthesizer.h:123
void play(const NPlayEvent &, unsigned)
Definition: msynthesizer.cpp:91