Mercurial > hg > svcore
annotate transform/RealTimePluginTransform.h @ 115:90ade4fa63be
* Fix serious failure to reload "imported" (i.e. all non-derived non-main)
models from .sv file
* Give a short playback duration to notes with formal duration of 0 or 1
* Show crosshairs on spectrogram even when there is another layer on top
(if it isn't opaque)
* Always paste to the same time in the layer as the cut/copy was from, rather
than to the playback pointer -- less flexible, but more predictable and
less annoying. We probably need a way to get the old behaviour if pasting
from somewhere else in the future (e.g. from a text file), but we can't do
that yet anyway
* Use a compound operation for dragging and resizing selections, so as to
ensure a single undo operation works
* Use a note model as the target for feature extraction plugins that output
variable samplerate data with more than one value per feature
* Avoid possible crashes in cut/paste if a layer proves to have no model
author | Chris Cannam |
---|---|
date | Thu, 11 May 2006 11:35:46 +0000 |
parents | 4d59dc469b0f |
children |
rev | line source |
---|---|
Chris@60 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@60 | 2 |
Chris@60 | 3 /* |
Chris@60 | 4 Sonic Visualiser |
Chris@60 | 5 An audio file viewer and annotation editor. |
Chris@60 | 6 Centre for Digital Music, Queen Mary, University of London. |
Chris@60 | 7 This file copyright 2006 Chris Cannam. |
Chris@60 | 8 |
Chris@60 | 9 This program is free software; you can redistribute it and/or |
Chris@60 | 10 modify it under the terms of the GNU General Public License as |
Chris@60 | 11 published by the Free Software Foundation; either version 2 of the |
Chris@60 | 12 License, or (at your option) any later version. See the file |
Chris@60 | 13 COPYING included with this distribution for more information. |
Chris@60 | 14 */ |
Chris@60 | 15 |
Chris@60 | 16 #ifndef _REAL_TIME_PLUGIN_TRANSFORM_H_ |
Chris@60 | 17 #define _REAL_TIME_PLUGIN_TRANSFORM_H_ |
Chris@60 | 18 |
Chris@60 | 19 #include "Transform.h" |
Chris@60 | 20 #include "RealTimePluginInstance.h" |
Chris@60 | 21 |
Chris@60 | 22 class DenseTimeValueModel; |
Chris@60 | 23 |
Chris@60 | 24 class RealTimePluginTransform : public Transform |
Chris@60 | 25 { |
Chris@60 | 26 public: |
Chris@60 | 27 RealTimePluginTransform(Model *inputModel, |
Chris@60 | 28 QString plugin, |
Chris@64 | 29 int channel, |
Chris@60 | 30 QString configurationXml = "", |
Chris@63 | 31 QString units = "", |
Chris@60 | 32 int output = 0); |
Chris@60 | 33 virtual ~RealTimePluginTransform(); |
Chris@60 | 34 |
Chris@60 | 35 protected: |
Chris@60 | 36 virtual void run(); |
Chris@60 | 37 |
Chris@60 | 38 RealTimePluginInstance *m_plugin; |
Chris@64 | 39 int m_channel; |
Chris@60 | 40 int m_outputNo; |
Chris@60 | 41 |
Chris@60 | 42 // just casts |
Chris@60 | 43 DenseTimeValueModel *getInput(); |
Chris@60 | 44 }; |
Chris@60 | 45 |
Chris@60 | 46 #endif |
Chris@60 | 47 |