Mercurial > hg > svapp
comparison align/LinearAligner.h @ 767:dd742e566e60 pitch-align
Make a start on further alignment methods
author | Chris Cannam |
---|---|
date | Thu, 21 May 2020 16:21:57 +0100 |
parents | |
children | 486add472c3f |
comparison
equal
deleted
inserted
replaced
761:6429a164b7e1 | 767:dd742e566e60 |
---|---|
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_LINEAR_ALIGNER_H | |
16 #define SV_LINEAR_ALIGNER_H | |
17 | |
18 #include "Aligner.h" | |
19 | |
20 class AlignmentModel; | |
21 class Document; | |
22 | |
23 class LinearAligner : public Aligner | |
24 { | |
25 Q_OBJECT | |
26 | |
27 public: | |
28 LinearAligner(Document *doc, | |
29 ModelId reference, | |
30 ModelId toAlign, | |
31 bool trimmed); | |
32 | |
33 ~LinearAligner(); | |
34 | |
35 void begin() override; | |
36 | |
37 static bool isAvailable() { | |
38 return true; | |
39 } | |
40 | |
41 private: | |
42 Document *m_document; | |
43 ModelId m_reference; | |
44 ModelId m_toAlign; | |
45 bool m_trimmed; | |
46 }; | |
47 | |
48 #endif |