Mercurial > hg > tony
comparison src/Analyser.h @ 6:ab5b3300ba1a
Add analyser, calculate some transforms when a file is loaded
author | Chris Cannam |
---|---|
date | Fri, 16 Nov 2012 17:14:46 +0000 |
parents | |
children | 7ab5ed737788 |
comparison
equal
deleted
inserted
replaced
5:c2a0d8666017 | 6:ab5b3300ba1a |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 | |
3 /* | |
4 Tony | |
5 An intonation analysis and annotation tool | |
6 Centre for Digital Music, Queen Mary, University of London. | |
7 This file copyright 2006-2012 Chris Cannam and QMUL. | |
8 | |
9 This program is free software; you can redistribute it and/or | |
10 modify it under the terms of the GNU General Public License as | |
11 published by the Free Software Foundation; either version 2 of the | |
12 License, or (at your option) any later version. See the file | |
13 COPYING included with this distribution for more information. | |
14 */ | |
15 | |
16 #ifndef ANALYSER_H | |
17 #define ANALYSER_H | |
18 | |
19 #include <QObject> | |
20 | |
21 #include "transform/Transform.h" | |
22 | |
23 class WaveFileModel; | |
24 class Pane; | |
25 class PaneStack; | |
26 class Document; | |
27 class Layer; | |
28 | |
29 class Analyser : public QObject | |
30 { | |
31 Q_OBJECT | |
32 | |
33 public: | |
34 Analyser(); | |
35 virtual ~Analyser(); | |
36 | |
37 void newFileLoaded(Document *newDocument, WaveFileModel *model, | |
38 PaneStack *paneStack, Pane *pane); | |
39 | |
40 protected: | |
41 Document *m_document; | |
42 WaveFileModel *m_fileModel; | |
43 Pane *m_pane; | |
44 | |
45 Layer *addLayerFor(TransformId); | |
46 }; | |
47 | |
48 #endif |