Skip to content

Commit

Permalink
libfaust: add sigDelay1 and boxRound
Browse files Browse the repository at this point in the history
  • Loading branch information
DBraun committed Sep 16, 2023
1 parent 1001a51 commit 0c8bc46
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Source/FaustBoxAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<BoxWrapper> box1) {
return BoxWrapper(box1.has_value() ? boxRound(*box1) : boxRound());
},
arg("box1") = py::none())
.def(
"boxLog",
[](std::optional<BoxWrapper> box1) {
Expand Down
7 changes: 6 additions & 1 deletion Source/FaustSignalAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -1065,4 +1071,3 @@ void create_bindings_for_faust_signal(py::module &faust_module,
py::implicitly_convertible<float, SigWrapper>();
py::implicitly_convertible<int, SigWrapper>();
}
#endif

0 comments on commit 0c8bc46

Please sign in to comment.