Skip to content

Commit

Permalink
Node: Expose .graph property
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Aug 3, 2024
1 parent e3ba08f commit 40c9e73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/src/python/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ void init_python_node(py::module &m)
.def_property_readonly(
"is_playing", [](NodeRef node) { return node->get_graph()->is_playing(node); }, R"pbdoc(Query whether the node is currently playing)pbdoc")
.def(
"stop", [](NodeRef node) { node->get_graph()->stop(node); }, R"pbdoc(Stop playing the node by disconnecting it from the graph's output)pbdoc");
"stop", [](NodeRef node) { node->get_graph()->stop(node); }, R"pbdoc(Stop playing the node by disconnecting it from the graph's output)pbdoc")
.def_property_readonly("graph", &Node::get_graph, R"pbdoc(The AudioGraph that the node is part of.)pbdoc");

/*--------------------------------------------------------------------------------
* StochasticNode
Expand Down

0 comments on commit 40c9e73

Please sign in to comment.