Recherche Google
ModalysObjects > Object Utilities > Set Amplitude (of All Modes)
page précédentepage suivante

Set Amplitude (of All Modes)

Description

This allows the relative amplitudes of all the modes of an object to be altered dynamically.

(set-amplitude ... )

Lisp Syntax and Default Values

The (set-amplitude ... ) function can be called using the following Lisp syntax:

(set-amplitude object_reference controller)

Parameters

The (set-amplitude ... ) function requires two arguments:

  • object_reference: name of the object whose modes' relative amplitudes will be altered.
  • controller: a multi-dimensional controller used to set the individual amplitudes of the object's modes.

The number of dimensions in the controller should correspond to the number of modes in the object, or the remaining mode losses will be set to zero.

Discussion

This function is used to set all the individual mode amplitudes to new values:

(setq my-string (make-object 'mono-string (modes 4)))

(set-amplitude my-string (const 0.2 0.5 0.8 1.0))

This function is not yet implemented for Hybrids; an error message will be displayed if object is of hybrid type.

Options

There are no special options for this function.

page précédentepage suivante
A propos...©IRCAM 2014Réalisé avec Scenari