Recherche Google
ModalysConnections > Strike Connection
page précédentepage suivante

Strike Connection

Description

A connection where one access strikes another.

'strike

Lisp Syntax and Default Values

(make-connection 'strike access_reference1 init-pos1 access_reference2 init-pos2 weight)

or

(make-connection 'strike access_reference1 init-pos1 weight)

Parameters

The 'strike connection takes five arguments (or just three to create a unilateral connection):

  • access_reference1: access on striking object.
  • init-pos1: initial position of the striking object's access. (numerical value, not a controller)
  • access_reference2: access on object to be struck.
  • init-pos2: initial position of the struck object's access. (numerical value, not a controller)
  • weight: (optional) controller weighing the interaction.

The two positions must be numerical values, not controllers. The weight controller is optional. If not provided, it defaults to 1.

To create a unilateral strike connection, the second access and its position are not provided.

Discussion

As with the pluck connection, strike accesses must be given an initial location and then moved in order to produce an interaction. (To move the accesses, it is necessary to use another controller: either 'position, 'force, or 'speed.) Note that the strike connection is identical to the pluck connection, except that there is no “release” when the “plectrum” (“hammer”) pushes too far.

Options

Unilateral Strike Connection

You can optionally provide only one access, in order to create a unilateral contact. In this case, contact will be made with an infinitely rigid “ground surface” situated at zero. See the Tampura example for an application.

Retro-Compatibility

In older versions of Modalys, the arguments were provided in a slightly different order:

(make-connection 'strike access_reference1 access_reference2 init-pos1 init-pos2)

You may need to update this connection to the new syntax if you come across any very old Modalys files.

See Also

(make-connection 'spring ...)

Modalys Tutorial Example [examples coming soon!]

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