{
  "version": 1,
  "name": "Audio Reactive",
  "parameters": {
    "Scene": 0,
    "Sensitivity": 0.58,
    "Motion": 0.31,
    "Hue": 0.25,
    "Opacity": 1,
    "Intensity": 0.89,
    "Size": 0.54,
    "Deformation": 0.26,
    "Glow": 0,
    "Trails": 0.41,
    "ShaderMix": 1,
    "Shader01": 0.92,
    "Shader02": 0.71,
    "Shader03": 1,
    "Shader04": 0.95,
    "Shader05": 0.84,
    "Shader06": 0.42,
    "Shader07": 0.87,
    "Shader08": 0.3,
    "Shader09": 0.7,
    "Shader10": 0.63,
    "Shader11": 0.69,
    "Shader12": 0.7,
    "Shader13": 0.49,
    "Shader14": 0.23,
    "Shader15": 0.46,
    "Shader16": 0.51
  },
  "decoration": {
    "label": "Test",
    "logoBase64": null,
    "labelColor": -459521,
    "backdropColor": -15723738,
    "labelScale": 0.77,
    "labelX": 0.5,
    "labelY": 0.5,
    "backdrop": "Transparent",
    "scene3D": null,
    "sceneModelPath": null,
    "shader": {
      "name": "NLP Radial Spectrum",
      "graphJson": null,
      "hlsl": "float PeakParticleHash(float2 key)\n{\n    float3 value = frac(float3(key.xyx) * 0.1031);\n    value \u002B= dot(value, value.yzx \u002B 33.33);\n    return frac((value.x \u002B value.y) * value.z);\n}\n\nfloat4 PeakParticleBurst(float2 plane, float originRadius, float age, float strength, float amount, float seed)\n{\n    const float lifetime = 0.62;\n    const float sectors = 24.0;\n    const float radiansPerSector = 6.2831853 / sectors;\n    float opacity = saturate(amount) * saturate(strength);\n    [branch] if (age \u003C 0.0 || age \u003E= lifetime || opacity \u003C 0.004)\n        return 0.0;\n\n    float radius = length(plane);\n    float expansion = 1.0 - exp2(-age * 4.0);\n    [branch] if (radius \u003C originRadius \u002B 0.030 || radius \u003E originRadius \u002B 0.23 \u002B 0.41 * expansion)\n        return 0.0;\n\n    float angle = frac(atan2(plane.y, plane.x) / 6.2831853 \u002B 1.0) * sectors;\n    float sector = floor(angle);\n    float pixel = max(TexelSize.x, TexelSize.y);\n    float life = smoothstep(0.0, 0.025, age \u002B 0.008) * (1.0 - smoothstep(0.14, lifetime, age));\n    float4 result = 0.0;\n\n    // Check overlapping angular cells so trails and bloom stay continuous across the polar seam.\n    [unroll] for (int neighbor = -1; neighbor \u003C= 1; neighbor\u002B\u002B)\n    {\n        float cell = sector \u002B neighbor;\n        float wrapped = cell - sectors * floor(cell / sectors);\n        [unroll] for (int lane = 0; lane \u003C 2; lane\u002B\u002B)\n        {\n            float2 key = float2(wrapped \u002B lane * 33.0, seed);\n            float variation = PeakParticleHash(key \u002B float2(0.73, 3.47));\n            float visibility = opacity * life * smoothstep(0.0, 0.18, variation \u002B amount - 0.42 - lane * 0.24);\n            float reach = lerp(0.13, 0.39, variation) * lerp(0.75, 1.0, strength);\n            float pointRadius = originRadius \u002B lerp(0.065, 0.176, PeakParticleHash(key \u002B 2.17)) \u002B reach * expansion;\n            float direction = cell \u002B lerp(0.08, 0.92, PeakParticleHash(key \u002B 7.26));\n            direction \u002B= (variation - 0.5) * 0.23 * expansion;\n            float side = (angle - direction) * radius * radiansPerSector;\n            float delta = radius - pointRadius;\n            float trail = lerp(0.012, 0.046, variation) * lerp(1.0, 0.48, expansion);\n            float width = lerp(0.0007, 0.0021, variation);\n            float distance = length(float2(side, delta - clamp(delta, -trail, 0.0)));\n\n            [branch] if (visibility \u003E 0.001 \u0026\u0026 distance \u003C 0.018)\n            {\n                float core = 1.0 - smoothstep(width - pixel * 0.65, width \u002B pixel * 0.65, distance);\n                float head = 1.0 - smoothstep(width, width * 3.0 \u002B pixel, length(float2(side, delta)));\n                float bloom = (1.0 - smoothstep(width, 0.018, distance)) * 0.23;\n                float taper = smoothstep(-trail, -trail * 0.13, delta);\n                float alpha = saturate(visibility * (bloom \u002B max(core * (0.26 \u002B 0.65 * taper), head)));\n                float hue = PeakParticleHash(key \u002B 13.61);\n                float3 tint = hue \u003C 0.48 ? float3(0.26, 0.83, 1.0) : float3(1.0, 0.17, 0.55);\n                float3 color = lerp(tint, float3(1.0, 0.97, 1.0), head * 0.81);\n                result = float4(color * alpha, alpha) \u002B result * (1.0 - alpha);\n            }\n        }\n    }\n    return result;\n}\n\nfloat4 PeakParticles(float2 plane, float originRadius, float seconds, float peak, float amount, float seed)\n{\n    // A preset can also run with only the stock per-frame audio uniforms.\n    float clock = seconds * 3.7;\n    float phase = frac(clock);\n    return PeakParticleBurst(plane, originRadius, 0.025 \u002B phase * 0.43, peak, amount,\n        seed \u002B floor(clock) * 0.173);\n}\r\nTexture2D SpectrumData : register(t1);\nTexture2D SmokeData : register(t2);\nTexture2D ForegroundData : register(t3);\nfloat SpectrumAvailable;\nfloat SpectrumOpacity;\nfloat SmokeAvailable;\nfloat ForegroundAvailable;\nfloat PeakAvailable;\nfloat PeakAge;\nfloat PeakStrength;\nfloat PeakSerial;\n\nfloat NlpHash(float2 cell)\n{\n    float3 p = frac(float3(cell.xyx) * 0.1031);\n    p \u002B= dot(p, p.yzx \u002B 33.33);\n    return frac((p.x \u002B p.y) * p.z);\n}\n\nfloat4 NlpOver(float4 background, float3 color, float alpha)\n{\n    alpha = saturate(alpha);\n    return float4(color * alpha, alpha) \u002B background * (1.0 - alpha);\n}\n\nfloat NlpInk(float4 source)\n{\n    float darkest = min(source.r, min(source.g, source.b));\n    float brightest = max(source.r, max(source.g, source.b));\n    return smoothstep(0.54, 0.81, darkest) *\n        (1.0 - smoothstep(0.105, 0.19, brightest - darkest)) * source.a;\n}\n\nfloat4 NlpBurst(float clock, float hit)\n{\n    float2 key = float2(floor(clock), floor(Macro14));\n    float phase = frac(clock);\n    float signX = NlpHash(key \u002B float2(0.17, 1.93)) \u003C 0.5 ? -1.0 : 1.0;\n    float side = lerp(-0.36, 0.36, NlpHash(key \u002B float2(11.3, 4.7)));\n    float weight = lerp(0.72, 1.0, NlpHash(key \u002B float2(5.9, 9.8)));\n    // A fast hit and short opposite overshoot. Each seed change happens at rest.\n    float snap = smoothstep(0.0, 0.10, phase) * (1.0 - smoothstep(0.13, 0.53, phase));\n    float recoil = smoothstep(0.25, 0.47, phase) * (1.0 - smoothstep(0.48, 0.83, phase));\n    float move = (snap - 0.42 * recoil) * hit * weight;\n    float zoom = move * lerp(0.16, 0.31, NlpHash(key \u002B float2(4.19, 8.4))) * saturate(Macro10);\n    float2 anchor = float2(signX * 0.23, side * 0.50);\n    float2 offset = move * float2(signX * 0.17, side * 0.21) * saturate(Macro09) \u002B anchor * zoom;\n    float flash = (snap - 0.46 * recoil) * hit * lerp(-0.42, 1.0, NlpHash(key \u002B float2(5.13, 2.9)));\n    return float4(offset, zoom, flash);\n}\n\nfloat2 NlpPose(float2 plane, float4 burst)\n{\n    return (plane - burst.xy) / (1.0 \u002B burst.z);\n}\n\nfloat NlpChroma(float4 pixel)\n{\n    return max(pixel.r, max(pixel.g, pixel.b)) - min(pixel.r, min(pixel.g, pixel.b));\n}\n\nfloat NlpSpectrum(int band)\n{\n    band = (band \u002B 96) % 96;\n    [branch] if (SpectrumAvailable \u003E 0.5)\n    {\n        float magnitude = SpectrumData.Load(int3(band, 0, 0)).r;\n        float decibels = 20.0 * log10(max(0.00001, magnitude * Macro16));\n        return saturate((decibels \u002B 58.0) / 56.0);\n    }\n\n    // 0.15 already draws these same 96 FFT bands. Their premultiplied\n    // chroma encodes level near the .57 baseline, including in the reflection.\n    float step = 0.86 / 96.0;\n    float x = 0.07 \u002B (float)band * step \u002B max(TexelSize.x, step * 0.54) * 0.5;\n    float top = NlpChroma(SourceTexture.SampleLevel(SourceSampler, float2(x, 0.57 - TexelSize.y * 1.35), 0));\n    float mirror = NlpChroma(SourceTexture.SampleLevel(SourceSampler, float2(x, 0.57 \u002B TexelSize.y * 4.0), 0));\n    float level = saturate((max(top, mirror / 0.27) / 0.65 - 0.25) / 0.75);\n    return saturate(level * pow(max(0.0, Macro16) / 2.9, 0.48));\n}\n\nfloat4 NlpRing(float2 plane, float punch, float hueClock)\n{\n    float radius = clamp(Macro15, 0.17, 0.32);\n    float r = length(plane);\n    if (r \u003E radius \u002B 0.27)\n        return float4(0, 0, 0, 0);\n\n    float aa = max(TexelSize.x, TexelSize.y) * 1.18;\n    float3 violet = float3(0.18, 0.025, 0.72);\n    float3 magenta = float3(0.93, 0.035, 0.59);\n    float3 cyan = float3(0.065, 0.77, 1.0);\n    float3 bodyTint = lerp(violet, magenta, 0.50 \u002B 0.44 * sin(hueClock \u002B plane.x * 4.4 - plane.y * 3.2));\n    float porcelain = smoothstep(-0.23, 0.20, -plane.x - plane.y);\n    float3 diskColor = bodyTint * (0.42 \u002B 0.30 * porcelain \u002B 0.17 * punch);\n    if (r \u003C radius - 0.040)\n        return float4(diskColor * 0.97, 0.97);\n\n    float turn = frac(atan2(plane.y, plane.x) * 0.1591549431 \u002B 0.25);\n    float slot = turn * 96.0 - 0.5;\n    int lo = (int)floor(slot);\n    float power = lerp(NlpSpectrum(lo), NlpSpectrum(lo \u002B 1), smoothstep(0.0, 1.0, frac(slot)));\n    float breathingRadius = radius \u002B 0.009 * punch;\n    float peak = saturate(Macro04) * (0.153 * power \u002B 0.074 * power * power);\n    float edge = breathingRadius \u002B peak;\n    float distance = r - edge;\n    float fill = 1.0 - smoothstep(-aa * 1.2, aa * 1.2, distance);\n    float reach = saturate((r - breathingRadius) / max(0.022, peak));\n    float tintPhase = turn * 6.2831853 \u002B hueClock * 0.92;\n    float3 edgeColor = lerp(float3(0.88, 0.19, 0.67), cyan, 0.50 \u002B 0.45 * sin(tintPhase));\n    float filament = smoothstep(0.06, 0.30, abs(frac(turn * 96.0) - 0.5));\n    float3 fillColor = lerp(diskColor, lerp(edgeColor * 0.65, edgeColor, reach),\n        smoothstep(breathingRadius - 0.035, edge \u002B 0.01, r) * (0.68 \u002B 0.25 * power));\n    fillColor *= 1.0 - filament * 0.20 * reach * power;\n\n    float glowAmount = saturate(Macro05);\n    float halo = exp2(-abs(distance) * 75.0) * glowAmount;\n    float outer = exp2(-abs(distance - 0.010) * 128.0) * glowAmount;\n    float rim = 1.0 - smoothstep(0.0034 - aa, 0.0034 \u002B aa, abs(distance));\n    float secondary = (1.0 - smoothstep(0.0017, 0.0045 \u002B aa, abs(r - breathingRadius \u002B 0.008)))\n        * smoothstep(0.015, 0.11, peak);\n    float4 ring = NlpOver(0.0, edgeColor, halo * (0.31 \u002B power * 0.27) \u002B outer * 0.14);\n    ring = NlpOver(ring, fillColor, fill * 0.97);\n    ring = NlpOver(ring, edgeColor, secondary * 0.29 * glowAmount);\n    return NlpOver(ring, lerp(edgeColor, float3(1.0, 0.96, 1.0), 0.72), rim * 0.97);\n}\n\nfloat4 NlpForeground(float2 plane, float2 pixelPlane, float punch, float hueClock, float opacity)\n{\n    float4 ring = NlpRing(plane, punch, hueClock) * opacity;\n    float2 uv = 0.5 \u002B plane * pixelPlane;\n    if (any(uv \u003C 0.0) || any(uv \u003E 1.0))\n        return ring;\n    float4 title;\n    [branch] if (ForegroundAvailable \u003E 0.5)\n        title = ForegroundData.SampleLevel(SourceSampler, uv, 0);\n    else\n    {\n        float4 source = SampleSource(uv);\n        float ink = NlpInk(source);\n        title = float4(source.rgb * ink, ink);\n    }\n    return title \u002B ring * (1.0 - title.a);\n}\n\nfloat4 Visualize(float2 uv)\n{\n    float2 plane = AspectUV(uv, TexelSize);\n    float2 pixelPlane = TexelSize / max(TexelSize.x, TexelSize.y);\n    float threshold = lerp(0.060, 0.220, saturate(Macro06));\n    float strength = AudioLevel * 1.25 \u002B AudioLow * 0.065 \u002B AudioBeat * 0.105;\n    float punch = smoothstep(threshold, threshold \u002B 0.120, strength);\n    float hit = smoothstep(0.065, 0.31, AudioBeat) * saturate(Macro07);\n    float speed = clamp(Macro08, 1.0, 24.0);\n    float burstClock = Time * speed;\n    float4 burst = NlpBurst(burstClock, hit);\n    float2 movingPlane = NlpPose(plane, burst);\n\n    // Simulation data stays in viewport coordinates and never enters the shutter.\n    float smoke = 0.0;\n    [branch] if (SmokeAvailable \u003E 0.5 \u0026\u0026 Macro02 \u003E 0.002)\n        smoke = 1.0 - exp2(-2.9 * SmokeData.SampleLevel(SourceSampler, uv, 0).r * saturate(Macro02));\n    float vignette = 1.0 - smoothstep(0.22, 1.07, length(plane * float2(0.74, 1.0)));\n    float3 smokeColor = lerp(float3(0.145, 0.125, 0.24), float3(0.11, 0.24, 0.31),\n        smoothstep(-0.49, 0.48, plane.x));\n    float3 backdrop = float3(0.004, 0.003, 0.010) \u002B smokeColor * smoke * vignette;\n    float backgroundAlpha = saturate(Macro03);\n    float4 layer = float4(backdrop * backgroundAlpha, backgroundAlpha);\n\n    float radius = clamp(Macro15, 0.17, 0.32);\n    float4 particles = PeakAvailable \u003E 0.5\n        ? PeakParticleBurst(plane, radius, PeakAge, PeakStrength, Macro01, Macro14 \u002B PeakSerial)\n        : PeakParticles(plane, radius, Time, smoothstep(0.14, 0.40, AudioBeat), Macro01, Macro14);\n    float opacity = SpectrumOpacity;\n    [branch] if (SpectrumAvailable \u003C 0.5)\n    {\n        float legacyPresence = max(NlpSpectrum(0), NlpSpectrum(95));\n        opacity = max(step(0.008, legacyPresence), step(0.045, NlpChroma(SourceTexture.SampleLevel(\n            SourceSampler, float2(0.07242, 0.57 - TexelSize.y * 0.62), 0))));\n    }\n    opacity = saturate(opacity);\n    particles *= opacity;\n    layer = particles \u002B layer * (1.0 - particles.a);\n\n    float hueClock = Time * 0.65 \u002B punch * 0.87;\n    float4 foreground = NlpForeground(movingPlane, pixelPlane, punch, hueClock, opacity);\n    float hasShutter = hit * saturate(Macro11) * max(saturate(Macro09), saturate(Macro10));\n    [branch] if (hasShutter \u003E 0.003)\n    {\n        float4 earlier = NlpBurst(burstClock - speed * 0.044 * saturate(Macro11), hit);\n        float2 previous = NlpPose(plane, earlier);\n        float4 integrated = foreground * 2.0;\n        [unroll] for (int tap = 1; tap \u003C= 3; tap\u002B\u002B)\n            integrated \u002B= NlpForeground(lerp(movingPlane, previous, tap / 3.0), pixelPlane,\n                punch, hueClock, opacity) * (2.0 - tap / 3.0);\n        foreground = integrated / 6.0;\n    }\n\n    float2 split = (burst.xy \u002B float2(0.38 * burst.z, 0.11 * burst.z)) * saturate(Macro12) * 0.51;\n    float chromaLength = length(split);\n    [branch] if (chromaLength \u003E 0.001 \u0026\u0026 length(movingPlane) \u003C radius \u002B 0.30)\n    {\n        float4 lead = NlpForeground(movingPlane \u002B split, pixelPlane, punch, hueClock, opacity);\n        float4 lag = NlpForeground(movingPlane - split, pixelPlane, punch, hueClock, opacity);\n        foreground = NlpOver(foreground, float3(1.0, 0.055, 0.46), max(0.0, lead.a - foreground.a) * 0.70);\n        foreground = NlpOver(foreground, float3(0.05, 0.72, 1.0), max(0.0, lag.a - foreground.a) * 0.70);\n        foreground.rb = lerp(foreground.rb, max(foreground.rb, float2(lead.r, lag.b) * foreground.a), 0.38);\n    }\n\n    float exposure = burst.w * saturate(Macro13);\n    foreground.rgb = min(foreground.a, foreground.rgb * (1.0 \u002B exposure * 0.59) \u002B foreground.a * max(0.0, exposure) * 0.027);\n    layer = foreground \u002B layer * (1.0 - foreground.a);\n    return float4(layer.rgb / max(layer.a, 0.000001), layer.a);\n}",
      "slots": [
        {
          "number": 1,
          "label": "Peak particles",
          "minimum": 0,
          "maximum": 1,
          "defaultValue": 0.92,
          "isEffectLayer": true
        },
        {
          "number": 2,
          "label": "Simulated smoke",
          "minimum": 0,
          "maximum": 1,
          "defaultValue": 0.71,
          "isEffectLayer": true
        },
        {
          "number": 3,
          "label": "Backdrop opacity",
          "minimum": 0,
          "maximum": 1,
          "defaultValue": 1,
          "isEffectLayer": false
        },
        {
          "number": 4,
          "label": "Peak height",
          "minimum": 0,
          "maximum": 1,
          "defaultValue": 0.95,
          "isEffectLayer": false
        },
        {
          "number": 5,
          "label": "Rim bloom",
          "minimum": 0,
          "maximum": 1,
          "defaultValue": 0.84,
          "isEffectLayer": false
        },
        {
          "number": 6,
          "label": "Impact threshold",
          "minimum": 0,
          "maximum": 1,
          "defaultValue": 0.42,
          "isEffectLayer": false
        },
        {
          "number": 7,
          "label": "Impact amount",
          "minimum": 0,
          "maximum": 1,
          "defaultValue": 0.87,
          "isEffectLayer": false
        },
        {
          "number": 8,
          "label": "Burst speed (Hz)",
          "minimum": 3,
          "maximum": 14,
          "defaultValue": 0.3,
          "isEffectLayer": false
        },
        {
          "number": 9,
          "label": "Slide",
          "minimum": 0,
          "maximum": 1,
          "defaultValue": 0.7,
          "isEffectLayer": true
        },
        {
          "number": 10,
          "label": "Zoom",
          "minimum": 0,
          "maximum": 1,
          "defaultValue": 0.63,
          "isEffectLayer": true
        },
        {
          "number": 11,
          "label": "Motion blur",
          "minimum": 0,
          "maximum": 1,
          "defaultValue": 0.69,
          "isEffectLayer": true
        },
        {
          "number": 12,
          "label": "RGB split",
          "minimum": 0,
          "maximum": 1,
          "defaultValue": 0.7,
          "isEffectLayer": true
        },
        {
          "number": 13,
          "label": "Exposure flicker",
          "minimum": 0,
          "maximum": 1,
          "defaultValue": 0.49,
          "isEffectLayer": true
        },
        {
          "number": 14,
          "label": "Burst seed",
          "minimum": 0,
          "maximum": 1000,
          "defaultValue": 0.23,
          "isEffectLayer": false
        },
        {
          "number": 15,
          "label": "Ring radius",
          "minimum": 0.17,
          "maximum": 0.32,
          "defaultValue": 0.46,
          "isEffectLayer": false
        },
        {
          "number": 16,
          "label": "Spectrum gain",
          "minimum": 0.5,
          "maximum": 12,
          "defaultValue": 0.51,
          "isEffectLayer": false
        }
      ]
    },
    "audioKeys": {
      "bass": {
        "lowHz": 30,
        "highHz": 220,
        "mode": "Rms",
        "threshold": 0.01,
        "gain": 2.5,
        "attackSeconds": 0.012,
        "releaseSeconds": 0.11
      },
      "mid": {
        "lowHz": 220,
        "highHz": 2200,
        "mode": "Rms",
        "threshold": 0.01,
        "gain": 2.8,
        "attackSeconds": 0.012,
        "releaseSeconds": 0.11
      },
      "treble": {
        "lowHz": 2200,
        "highHz": 12000,
        "mode": "Rms",
        "threshold": 0.01,
        "gain": 4,
        "attackSeconds": 0.012,
        "releaseSeconds": 0.11
      },
      "beat": {
        "lowHz": 35,
        "highHz": 180,
        "mode": "Onset",
        "threshold": 0.018,
        "gain": 1.7,
        "attackSeconds": 0,
        "releaseSeconds": 0.15
      }
    },
    "layerBlend": "Normal",
    "windowBlend": "Normal",
    "previewQuality": "Full"
  }
}