Using Compiled Accesses
Description
Allows one to create a membrane or plate object with a limited number of fixed, immovable accesses. This operation saves lots of memory if you are using objects with a lot of modes.
(with-compiled-accesses ... )
Syntax and Default Values
A compiled access can be created using the following Lisp syntax:
(with-compiled-accesses
(list (list x-or-radius y-or-angle)
(list x-or-radius y-or-angle)
...etc... )
(make-object ... ))
Parameters
the with-compiled-accesses function requires a list of lists containing 2-dimensional access locations with the following parameters:
- x-or-radius, y-or-angle: 2-dimensional access locations to be computed at object creation time. This marks the access locations to be computed at the creation of the object. The units for this parameter depend on the whether the plate or membrane is square or round. If it is square, each list element will contain an x and a y . If it is round, each list element will contain a location along the radius (between 0 and 1) and an angle. (For more information about accesses on plates and membranes, see their specific object reference entries.)
Options
Accessing Compiled Accesses
To make an access on an object which has compiled accesses, you must use (make-access ... 'decoded). The access locations stay in the same order as the above list. Thus, if your list of accesses has three elements, use:
(make-access my-comp-mem (const 1 0 0) 'decoded)
(make-access my-comp-mem (const 0 1 0) 'decoded)
(make-access my-comp-mem (const .1 .6 .3) 'decoded)