MuseScore  3.4
Music composition and notation
noeffect.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseSynth
3 // Music Software Synthesizer
4 //
5 // Copyright (C) 2013 Werner Schweer
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License version 2
9 // as published by the Free Software Foundation and appearing in
10 // the file LICENCE.GPL
11 //=============================================================================
12 
13 #ifndef __NOEFFECT_H__
14 #define __NOEFFECT_H__
15 
16 #include "effects/effect.h"
17 
18 namespace Ms {
19 
20 class EffectGui;
21 
22 //---------------------------------------------------------
23 // NoEffect
24 //---------------------------------------------------------
25 
26 class NoEffect : public Effect
27  {
28  Q_OBJECT
29 
30  public:
31  NoEffect() {}
32 
33  virtual void init(float) override {}
34  virtual void process(int, float*, float*) override;
35 
36 // virtual void setValue(int, double) override {}
37  virtual void setNValue(int, double) override {}
38  virtual double value(int) const override { return 0.0; }
39  virtual double nvalue(int) const override { return 0.0; }
40 
41  virtual const char* name() const override { return "NoEffect"; }
42  virtual EffectGui* gui() override;
43  virtual const std::vector<ParDescr>& parDescr() const override;
44  };
45 }
46 
47 #endif
48 
Definition: effect.h:41
virtual void process(int, float *, float *) override
Definition: noeffect.cpp:61
Definition: effectgui.h:24
virtual void init(float) override
Definition: noeffect.h:33
Definition: noeffect.h:26
virtual double value(int) const override
Definition: noeffect.h:38
virtual EffectGui * gui() override
Definition: noeffect.cpp:24
Definition: aeolus.cpp:26
virtual const std::vector< ParDescr > & parDescr() const override
Definition: noeffect.cpp:51
virtual double nvalue(int) const override
Definition: noeffect.h:39
virtual void setNValue(int, double) override
Definition: noeffect.h:37
virtual const char * name() const override
Definition: noeffect.h:41
NoEffect()
Definition: noeffect.h:31