diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Analyser.h	Fri Nov 16 17:14:46 2012 +0000
@@ -0,0 +1,48 @@
+/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
+
+/*
+    Tony
+    An intonation analysis and annotation tool
+    Centre for Digital Music, Queen Mary, University of London.
+    This file copyright 2006-2012 Chris Cannam and QMUL.
+    
+    This program is free software; you can redistribute it and/or
+    modify it under the terms of the GNU General Public License as
+    published by the Free Software Foundation; either version 2 of the
+    License, or (at your option) any later version.  See the file
+    COPYING included with this distribution for more information.
+*/
+
+#ifndef ANALYSER_H
+#define ANALYSER_H
+
+#include <QObject>
+
+#include "transform/Transform.h"
+
+class WaveFileModel;
+class Pane;
+class PaneStack;
+class Document;
+class Layer;
+
+class Analyser : public QObject
+{
+    Q_OBJECT
+
+public:
+    Analyser();
+    virtual ~Analyser();
+
+    void newFileLoaded(Document *newDocument, WaveFileModel *model,
+		       PaneStack *paneStack, Pane *pane);
+
+protected:
+    Document *m_document;
+    WaveFileModel *m_fileModel;
+    Pane *m_pane;
+
+    Layer *addLayerFor(TransformId);
+};
+
+#endif