Package-level declarations

Types

Link copied to clipboard
class Anticipator(spring: Spring)

Kicks a spring early enough that its peak lands on the next onset instead of just after it.

Link copied to clipboard

A choice between options ways of drawing. A change fades from the old option over one visual cycle.

Link copied to clipboard
object Ease

Shapes for anything that travels from one value to another.

Link copied to clipboard
class Envelope(attackPerSecond: Float = 14.0f, releasePerSecond: Float = 2.4f, initial: Float = 0.0f)

Rises fast and falls slowly, which is what the bars in every music player do.

Link copied to clipboard
class Evolution(var morphBudget: Float = 8.0f)

Paces a drawing's changes of form by how much is happening in the music.

Link copied to clipboard
sealed class Gene

One part of a drawing's recipe the song can change: a count, a layout, a ground.

Link copied to clipboard
class Genes(seed: Long)

A drawing's recipe, and the rules that change it.

Link copied to clipboard
class Gestures

Confident transients and supported structural edges, with separate continuous visual cycles.

Link copied to clipboard
class Impulses(capacity: Int = 64)

The last hits, each with a place, for rings, shocks and eddies that spread from where a hit landed. The newest is index 0. Ages count heard seconds, so a pause holds every ring where it is.

Link copied to clipboard
class MusicClock(beatsPerCycle: Float = 4.0f, pullPerSecond: Float = 0.6f)

A rotation that lands on the beat when there is one, and keeps turning when there is not.

Link copied to clipboard
class Noise1(seed: Int = 1)

Smooth random movement over time.

Link copied to clipboard

A number in the recipe. A change glides to the new value over one visual cycle.

Link copied to clipboard
class Slew(maxPerSecond: Float, initial: Float = 0.0f)

Stops a value moving faster than maxPerSecond. Useful for anything a viewer tracks by eye.

Link copied to clipboard
class Spring(stiffness: Float = 120.0f, damping: Float = 0.55f, initial: Float = 0.0f)

A value that chases a target and overshoots a little before settling.