TransformUserConfigurator.h
Go to the documentation of this file.
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_TRANSFORM_USER_CONFIGURATOR_H
16 #define SV_TRANSFORM_USER_CONFIGURATOR_H
17 
18 #include "transform/ModelTransformerFactory.h"
19 
20 #include <memory>
21 
22 class TransformUserConfigurator : public ModelTransformerFactory::UserConfigurator
23 {
24 public:
25  // This is of course absolutely gross
26 
27  bool configure(ModelTransformer::Input &input,
28  Transform &transform,
29  std::shared_ptr<Vamp::PluginBase> plugin,
30  ModelId &inputModel,
31  AudioPlaySource *source,
32  sv_frame_t startFrame,
33  sv_frame_t duration,
34  const QMap<QString, ModelId> &modelMap,
35  QStringList candidateModelNames,
36  QString defaultModelName) override;
37 
38  static void setParentWidget(QWidget *);
39 
40 private:
41  bool getChannelRange(TransformId identifier,
42  std::shared_ptr<Vamp::PluginBase> plugin,
43  int &min, int &max);
44 
45 };
46 
47 #endif
bool getChannelRange(TransformId identifier, std::shared_ptr< Vamp::PluginBase > plugin, int &min, int &max)
bool configure(ModelTransformer::Input &input, Transform &transform, std::shared_ptr< Vamp::PluginBase > plugin, ModelId &inputModel, AudioPlaySource *source, sv_frame_t startFrame, sv_frame_t duration, const QMap< QString, ModelId > &modelMap, QStringList candidateModelNames, QString defaultModelName) override
static void setParentWidget(QWidget *)