-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathleSynth.h
45 lines (33 loc) · 1.11 KB
/
leSynth.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef LESYNTH_H
#define LESYNTH_H
#include "editor/PluginInterfaces.h"
#include "tools/utauloid/oto.h"
#include "tools/utauloid/ust.h"
class leSynth : public QObject, public ISynth
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qtau.awesomesauce.ISynth" FILE "leSynth.json")
Q_INTERFACES(ISynth)
public:
QString name();
QString description();
QString version();
void setup(SSynthConfig &cfg);
bool setVoicebank(const QString &path);
bool setVocals(const ust &u);
bool setVocals(const QStringList &ust);
bool synthesize(qtauAudioSource &a);
bool synthesize(const QString &outFileName);
bool isVbReady();
bool isVocalsReady();
bool supportsStreaming();
protected:
vsLog* log;
QOtoMap vbCfg;
ust songCfg;
inline void sLog(const QString &msg) { log->addMessage(msg, vsLog::success); }
inline void dLog(const QString &msg) { log->addMessage(msg, vsLog::debug); }
inline void iLog(const QString &msg) { log->addMessage(msg, vsLog::info); }
inline void eLog(const QString &msg) { log->addMessage(msg, vsLog::error); }
};
#endif // LESYNTH_H