Interesting code (quite proud how 5.Switch and 6.AudioPulse turned out)

Here is some code i gathered or wrote (i apologize if these are well known, im new to coding in general)

  1. Hold color as long as value is met
    (can be used to make an adjustable audioflicker)
    AlphaL<Red,IsGreaterThan<SwingSpeed<250>,Int<22000>>>

  2. Scale a color around a value
    AlphaL<Red,Scale<SwingSpeed<250>,Int<0>,Int<32768>>>

  3. Mix colors scaled on a value
    Mix<Scale<NoisySoundLevel,Int<0>,Int<32768>>,Red,Green>

  4. Mix between colors scaled on value, adjustable hold time and fade
    Mix<HoldPeakF<SwingSpeed<250>,Int<500>,Int<10000>>,Red,Green>

  5. Switch between colors only when value is met
    ColorSelect<IncrementModuloF<ThresholdPulseF<SwingSpeed<250>, Int<22000>>,Int<2>>,TrInstant,Red,Green>

  6. AudioPulse, adjust int values to filter lower or higher frequencies
    (unlike audioflicker it fades between colors instead of flickering and is way more responsive)
    Mix<Scale<NoisySoundLevel,Int<0>,Int<32768>>,Red,Green>

  7. Concat nesting (allows using one bump for multiple effects)
    TransitionEffectL<TrConcat<TrInstant,AlphaL<Layers<Red,TransitionEffectL<TrConcat<TrInstant,Green,TrFade<100>>,EFFECT_CLASH>>,Bump<Int<16384>>>,TrFade<300>>,EFFECT_CLASH>

  8. Tweaked fett263’s clash and lockup bump to better scale to blade angle (when blade is max 65 degrees up or down, bump is at base, when blade is horizontal bump is at tip)
    Bump<Scale<BladeAngle<4554,28214>,Scale<BladeAngle<0,16000>,Int<10000>,Int<75000>>,Int<10000>>,Int<1000>>

1 Like