All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class soundmodel.BangForce

java.lang.Object
   |
   +----soundmodel.SonicForce
           |
           +----soundmodel.BangForce

public class BangForce
extends SonicForce
A force model for hitting. Parameter is the length of the contact. If contact time is short wil get a sharp, metalling hit. If contact duration is longer get sound of a rubber hammer for example. Ballpark figure for contact duration is about 10 ms.


Constructor Index

 o BangForce(double, double)
Allocate an impact force at samplingrate (must be 8012) and given contact duration (seconds).

Method Index

 o makeForce(double, double)
Create force, not bigger than maxforce (About 1.0 is normal.) Contact_time in seconds.

Constructors

 o BangForce
 public BangForce(double srat,
                  double time)
Allocate an impact force at samplingrate (must be 8012) and given contact duration (seconds).

Methods

 o makeForce
 public void makeForce(double maxforce,
                       double contact_time)
Create force, not bigger than maxforce (About 1.0 is normal.) Contact_time in seconds. Smaller values give sharper sounds. 50ms is soft.


All Packages  Class Hierarchy  This Package  Previous  Next  Index