MoodSpec

class MoodSpec(val calmTrail: Float, val livelyTrail: Float, val calmZoom: Float = 1.0f, val livelyZoom: Float = 1.0f, val calmSpin: Float = 0.0f, val livelySpin: Float = 0.0f, val calmBloomShare: Float = 0.4f, val livelyBloomShare: Float = 0.4f, val calmWarp: Float = 0.0f, val livelyWarp: Float = 0.0f, val calmDriftX: Float = 0.0f, val livelyDriftX: Float = 0.0f, val calmDriftY: Float = 0.0f, val livelyDriftY: Float = 0.0f)

Feedback settings for calm music and for lively music, blended between as the mood moves.

A fixed trail makes a drawing look the same through a whole album. Long soft echoes suit a quiet passage and read as smeared mush under a drum break, and the short hard echoes that suit the drum break look lifeless under the quiet passage. So both are declared and the surface picks the mixture.

The one rule of the feedback loop still applies at both ends: whatever comes back must total less than one, or the picture multiplies itself and the screen is white inside a second.

Constructors

Link copied to clipboard
constructor(calmTrail: Float, livelyTrail: Float, calmZoom: Float = 1.0f, livelyZoom: Float = 1.0f, calmSpin: Float = 0.0f, livelySpin: Float = 0.0f, calmBloomShare: Float = 0.4f, livelyBloomShare: Float = 0.4f, calmWarp: Float = 0.0f, livelyWarp: Float = 0.0f, calmDriftX: Float = 0.0f, livelyDriftX: Float = 0.0f, calmDriftY: Float = 0.0f, livelyDriftY: Float = 0.0f)

Properties

Link copied to clipboard

How much of the trail's budget goes to the wide, faint copies.

Link copied to clipboard

How far the echoes stream each second, across and down, as shares of the screen.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

How hard the per-pixel warp bends the returning frame.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun bloomShare(mood: Float): Float
Link copied to clipboard
fun driftX(mood: Float): Float
Link copied to clipboard
fun driftY(mood: Float): Float
Link copied to clipboard
fun spin(mood: Float): Float
Link copied to clipboard
fun trail(mood: Float): Float
Link copied to clipboard
fun warp(mood: Float): Float
Link copied to clipboard
fun zoom(mood: Float): Float