35 lines
930 B
Text
35 lines
930 B
Text
# Adapted from "Synth-C - Gap The Mind" (Winamp AVS / visbot.net)
|
|
# Core of the original Superscope preserved:
|
|
# r = i*2pi; d = snd; x = sin(r)*d; y = cos(r)*d
|
|
# d = d*(1 - sin((r-pi/2)*7)*.03); r = r + cos(d*12)*.03
|
|
name: Gap The Mind
|
|
author: synth-c (adapted)
|
|
mode: lines
|
|
blend: additive
|
|
persist: 0.9
|
|
linewidth: 2
|
|
|
|
[init]
|
|
n = 480
|
|
hue = 0
|
|
rot = 0
|
|
avg = 0
|
|
|
|
[frame]
|
|
# rolling average of the audio energy (the original used a getosc ring buffer)
|
|
avg = avg * 0.8 + (bass + vol) * 0.2
|
|
hue = hue + dt * (0.05 + mid * 0.12) + beat * 0.015
|
|
rot = rot + dt * (0.1 + mid_att * 0.9)
|
|
rad = 0.25 + avg * 0.85
|
|
warp = 1 + treb * 0.5
|
|
|
|
[point]
|
|
r = i * 6.28318
|
|
d = rad + abs(v) * 0.45
|
|
d = d * (1 - sin((r - 1.5708) * 7) * 0.03 * warp)
|
|
r = r + cos(d * 12) * 0.03 * warp + rot
|
|
x = sin(r) * d / aspect
|
|
y = cos(r) * d
|
|
red = 0.5 + 0.5 * sin(hue * 6.28318)
|
|
green = 0.5 + 0.5 * sin(hue * 6.28318 + 2.094)
|
|
blue = 0.5 + 0.5 * sin(hue * 6.28318 + 4.188)
|