ms_add_variable_node
Adds a Get, Set, or GetDelayed variable node to a MetaSound graph, enabling reading current, writing, or reading previous frame values for a named variable.
Instructions
Add a Get, Set, or GetDelayed variable node to the current graph.
Args: node_id: Unique ID for this node instance variable_name: Name of the graph variable to access mode: Access mode — "get" (read current), "set" (write), or "get_delayed" (read previous frame)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | get | |
| node_id | Yes | ||
| variable_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |