Set Object Pitch
Description
This allows the pitch of an object to be adjusted by modifying a particular physical parameter.
(set-pitch ... )
Syntax and Default Values
The (set-pitch ... ) function can be called using the following Lisp syntax:
(set-pitch object_reference parameter_string value)
(set-pitch object_reference parameter_string controller)
Parameters
The (set pitch ... ) function requires the following arguments:
- object_reference: name of the object on which the access will be located.
- parameter_string: the physical parameter which will be modified to tune the object.
- value, controller: a numerical value or a Modalys controller used to determine the pitch (in Hz).
Discussion
The parameter string will depend on the object being modified. Refer to the object's reference page for a list of which parameters can be adjusted for that object. A list of some of the commonly used possible parameter strings is as follows:
- 'density
- 'length
- 'mass
- 'radius
- 'size
- 'stiffness
- 'tension
- 'thickness
- 'young
Options
Retro-Compatibility
Modalys also has an older syntax for pitch adjustment:
(with-pitch-adjustment parameter_string value object_reference)