-
Notifications
You must be signed in to change notification settings - Fork 1
/
window.h
60 lines (45 loc) · 1.54 KB
/
window.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef WINDOW_H
#define WINDOW_H
#include <QtWidgets>
#include <QtGlobal>
#include <QWidget>
#include <QApplication>
#include <QString>
#include <QStringList>
#include <QtQuickWidgets/QQuickWidget>
#include <QFile>
#include <QtMultimedia/QMediaPlayer>
#include "items.h"
#include <libxtract.h>
class Window : public QWidget
{
Q_OBJECT
public:
Window();
int readSong(int *tab,int fSize,int *pos);
int moyenne(int * t,int frsize);
int currFrameSize;
QComboBox *audioDriver,*mike,*speaker,*frameSize;
QSlider *input,*output;
QCheckBox *audioProcess,*selfListen,*drawOracle,*liveInput,*recordInput,*play,*toggleLearn,*toggleImprov,*toggleRegions,*toggleTaboo;
QPushButton *dumpOracle,*reloadQuery,*load,*save,*initOracle,*clearBuffer,*openAudio,*learnThresholds;
QRadioButton *mfcc,*centroid,*ampl,*zcr,*pitch,*chroma;
QLabel *txt,*labFrameSize,*distanceThresholds,*inChan,*labOracleLength,*labElapsedTime,*labNextState,*labContinuity,*labLRS,*labTabooLength;
QString *folderLoad,*loadFileMusic,*loadFileOracle;
QLineEdit *inputChan,*oracleLength,*elapsedTime,*nextState,*continuity,*lrs,*tabooLength,*mfccl,*centroidl,*ampll,*zcrl,*pitchl,*chromal;
QQuickWidget *doubleHandleSlider;
QMediaPlayer *player;
Amplitude *ampli;
public slots:
void levelOutput(int level);
void audioProcessing();
void loadFolder();
void saveFolder();
void openAudioFileMusic();
void playChecked();
void recordInputChecked();
void indexChanged();
signals:
private:
};
#endif // WINDOW_H