From 0c8bc46aef5d451aa654a7079fd85f8a5c02e3e9 Mon Sep 17 00:00:00 2001 From: David Braun <2096055+DBraun@users.noreply.github.com> Date: Sat, 16 Sep 2023 10:26:00 -0400 Subject: [PATCH] libfaust: add sigDelay1 and boxRound --- Source/FaustBoxAPI.cpp | 6 ++++++ Source/FaustSignalAPI.cpp | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Source/FaustBoxAPI.cpp b/Source/FaustBoxAPI.cpp index f98b7949..f3ce75cc 100644 --- a/Source/FaustBoxAPI.cpp +++ b/Source/FaustBoxAPI.cpp @@ -656,6 +656,12 @@ py::module_ &create_bindings_for_faust_box(py::module &faust_module) { return BoxWrapper(box1.has_value() ? boxRint(*box1) : boxRint()); }, arg("box1") = py::none()) + .def( + "boxRound", + [](std::optional box1) { + return BoxWrapper(box1.has_value() ? boxRound(*box1) : boxRound()); + }, + arg("box1") = py::none()) .def( "boxLog", [](std::optional box1) { diff --git a/Source/FaustSignalAPI.cpp b/Source/FaustSignalAPI.cpp index 9bf13531..79ae209f 100644 --- a/Source/FaustSignalAPI.cpp +++ b/Source/FaustSignalAPI.cpp @@ -187,6 +187,12 @@ void create_bindings_for_faust_signal(py::module &faust_module, return SigWrapper(sigDelay(sig1, sig2)); }, arg("sig1"), arg("sig2")) + .def( + "sigDelay1", + [](SigWrapper &sig1) { + return SigWrapper(sigDelay1(sig1)); + }, + arg("sig1")) .def( "sigIntCast", @@ -1065,4 +1071,3 @@ void create_bindings_for_faust_signal(py::module &faust_module, py::implicitly_convertible(); py::implicitly_convertible(); } -#endif \ No newline at end of file