muzgen/lib/Constant.hpp

26 lines
441 B
C++

#ifndef muz_CONSTANT_HPP
#define muz_CONSTANT_HPP
#include "Signal.hpp"
#include "AudioConf.hpp"
namespace muz
{
/**
* A constant signal mainly used as input for more complex signals.
**/
class Constant: public Signal
{
public:
explicit Constant(AudioConf const& conf, float value=0.0f);
virtual ~Constant();
std::vector<float> next() override;
private:
AudioConf m_conf;
float m_value;
};
}
#endif