Skip to content

Last Sample Controller

Description

A controller that always returns the last sample output by the system.

Syntax and Default Values

The 'last-sample controller can be created using the following Lisp or mlys.lua syntax:

(make-controller 'last-sample)

In Modalys for Max, this object is named mlys.last-sample:

[mlys.last-sample @name MyLastSample]

modalys.create_controller{kind="last-sample"}

Parameters

The 'last-sample controller doesn't take any argument. (In past versions, there was a dimension parameter but is now set automatically.)

Comments

This controller always returns the last sample(s) that were output by the system, using Point Output. The dimension for this controller is automatically set to the number of audio output audio channels (even if the controller is defined before the outputs). This controller might be useful to make decisions based on the presence of output sound, or using the output sound in a feedback loop to excite other objects. In this case the default feedback delay time would naturally be one sample, unless the controller were delayed with a Delay controller.


★     ★