KtlLoop:
Filter:
KtlLoop (extension) | Libraries > JITLib

KtlLoop
ExtensionExtension

KtlLoop is an EventLoop that can set an object's params from recorded events.

Description

KtlLoop can recorded events from input controllers, and play them back with the time manipulations of EventLoop. It can use those events to set an object's params based on a ktlMap. It can further rescale the recorded events in equally flexible ways - scaling, shifting, inversion.

Instance Methods

.paramsToRecord

the names of the input params to record

.object

the object to which KtlLoop will send set commands

.ktlMap

a dict which says which input key (controller side) sets which param on the object.

.currState

the current numerical state of all input controllers

.setuObj

do param key matching, then set the object: select all params from the event that are in paramsToRecord, use it to set the object params specified in ktlMap, and let the object handle spec mapping.

.defaultFunc

the default function to use for playback: if the recorded event is type \set, use it to KtlLoop.setuObj

Examples