5#include <pybind11/pybind11.h>
8namespace py = pybind11;
24 py::class_<Siggen, std::shared_ptr<Siggen>> siggen(m,
"Siggen");
26 "Set the level of the signal generator");
31 py::arg(
"dB") =
true);
36 py::class_<Noise, std::shared_ptr<Noise>> noise(m,
"Noise", siggen);
37 noise.def(py::init<>());
39 py::class_<Sine, std::shared_ptr<Sine>> sine(m,
"Sine", siggen);
40 sine.def(py::init<const d>());
43 py::class_<Periodic, std::shared_ptr<Periodic>> periodic(m,
"Periodic",
45 periodic.def(
"getSequence",
48 py::class_<Sweep, std::shared_ptr<Sweep>> sweep(m,
"Sweep", periodic);
49 sweep.def(py::init<const d, const d, const d, const d, const us>());
vd getSequence() const
Return copy of the generated sequence.
void setFilter(const std::string &name, std::shared_ptr< Filter > f)
Set a filter on the signal. For example to EQ the signal, or otherwise to shape the spectrum....
void setDCOffset(d offset)
Set a linear DC offset value to the signal.
void setLevel(const d level, bool dB=true)
Set the level of the signal generator.
void reset(const d newFs)
Reset the signal generator. Should be called whenever the output is based on a different sampling fre...
void setMute(bool mute=true)
Mute the signal. Passes through the DC offset. No lock is hold. If it just works one block later,...
void setFreq(const d newFreq)
static constexpr int BackwardSweep
static constexpr int LogSweep
static constexpr int LinearSweep
static constexpr int ForwardSweep
void init_siggen(py::module &m)
Initialize Siggen wrappers.