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