An example of a process actor
The Process suite (processActor, processHand, processAlg) implements a
"do-nothing" process actor which accepts an input and copies it unchanged
to its output. As an example of a modifying message, it accepts one
parameter "ModIndex" which scales the amplitude of its output. It is
intended as a starting point for writing other process actors.
To use this process implementation (just to prove that it works, we suppose),
load process.so and create an actor of type ProcessActor.
ProcessActor messages
In addition to the messages understood by all generator actors, the ProcessActor understands the following messages:
- SetModIndex hActor x
- Set the default index of modulation for new instances
created by this actor to x.
- SetAllModIndex hActor x time
- Set the index of modulation of all children to x,
and set the default index for all future children.
If time is specified, children will modulate to the new
index over the specified duration. Default index is always
set immediately regardless of time.
ProcessActor handler messages
In addition to the messages understood by all handlers, the handler for
the ProcessActor understands the following messages:
- SetInput hSound hHandler
- Set the input to come from the handler hHandler.
- SetModIndex hSound x time
- Set the index of modulation to x. If
time is specified, move to the new index over the
specified duration.