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.
-
BangForce(double, double)
- Allocate an impact force at samplingrate (must be 8012) and
given contact duration (seconds).
-
makeForce(double, double)
- Create force, not bigger than maxforce (About 1.0 is normal.)
Contact_time in seconds.
BangForce
public BangForce(double srat,
double time)
- Allocate an impact force at samplingrate (must be 8012) and
given contact duration (seconds).
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