Skip to content

Commit

Permalink
Synthesizer render argument name
Browse files Browse the repository at this point in the history
  • Loading branch information
Yikai-Liao committed Oct 2, 2024
1 parent 01af1b5 commit 965428e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions py_src/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,25 @@ nb::module_& bind_synthesizer(nb::module_& m) {
"render",
[](Synthesizer& self, const shared<Score<Tick>>& score, const bool stereo) {
return self.render(*score, stereo);
}
},
nb::arg("score"),
nb::arg("stereo") = true
)
.def(
"render",
[](Synthesizer& self, const shared<Score<Quarter>>& score, const bool stereo) {
return self.render(*score, stereo);
}
},
nb::arg("score"),
nb::arg("stereo") = true
)
.def(
"render",
[](Synthesizer& self, const shared<Score<Second>>& score, const bool stereo) {
return self.render(*score, stereo);
}
},
nb::arg("score"),
nb::arg("stereo") = true
);


Expand Down

0 comments on commit 965428e

Please sign in to comment.