Clatter.Core
is the core library for Clatter. It can be used both in a Unity and non-Unity context.
Download:
New users should start by reading:
ClatterObjectData
Audio data for a Clatter object.CollisionEvent
A struct for storing collision data.AudioGenerator
Generate audio within a dynamic physics simulation.WavWriter
Write audio samples to a .wav file.ExternalEntryPoint
A convenient entry point for non-C# applications. If your project is in Unity/C#, you should ignore this class.To create audio in Clatter, you typically need to declare at least 2 AudioObjectData
objects, at least 1 CollisionEvent
, and an AudioGenerator
. The AudioGenerator
reads the CollisionEvent
and generates audio. In programs where speed is not important and you just want to generate simple wav files, you can optionally generate audio by declaring a new Impact
or Scrape
instead of an AudioGenerator
.
Clatter.Core
can be used in Unity as-is, but it's usually much easier to use Clatter.Unity
. Clatter.Core
doesn't have any MonoBehaviour subclasses, meaning that nothing will update on Update(), Awake(), etc.