The Hammer Device

The Hammer device provides a generalised mechanism for producing percussive sounds. A Hammer device has the following attributes:

mass
- the mass of the hammer.
height
- the initial height from which the hammer is dropped.
position
- the current height of the hammer.
initVelocity
- the initial velocity of the hammer.
velocity
- the current velocity of the hammer.
maxImpacts
- the maximum number of the impacts with the target instrument.
numImpacts
- the number of impacts with the target instrument since the hammer was dropped.
gravity
- gravitational acceleration acting upon the hammer.
damping
- degree of damping applied to the hammer.
hardness
- how hard the impact surface of the hammer is.

All of these parameters may be altered under algorithmic control except the number of impacts which is read only.


©1999,2000 Mark Pearson m.pearson@ukonline.co.uk April 30, 2000