ScrapeMaterialData

struct in Clatter.Core

Audio synthesis data for an scrape material.

Constants

Name Type Description Default Value
SCRAPE_M_PER_PIXEL double Meters per pixel on the scrape surface. 1394.068 * 10e-9

Static Fields

Name Type Description Default Value
roughnessRatioExponent double An exponent for each scrape material's roughness ratio. A lower value will cause all scrape audio to be louder relative to impact audio. 0.7
ImpactMaterialUnsizedToScrapeMaterial ImpactMaterialUnsized A dictionary of ImpactMaterialUnsized values mapped to ScrapeMaterial values. Not all impact materials map to scrape materials and vice versa. Readonly. new Dictionary() { { ImpactMaterialUnsized.metal, ScrapeMaterial.sanded_acrylic }, { ImpactMaterialUnsized.cardboard, ScrapeMaterial.plywood }, { ImpactMaterialUnsized.ceramic, ScrapeMaterial.vinyl }, { ImpactMaterialUnsized.glass, ScrapeMaterial.acrylic }, { ImpactMaterialUnsized.stone, ScrapeMaterial.vinyl }, { ImpactMaterialUnsized.wood_hard, ScrapeMaterial.plywood }, { ImpactMaterialUnsized.plastic_hard, ScrapeMaterial.pvc }, { ImpactMaterialUnsized.wood_medium, ScrapeMaterial.plywood } }

Fields

Name Type Description Default Value
dsdx double[] First-derivative data.
d2sdx2 double[] Secondary-derivative data.
roughnessRatio double The roughness ratio.

Static Methods

Load

public static void Load(ScrapeMaterial scrapeMaterial)

Load scrape material data from a file relative to this assembly.

Name Type Description
scrapeMaterial ScrapeMaterial The scrape material.

Get

public static void Get(ScrapeMaterial scrapeMaterial)

Returns the data associated with the scrape material.

Name Type Description
scrapeMaterial ScrapeMaterial The scrape material.