comparison align/LinearAligner.h @ 778:83a7b10b7415

Merge from branch pitch-align
author Chris Cannam
date Fri, 26 Jun 2020 13:48:52 +0100
parents 486add472c3f
children
comparison
equal deleted inserted replaced
774:7bded7599874 778:83a7b10b7415
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 bool getTrimmedExtents(ModelId model, sv_frame_t &start, sv_frame_t &end);
48 };
49
50 #endif