13 #ifndef __SYNTHESIZER_H__ 14 #define __SYNTHESIZER_H__ 33 SoundFontInfo(QString _fileName) : fileName(_fileName), fontName(_fileName) {}
34 SoundFontInfo(QString _fileName, QString _fontName) : fileName(_fileName), fontName(_fontName) {}
51 virtual void init(
float sr) { _sampleRate = sr; }
54 virtual const char* name()
const = 0;
59 virtual bool loadSoundFonts(
const QStringList&) = 0;
63 virtual std::vector<SoundFontInfo> soundFontsInfo()
const = 0;
65 virtual void process(
unsigned,
float*,
float*,
float*) = 0;
68 virtual const QList<MidiPatch*>& getPatchInfo()
const = 0;
74 virtual double value(
int)
const {
return 0.0; }
76 void reset() { _active =
false; }
77 bool active()
const {
return _active; }
virtual void setValue(int, double)
Definition: synthesizer.h:73
Definition: synthesizer.h:41
virtual bool removeSoundFont(const QString &)
Definition: synthesizer.h:61
float _sampleRate
Definition: synthesizer.h:45
bool _active
Definition: synthesizer.h:42
SoundFontInfo(QString _fileName)
Definition: synthesizer.h:33
void reset()
Definition: synthesizer.h:76
Definition: synthesizer.h:29
Definition: synthesizergui.h:24
QString fileName
Definition: synthesizer.h:30
virtual void allNotesOff(int)
Definition: synthesizer.h:81
virtual double value(int) const
Definition: synthesizer.h:74
Definition: aeolus.cpp:26
float sampleRate() const
Definition: synthesizer.h:52
SynthesizerGui * _gui
Definition: synthesizer.h:46
Definition: synthesizerstate.h:40
Synthesizer()
Definition: synthesizer.h:49
virtual bool addSoundFont(const QString &)
Definition: synthesizer.h:60
virtual void init(float sr)
Definition: synthesizer.h:51
bool active() const
Definition: synthesizer.h:77
virtual void allSoundsOff(int)
Definition: synthesizer.h:80
void setActive(bool val=true)
Definition: synthesizer.h:78
virtual SynthesizerGui * gui()
Definition: synthesizer.h:83
virtual void setMasterTuning(double)
Definition: synthesizer.h:56
virtual ~Synthesizer()
Definition: synthesizer.h:50
QString fontName
Definition: synthesizer.h:31
SoundFontInfo(QString _fileName, QString _fontName)
Definition: synthesizer.h:34
virtual double masterTuning() const
Definition: synthesizer.h:57