-
Notifications
You must be signed in to change notification settings - Fork 0
/
onset.h
54 lines (44 loc) · 1.7 KB
/
onset.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
#ifndef ONSET_H
#define ONSET_H
#include <QMainWindow>
#include <QFileDialog>
#include <QTime>
#include <QDebug>
#include <QCryptographicHash>
#include "audio.h"
#include "audioplot.h"
#include "transform.h"
namespace Ui {
class Onset;
}
class Onset : public QMainWindow {
Q_OBJECT
public:
explicit Onset( QWidget *parent = 0 );
~Onset();
private:
Ui::Onset *ui;
Audio *audio;
QString audioFilePath;
QTimer *seekTimer;
double audioDuration;
void updateSeekSlider( double audioPosition );
void updateSeekLabel( double audioPosition );
void updateAudioTitleLabel();
void loadAudioFile( const QString &audioFilePath );
private slots:
void loadAudioFile();
void play();
void pause();
void stop();
void seek( int seconds );
void seek( double seconds );
void updateSeekInfo();
//plot
void showAudioInfo();
void showOnset();
void showStress();
void showStressFormatted();
void updateAudioInfo();
};
#endif // ONSET_H