Skip to content

Commit

Permalink
libfaust 2.70.3
Browse files Browse the repository at this point in the history
  • Loading branch information
DBraun committed Sep 8, 2024
1 parent 07389dc commit 68011b2
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
11 changes: 9 additions & 2 deletions Source/FaustBoxAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,14 @@ py::module_ &create_bindings_for_faust_box(py::module &faust_module,
return BoxWrapper(boxFVar(type, name, file));
},
arg("type"), arg("name"), arg("file"))
.def(
"boxFFun",
[](SType type, nvec names, svec atypes, const std::string &incfile,
const std::string &libfile) {
return BoxWrapper(boxFFun(type, names, atypes, incfile, libfile));
},
arg("type"), arg("names"), arg("arg_types"), arg("inc_file"),
arg("lib_file"), "Return a foreign function box.")

.def(
"boxBinOp",
Expand Down Expand Up @@ -837,7 +845,7 @@ py::module_ &create_bindings_for_faust_box(py::module &faust_module,
.def(
"boxVGroup",
[](std::string &label, BoxWrapper &box1) {
return BoxWrapper(boxHGroup(label, box1));
return BoxWrapper(boxVGroup(label, box1));
},
arg("label"), arg("box"), "Create a vgroup.")

Expand Down Expand Up @@ -872,7 +880,6 @@ py::module_ &create_bindings_for_faust_box(py::module &faust_module,
: boxAttach());
},
arg("box1") = py::none(), arg("box2") = py::none())

.def(
"boxSampleRate",
[]() {
Expand Down
16 changes: 12 additions & 4 deletions Source/FaustSignalAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,7 @@ void create_bindings_for_faust_signal(py::module &faust_module,
arg("sig1"), arg("sig2"))
.def(
"sigDelay1",
[](SigWrapper &sig1) {
return SigWrapper(sigDelay1(sig1));
},
[](SigWrapper &sig1) { return SigWrapper(sigDelay1(sig1)); },
arg("sig1"))

.def(
Expand Down Expand Up @@ -272,12 +270,22 @@ void create_bindings_for_faust_signal(py::module &faust_module,
},
arg("selector"), arg("sig1"), arg("sig2"), arg("sig3"))

.def(
"sigFFun",
[](SType rtype, nvec names, svec atypes, const std::string &incfile,
const std::string &libfile, tvec largs) {
return SigWrapper(
sigFFun(rtype, names, atypes, incfile, libfile, largs));
},
arg("type"), arg("names"), arg("arg_types"), arg("inc_file"),
arg("lib_file"), arg("largs"), "Create a foreign function signal.")
.def(
"sigFConst",
[](SType type, const std::string &name, const std::string &file) {
return SigWrapper(sigFConst(type, name, file));
},
arg("type"), arg("name"), arg("file"))
arg("type"), arg("name"), arg("file"),
"Create a foreign constant signal.")
.def(
"sigFVar",
[](SType type, const std::string &name, const std::string &file) {
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/faust
Submodule faust updated 105 files
2 changes: 1 addition & 1 deletion thirdparty/libfaust/download_libfaust.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def main(version: str) -> None:
sys.exit("Python %s.%s or later is required.\n" % MIN_PYTHON)

parser = argparse.ArgumentParser(description="Download and install Libfaust.")
parser.add_argument("-v", "--version", default="2.69.3", help="Specify the version of Faust to download.")
parser.add_argument("-v", "--version", default="2.70.3", help="Specify the version of Faust to download.")
parser.add_argument("--force", action="store_true", help="Force download even if files already exist.")
args = parser.parse_args()

Expand Down

0 comments on commit 68011b2

Please sign in to comment.