Mercurial > hg > svapp
comparison align/Aligner.h @ 763:da57ab54f0e8
Merge from branch pitch-align. Doesn't actually do pitch alignment here, but this is the groundwork.
author | Chris Cannam |
---|---|
date | Wed, 13 May 2020 14:10:47 +0100 |
parents | 6429a164b7e1 |
children | a316cb6fed81 |
comparison
equal
deleted
inserted
replaced
760:3a63f1f61bd6 | 763:da57ab54f0e8 |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 | |
3 /* | |
4 Sonic Visualiser | |
5 An audio file viewer and annotation editor. | |
6 Centre for Digital Music, Queen Mary, University of London. | |
7 | |
8 This program is free software; you can redistribute it and/or | |
9 modify it under the terms of the GNU General Public License as | |
10 published by the Free Software Foundation; either version 2 of the | |
11 License, or (at your option) any later version. See the file | |
12 COPYING included with this distribution for more information. | |
13 */ | |
14 | |
15 #ifndef SV_ALIGNER_H | |
16 #define SV_ALIGNER_H | |
17 | |
18 #include <QString> | |
19 | |
20 #include "data/model/Model.h" | |
21 | |
22 class Aligner : public QObject | |
23 { | |
24 Q_OBJECT | |
25 | |
26 public: | |
27 virtual ~Aligner() { } | |
28 | |
29 public slots: | |
30 virtual void begin() = 0; | |
31 | |
32 signals: | |
33 /** | |
34 * Emitted when alignment is successfully completed. The reference | |
35 * and toAlign models can be queried from the alignment model. | |
36 */ | |
37 void complete(ModelId alignmentModel); // an AlignmentModel | |
38 | |
39 /** | |
40 * Emitted when alignment fails. | |
41 */ | |
42 void failed(ModelId toAlign, QString errorText); // the toAlign model | |
43 }; | |
44 | |
45 #endif |