-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprocessfile.h
83 lines (61 loc) · 1.85 KB
/
processfile.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#ifndef PROCESSFILE_H
#define PROCESSFILE_H
#include <QObject>
#include "frontSoundTouch.h"
#include "configaudiofile.h"
class processFile: public QObject
{
Q_OBJECT
private:
QString fileName;
frontSoundTouch * soundTouch;
configAudioFile * caf;
QList<loopAudio> *loopsAudioList;
int iterationLoop;
bool alreadyLooped = false;
public:
processFile();
~processFile();
void setFilename(QString fileName);
bool play();
void seek(long long frameToStart);
void seek(double percentOfFile );
void pause();
void setByPassStrech(bool flag);
bool getByPassStrech();
void setTempoDirect(int tempo);
void setPitchSemiTonesDirect(int semiTone);
void setOctavaDirect(int octava);
float getBPM();
long long getCurrentReadFrame();
void getCurrentReadTime(QTime *currentTime);
long long framesOfFile();
void appendLoop(loopAudio tmpLoopAudio);
void insertLoop(loopAudio tmpLoopAudio, int idx = -1 );
void removeLoop( int idx = -1 );
void moveLoop( int idxOrig, int idxDest );
void setLoopName( QString newName, int idx = -1 );
QString loopName( int idx = -1 );
int countLoop();
int currentLoop();
void setCurrentLoop( int i );
double beginLoop( int idx = -1 );
void setBeginLoop( double perc ,int idx = -1 );
double endLoop( int idx = -1 );
void setEndLoop( double perc,int idx = -1 );
int semiTones( int idx = -1);
void setSemiTones( int val,int idx = -1 );
int tempo(int idx = -1);
void setTempo( int val,int idx = -1 );
int nbLoop( int idx =-1 );
void setNbLoop( int val, int idx = - 1 );
void loadConfig();
void saveConfig();
private slots:
void receiveProcessed(double num);
signals:
void processed(double num);
void requestPause();
void loopRemaining(int nbLoop);
};
#endif // PROCESSFILE_H