Skip to content

Commit

Permalink
Expose EnvelopeBuffer constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Jan 24, 2024
1 parent b5d6533 commit 71de4b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/src/python/buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ void init_python_buffer(py::module &m)
"Buffer encapsulating an audio envelope")
.def(py::init<int>(), "num_frames"_a,
R"pbdoc(Create an envelope buffer containing the given number of samples.)pbdoc")
.def(py::init<std::vector<float>>(), "samples"_a,
R"pbdoc(Create an envelope buffer containing the specified 1D array of samples.)pbdoc")
.def(py::init<std::string>(), "shape"_a,
R"pbdoc(Create an envelope buffer with the specified shape, one of: rectangular, triangle, hanning, linear-decay.)pbdoc")
.def(py::init<std::string, int>(), "shape"_a, "num_frames"_a,
Expand Down

0 comments on commit 71de4b4

Please sign in to comment.