Module knyst::controller

source ·
Expand description

API for interacting with a running top level Graph from any number of threads without having to manually keep track of running Graph::update regularly.

KnystCommands gives you a convenient API for sending messages to the Controller. The API is similar to calling methods on Graph directly, but also includes modifying Resources.

Structs

  • Callback that is scheduled in Beats. The closure inside the callback should only schedule changes in Beats time guided by the value to start scheduling that is passed to the function.
  • Handle to modify a running/scheduled callback
  • Receives commands from one or several KnystCommands that may be on different threads, and applies those to a top level Graph.
  • Multi threaded implementation on KnystCommands, default

Enums

  • The beat on which a callback should start, either an absolute beat value or the next multiple of some number of beats.

Traits

Functions

  • Simple error handler that just prints the error using eprintln!
  • Schedules any changes made in the closure at the given time. Currently limited to changes of constant values and spawning new nodes, not new connections.
  • Create a new local graph, runs the init function to let you build it, and then uploads it to the active Sphere.