Advertisement
A_Rogue_Child

Feb 2025 Config: Downsized to just 3 Presets plus NoBlade & BladePLug

Feb 23rd, 2025 (edited)
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.16 KB | None | 0 0
  1. #ifdef CONFIG_TOP
  2. #include "proffieboard_v3_config.h"
  3. #define NUM_BLADES 1
  4. #define NUM_BUTTONS 2
  5. const unsigned int maxLedsPerStrip = 144;
  6. #define EXTRA_COLOR_BUFFER_SPACE 60
  7. #define VOLUME 2300
  8. #define CLASH_THRESHOLD_G 4
  9. #define AUDIO_CLASH_SUPPRESSION_LEVEL 5
  10. #define ENABLE_AUDIO
  11. #define ENABLE_MOTION
  12. #define ENABLE_WS2811
  13. #define ENABLE_SD
  14. #define KILL_OLD_PLAYERS
  15. #define MOTION_TIMEOUT 60 * 5 * 1000
  16. #define IDLE_OFF_TIME 60 * 5 * 1000
  17. #define DISABLE_BASIC_PARSER_STYLES
  18. #define DISABLE_DIAGNOSTIC_COMMANDS
  19. #define SHARED_POWER_PINS
  20. #define ENABLE_ALL_EDIT_OPTIONS
  21. #define SAVE_STATE
  22. #define NO_REPEAT_RANDOM
  23. #define COLOR_CHANGE_DIRECT
  24. #define BLADE_DETECT_PIN 6
  25. #define FETT263_EDIT_SETTINGS_MENU
  26. #define FETT263_SPECIAL_ABILITIES
  27. #define FETT263_SAY_BATTERY_PERCENT
  28. #define FETT263_DISABLE_CHANGE_FONT
  29. #define FETT263_DISABLE_COPY_PRESET
  30. #define FETT263_BATTLE_MODE_ALWAYS_ON
  31. #define FETT263_LOCKUP_DELAY 200
  32. #define FETT263_BM_CLASH_DETECT 6
  33. #define FETT263_SWING_ON_SPEED 250
  34. #define FETT263_SWING_ON
  35. #define FETT263_TWIST_OFF
  36. #endif
  37.  
  38.  
  39. #ifdef CONFIG_PROP
  40. #include "../props/saber_fett263_buttons.h"
  41. #endif
  42.  
  43.  
  44. #ifdef CONFIG_PRESETS
  45.  
  46. Preset no_blade[] = {
  47.  
  48. { "No_Blade;common", "tracks/none.wav",
  49. //ChargingStylePtr<Black>(), //Use this if you do not want the optional low-hum for No_Blade.
  50. StylePtr<Black>(), //Use this if you want the optional low-hum for No_Blade.
  51.  
  52. "no blade" }
  53.  
  54. };
  55.  
  56. //---------------------------------------------------------------
  57.  
  58. Preset blade_in[] = {
  59.  
  60. //Bladeplug Animation Green: Note code has been modded to display a spinning bladeplug effect.
  61. { "BladePlug;common", "tracks/none.wav",
  62. /* copyright Fett263 Holidays (Accent LED / PCB) OS7 Style
  63. https://fett263.com/fett263-proffieOS7-style-library.html#Holidays
  64. OS7.11 v1.017-p
  65. Single Style
  66. Base Style: String Lights (Pulsing 1 Color)
  67. Off Behavior: Off [Color: OffColorArg]
  68. Base Color: BaseColorArg (0)
  69. --Effects Included--
  70. Ignition Effect: Instant [Color: IgnitionColorArg]
  71. Retraction Effect: Instant [Color: RetractionColorArg]
  72. */
  73. StylePtr<
  74. Layers<
  75. StripesX<Int<400>,Int<-900>,Black,Pulsing<Black,RgbArg<BASE_COLOR_ARG,Rgb<0,220,0>>,2>,Black>,
  76. InOutTrL<TrInstant,TrInstant,Black>>>(),
  77.  
  78. "bladeplug"},
  79.  
  80.  
  81. //Customized Green w/ Customized Hum. Cyan plus White Hums WITH the "Hsssp" sound.
  82. { "Survivor2Kellen;common", "tracks/none.wav",
  83. /* copyright Fett263 JediSurvivor (Primary Blade) OS7 Style
  84. https://www.fett263.com/fett263-proffieOS7-style-library.html#JediSurvivor
  85. OS7.14 v2.241p
  86. Single Style
  87. Base Style: Cal Kestis Survivor Green
  88. Base Color: BaseColorArg (0)
  89. --Effects Included--
  90. Ignition Effect: Glitch On [Color: IgnitionColorArg]
  91. Retraction Effect: Glitch Off [Color: RetractionColorArg]
  92. Lockup Effect:
  93. 0: mainLockMulti0Shape - Begin: Full Blade Flash - Style: Intensity AudioFlicker - End: Full Blade Absorb
  94. [Color: LockupColorArg]
  95. Lightning Block Effect:
  96. 0: mainLBMulti0Shape - Begin: Full Blade Flash - Style: Strobing AudioFlicker - End: Full Blade Absorb
  97. [Color: LBColorArg]
  98. Drag Effect:
  99. 0: mainDragMulti0Shape - Begin: Wipe In - Style: AudioFlicker - End: Wipe Out
  100. [Color: DragColorArg]
  101. Melt Effect:
  102. 0: mainMeltMulti0Shape - Begin: Wipe In - Style: Intensity Fire Melt - End: Wipe Out
  103. [Color: StabColorArg]
  104. Blast Effect: Blast Wave (Sound Based) [Color: BlastColorArg]
  105. Clash Effect: Responsive Clash with Wave [Color: ClashColorArg]
  106. */
  107. //StylePtr<Layers<StripesX<Scale<HoldPeakF<Sum<EffectPulseF<EFFECT_IGNITION>,EffectPulseF<EFFECT_ALT_SOUND>>,Int<3000>,Int<3000>>,Int<4000>,Int<1800>>,Scale<HoldPeakF<Sum<EffectPulseF<EFFECT_IGNITION>,EffectPulseF<EFFECT_ALT_SOUND>>,Int<2000>,Int<4000>>,Int<-2800>,Int<-4000>>,Mix<Int<16000>,Black,RgbArg<BASE_COLOR_ARG,Rgb<0,255,0>>>,Mix<Sin<Int<20>,Int<22000>,Int<32768>>,Black,RgbArg<BASE_COLOR_ARG,Rgb<0,255,0>>>,Mix<Int<8000>,Black,RgbArg<BASE_COLOR_ARG,Rgb<0,255,0>>>>,TransitionEffectL<TrWaveX<RgbArg<BLAST_COLOR_ARG,Rgb<255,255,255>>,Scale<WavLen<>,Int<100>,Int<400>>,Int<100>,Scale<WavLen<>,Int<100>,Int<400>>,Scale<EffectPosition<EFFECT_BLAST>,Int<28000>,Int<8000>>>,EFFECT_BLAST>,TransitionEffectL<TrWaveX<RgbArg<CLASH_COLOR_ARG,Rgb<255,255,255>>,Scale<ClashImpactF<>,Int<100>,Int<400>>,Int<100>,Scale<ClashImpactF<>,Int<100>,Int<400>>,Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>>,EFFECT_CLASH>,LockupTrL<TransitionEffect<AlphaL<AlphaMixL<Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<22000>>>,AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<12000>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>>>,BrownNoiseFlicker<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<12000>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>>,300>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<22000>>>>,AlphaL<AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<20000>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,TrExtend<5000,TrInstant>,TrFade<5000>,EFFECT_LOCKUP_BEGIN>,TrConcat<TrJoin<TrDelay<50>,TrInstant>,Mix<IsLessThan<ClashImpactF<>,Int<26000>>,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,AlphaL<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<ClashImpactF<>,Int<20000>,Int<60000>>>>>,TrFade<300>>,TrConcat<TrInstant,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,TrFade<400>>,SaberBase::LOCKUP_NORMAL,Int<1>>,ResponsiveLightningBlockL<Strobe<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,AudioFlicker<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Blue>,50,1>,TrConcat<TrExtend<200,TrInstant>,RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,TrFade<200>>,TrConcat<TrInstant,RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,TrFade<400>>,Int<1>>,LockupTrL<AlphaL<AudioFlicker<RgbArg<DRAG_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<8164>,Black,RgbArg<DRAG_COLOR_ARG,Rgb<255,255,255>>>>,SmoothStep<Scale<TwistAngle<>,IntArg<DRAG_SIZE_ARG,28000>,Int<30000>>,Int<3000>>>,TrWipeIn<200>,TrWipe<200>,SaberBase::LOCKUP_DRAG,Int<1>>,LockupTrL<AlphaL<Layers<Stripes<2000,4000,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>,Mix<Sin<Int<50>>,Black,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>>,Mix<Int<4096>,Black,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>>>,TransitionPulseL<TrConcat<TrExtend<4000,TrInstant>,Stripes<2000,3000,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>,Mix<Sin<Int<30>>,Black,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>>,Mix<Int<8192>,Black,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>>>,TrFade<4000>>,LockupPulseF<SaberBase::LOCKUP_MELT>>>,SmoothStep<Scale<TwistAngle<>,IntArg<MELT_SIZE_ARG,28000>,Int<30000>>,Int<3000>>>,TrWipeIn<200>,TrWipe<200>,SaberBase::LOCKUP_MELT,Int<1>>,InOutTrL<TrConcat<TrJoin<TrDelayX<Mult<IgnitionTime<300>,Int<16384>>>,TrWipeX<Mult<IgnitionTime<300>,Int<16384>>>>,Mix<SmoothStep<NoisySoundLevel,Int<-1>>,Black,RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>>,TrWipeX<Mult<IgnitionTime<300>,Int<16384>>>>,TrConcat<TrJoin<TrDelayX<Mult<RetractionTime<0>,Int<16384>>>,TrWipeInX<Mult<RetractionTime<0>,Int<16384>>>>,Mix<SmoothStep<NoisySoundLevel,Int<-1>>,Black,RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>>,TrWipeInX<Mult<RetractionTime<0>,Int<16384>>>>,Black>>>(),
  108. StylePtr<
  109. Layers<
  110. StripesX<Scale<HoldPeakF<Sum<EffectPulseF<EFFECT_IGNITION>,EffectPulseF<EFFECT_ALT_SOUND>>,Int<3000>,Int<3000>>,Int<4000>,Int<1800>>,Scale<HoldPeakF<Sum<EffectPulseF<EFFECT_IGNITION>,EffectPulseF<EFFECT_ALT_SOUND>>,Int<2000>,Int<4000>>,Int<-2800>,Int<-4000>>,Mix<Int<16000>,Black,RgbArg<BASE_COLOR_ARG,Green>>,Mix<Sin<Int<20>,Int<22000>,Int<32768>>,Black,RgbArg<BASE_COLOR_ARG,Green>>,Mix<Int<8000>,Black,RgbArg<BASE_COLOR_ARG,Green>>>,
  111. AudioFlickerL<RgbArg<BASE_COLOR_ARG,Rgb<0,200,0>>>,
  112. AudioFlickerL<AlphaL<RgbArg<EMITTER_COLOR_ARG,Rgb<50,100,100>>,SmoothStep<IntArg<EMITTER_SIZE_ARG,6000>,Int<-9000>>>>,
  113. TransitionEffectL<TrConcat<TrFade<300>,Mix<SmoothStep<NoisySoundLevel,Int<-1>>,Rgb<50,255,100>,RgbArg<SWING_COLOR_ARG,Rgb<200,255,255>>>,TrDelayX<Percentage<WavLen<>,90>>,TrFade<300>>,EFFECT_FORCE>,
  114. TransitionEffectL<TrWaveX<RgbArg<BLAST_COLOR_ARG,White>,Scale<WavLen<>,Int<100>,Int<400>>,Int<100>,Scale<WavLen<>,Int<100>,Int<400>>,Scale<BladeAngle<>,Int<28000>,Int<8000>>>,EFFECT_BLAST>,
  115. TransitionEffectL<TrWaveX<RgbArg<CLASH_COLOR_ARG,White>,Scale<ClashImpactF<>,Int<100>,Int<400>>,Int<100>,Scale<ClashImpactF<>,Int<100>,Int<400>>,Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>>,EFFECT_CLASH>,
  116. LockupTrL<TransitionEffect<AlphaL<AlphaMixL<Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<22000>>>,AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,White>,Mix<Int<12000>,Black,RgbArg<LOCKUP_COLOR_ARG,White>>>,BrownNoiseFlicker<RgbArg<LOCKUP_COLOR_ARG,White>,Mix<Int<12000>,Black,RgbArg<LOCKUP_COLOR_ARG,White>>,300>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<22000>>>>,AlphaL<AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,White>,Mix<Int<20000>,Black,RgbArg<LOCKUP_COLOR_ARG,White>>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,TrExtend<5000,TrInstant>,TrFade<5000>,EFFECT_LOCKUP_BEGIN>,TrConcat<TrInstant,RgbArg<LOCKUP_COLOR_ARG,White>,TrFade<300>>,TrConcat<TrInstant,RgbArg<LOCKUP_COLOR_ARG,White>,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,
  117. ResponsiveLightningBlockL<Strobe<RgbArg<LB_COLOR_ARG,White>,AudioFlicker<RgbArg<LB_COLOR_ARG,White>,Blue>,50,1>,TrConcat<TrExtend<200,TrInstant>,RgbArg<LB_COLOR_ARG,White>,TrFade<200>>,TrConcat<TrInstant,RgbArg<LB_COLOR_ARG,White>,TrFade<400>>>,
  118. LockupTrL<AlphaL<AudioFlicker<RgbArg<DRAG_COLOR_ARG,White>,Mix<Int<8164>,Black,RgbArg<DRAG_COLOR_ARG,White>>>,SmoothStep<Scale<TwistAngle<>,IntArg<DRAG_SIZE_ARG,28000>,Int<30000>>,Int<3000>>>,TrWipeIn<200>,TrWipe<200>,SaberBase::LOCKUP_DRAG>,
  119. TransitionEffectL<TrSparkX<AlphaL<White,SmoothStep<Int<25000>,Int<5000>>>,Int<100>,Int<1000>,Int<32768>>,EFFECT_DRAG_BEGIN>,
  120. LockupTrL<AlphaL<Layers<
  121. Stripes<2000,4000,RgbArg<STAB_COLOR_ARG,DarkOrange>,Mix<Sin<Int<50>>,Black,RgbArg<STAB_COLOR_ARG,DarkOrange>>,Mix<Int<4096>,Black,RgbArg<STAB_COLOR_ARG,DarkOrange>>>,
  122. TransitionPulseL<TrConcat<TrExtend<500,TrInstant>,Stripes<2000,3000,RgbArg<STAB_COLOR_ARG,DarkOrange>,Mix<Sin<Int<30>>,Black,RgbArg<STAB_COLOR_ARG,DarkOrange>>,Mix<Int<8192>,Black,RgbArg<STAB_COLOR_ARG,DarkOrange>>>,TrFade<1000>>,LockupPulseF<SaberBase::LOCKUP_MELT>>>,SmoothStep<Scale<TwistAngle<>,IntArg<MELT_SIZE_ARG,28000>,Int<30000>>,Int<3000>>>,TrJoin<TrDelay<175>,TrSparkX<AlphaL<Rgb<240,30,0>,SmoothStep<Int<25000>,Int<5000>>>,Int<100>,Int<1000>,Int<32768>>>,TrWipe<200>,SaberBase::LOCKUP_MELT>,
  123. InOutTrL<TrConcat<TrJoin<TrDelayX<Mult<IgnitionTime<300>,Int<16384>>>,TrWipeX<Mult<IgnitionTime<300>,Int<16384>>>>,Mix<SmoothStep<NoisySoundLevel,Int<-1>>,Black,RgbArg<IGNITION_COLOR_ARG,Rgb<0,255,0>>>,TrWipeX<Mult<IgnitionTime<300>,Int<16384>>>>,TrConcat<TrJoin<TrDelayX<Mult<RetractionTime<0>,Int<16384>>>,TrWipeInX<Mult<RetractionTime<0>,Int<16384>>>>,Mix<SmoothStep<NoisySoundLevel,Int<-1>>,Black,RgbArg<RETRACTION_COLOR_ARG,Rgb<0,255,0>>>,TrWipeInX<Mult<RetractionTime<0>,Int<16384>>>>,Black>>>(),
  124.  
  125. "master kellen sha'dar"},
  126.  
  127.  
  128. //Survivor2Party_Alt
  129. { "Survivor2Party_AltCustom;common", "tracks/none.wav",
  130. /* copyright Fett263 JediSurvivor (Primary Blade) OS7 Style
  131. https://www.fett263.com/fett263-proffieOS7-style-library.html#JediSurvivor
  132. OS7.14 v2.242p
  133. Single Style
  134. Base Style: Cal Kestis Survivor Blue
  135. Base Color: Kyber Select - BaseColorArg - AltColorArg - AltColor2Arg - Rgb<80,50,210> - Rgb<115,15,240> - Rgb<255,255,0> - Rgb<255,68,0> - Rgb<255,0,255> - Rgb<255,255,255> - Rgb<255,0,0> (0)
  136. Kyber Select Interactive Control: While Blade is On, use selected Special Ability to change color (Phase). Requires Alt Font.
  137. NOTE:This style includes Control Layer. Only one Control Layer should be used per preset.
  138. *This style REQUIRES Alt Fonts alt000/ to alt009/ to be set up. Uses altchng.wav on change.
  139. See https://pod.hubbe.net/sound/alt_sounds.html for more information.
  140. --Effects Included--
  141. Ignition Effect: Glitch On [Color: IgnitionColorArg]
  142. Retraction Effect: Glitch Off [Color: RetractionColorArg]
  143. Lockup Effect:
  144. 0: mainLockMulti0Shape - Begin: Full Blade Flash - Style: Intensity AudioFlicker - End: Full Blade Absorb
  145. [Color: LockupColorArg]
  146. Lightning Block Effect:
  147. 0: mainLBMulti0Shape - Begin: Full Blade Flash - Style: Strobing AudioFlicker - End: Full Blade Absorb
  148. [Color: LBColorArg]
  149. Drag Effect:
  150. 0: mainDragMulti0Shape - Begin: Wipe In - Style: AudioFlicker - End: Wipe Out
  151. [Color: DragColorArg]
  152. Melt Effect:
  153. 0: mainMeltMulti0Shape - Begin: Wipe In - Style: Intensity Fire Melt - End: Wipe Out
  154. [Color: StabColorArg]
  155. Blast Effect: Blast Wave (Sound Based) [Color: BlastColorArg]
  156. Clash Effect: Responsive Clash with Wave [Color: ClashColorArg]
  157. Special Ability 1: Next
  158. Special Ability 2: Previous Phase
  159. Special Ability 3: Select Random Phase
  160. Special Ability 4: Toggle Swing Change (Random / Party Mode) Uses tr00.wav or tr/000/000.wav on toggle (mechanical or menu sound)
  161. Hold PWR + Turn Right (parallel or up) = Special Ability 1 (USER1)
  162. Hold PWR + Turn Left (parallel or up) = Special Ability 2 (USER2)
  163. Hold PWR + Turn Right (pointing down) = Special Ability 3 (USER3)
  164. Hold PWR + Turn Left (pointing down) = Special Ability 4 (USER4)
  165. */
  166. StylePtr<
  167. Layers<
  168. StripesX<Scale<HoldPeakF<Sum<EffectPulseF<EFFECT_IGNITION>,EffectPulseF<EFFECT_ALT_SOUND>>,Int<3000>,Int<3000>>,Int<8000>,Int<3000>>,Scale<HoldPeakF<Sum<EffectPulseF<EFFECT_IGNITION>,EffectPulseF<EFFECT_ALT_SOUND>>,Int<3000>,Int<3000>>,Int<-2600>,Int<-3600>>,ColorSelect<AltF,TrInstant,RgbArg<BASE_COLOR_ARG,Blue>,RgbArg<ALT_COLOR_ARG,Cyan>,RgbArg<ALT_COLOR2_ARG,Green>,Rgb<80,50,210>,Rgb<115,15,240>,Yellow,DarkOrange,Magenta,Rgb<100,100,150>>,Mix<Int<12000>,Black,ColorSelect<AltF,TrInstant,RgbArg<BASE_COLOR_ARG,Blue>,RgbArg<ALT_COLOR_ARG,Cyan>,RgbArg<ALT_COLOR2_ARG,Green>,Rgb<80,50,210>,Rgb<115,15,240>,Yellow,DarkOrange,Magenta,Rgb<100,100,150>>>,Pulsing<ColorSelect<AltF,TrInstant,RgbArg<BASE_COLOR_ARG,Blue>,RgbArg<ALT_COLOR_ARG,Cyan>,RgbArg<ALT_COLOR2_ARG,Green>,Rgb<80,50,210>,Rgb<115,15,240>,Yellow,DarkOrange,Magenta,Rgb<100,100,150>>,Mix<Int<8000>,Black,ColorSelect<AltF,TrInstant,RgbArg<BASE_COLOR_ARG,Blue>,RgbArg<ALT_COLOR_ARG,Cyan>,RgbArg<ALT_COLOR2_ARG,Green>,Rgb<80,50,210>,Rgb<115,15,240>,Yellow,DarkOrange,Magenta,Rgb<100,100,150>>>,1400>>,
  169. //WIP EFFECT #2: Code edited/forked based off of Fett263's IgnitionEffect "GlitchOn".
  170. TransitionEffectL<TrConcat<TrFade<300>,Mix<SmoothStep<NoisySoundLevel,Int<-1>>,Rgb<130,130,130>,RgbArg<SWING_COLOR_ARG,Rgb<200,200,200>>>,TrDelayX<Percentage<WavLen<>,90>>,TrFade<300>>,EFFECT_FORCE>,
  171. TransitionEffectL<TrDoEffectAlwaysX<TrInstant,EFFECT_ALT_SOUND,ModF<Sum<AltF,Int<1>>,Int<10>>,Int<-1>>,EFFECT_USER1>,
  172. TransitionEffectL<TrDoEffectAlwaysX<TrInstant,EFFECT_ALT_SOUND,ModF<Sum<AltF,Int<-1>>,Int<10>>,Int<-1>>,EFFECT_USER2>,
  173. TransitionEffectL<TrDoEffectAlwaysX<TrInstant,EFFECT_ALT_SOUND,ModF<Sum<AltF,Scale<RandomF,Int<1>,Int<9>>>,Int<10>>,Int<-1>>,EFFECT_USER3>,
  174. TransitionPulseL<TrSelect<IncrementModuloF<EffectPulseF<EFFECT_USER4>,Int<2>>,TrInstant,TrDoEffectX<TrInstant,EFFECT_ALT_SOUND,ModF<Sum<AltF,Scale<RandomF,Int<1>,Int<9>>>,Int<10>>>>,ThresholdPulseF<SwingSpeed<320>,Int<31000>>>,
  175. TransitionEffectL<TrDoEffectX<TrInstant,EFFECT_TRANSITION_SOUND,Int<0>>,EFFECT_USER4>,
  176. TransitionEffectL<TrWaveX<RgbArg<BLAST_COLOR_ARG,White>,Scale<WavLen<>,Int<100>,Int<400>>,Int<100>,Scale<WavLen<>,Int<100>,Int<400>>,Scale<EffectPosition<EFFECT_BLAST>,Int<28000>,Int<8000>>>,EFFECT_BLAST>,
  177. TransitionEffectL<TrWaveX<RgbArg<CLASH_COLOR_ARG,White>,Scale<ClashImpactF<>,Int<100>,Int<400>>,Int<100>,Scale<ClashImpactF<>,Int<100>,Int<400>>,Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>>,EFFECT_CLASH>,
  178. LockupTrL<TransitionEffect<AlphaL<AlphaMixL<Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<22000>>>,AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,White>,Mix<Int<12000>,Black,RgbArg<LOCKUP_COLOR_ARG,White>>>,BrownNoiseFlicker<RgbArg<LOCKUP_COLOR_ARG,White>,Mix<Int<12000>,Black,RgbArg<LOCKUP_COLOR_ARG,White>>,300>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<22000>>>>,AlphaL<AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,White>,Mix<Int<20000>,Black,RgbArg<LOCKUP_COLOR_ARG,White>>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,TrExtend<5000,TrInstant>,TrFade<5000>,EFFECT_LOCKUP_BEGIN>,TrConcat<TrInstant,RgbArg<LOCKUP_COLOR_ARG,White>,TrFade<300>>,TrConcat<TrInstant,RgbArg<LOCKUP_COLOR_ARG,White>,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,
  179. ResponsiveLightningBlockL<Strobe<RgbArg<LB_COLOR_ARG,White>,AudioFlicker<RgbArg<LB_COLOR_ARG,White>,Blue>,50,1>,TrConcat<TrExtend<200,TrInstant>,RgbArg<LB_COLOR_ARG,White>,TrFade<200>>,TrConcat<TrInstant,RgbArg<LB_COLOR_ARG,White>,TrFade<400>>>,
  180. LockupTrL<AlphaL<AudioFlicker<RgbArg<DRAG_COLOR_ARG,White>,Mix<Int<8164>,Black,RgbArg<DRAG_COLOR_ARG,White>>>,SmoothStep<Scale<TwistAngle<>,IntArg<DRAG_SIZE_ARG,28000>,Int<30000>>,Int<3000>>>,TrWipeIn<200>,TrWipe<200>,SaberBase::LOCKUP_DRAG>,
  181. LockupTrL<AlphaL<Layers<
  182. Stripes<2000,4000,RgbArg<STAB_COLOR_ARG,DarkOrange>,Mix<Sin<Int<50>>,Black,RgbArg<STAB_COLOR_ARG,DarkOrange>>,Mix<Int<4096>,Black,RgbArg<STAB_COLOR_ARG,DarkOrange>>>,
  183. TransitionPulseL<TrConcat<TrExtend<4000,TrInstant>,Stripes<2000,3000,RgbArg<STAB_COLOR_ARG,DarkOrange>,Mix<Sin<Int<30>>,Black,RgbArg<STAB_COLOR_ARG,DarkOrange>>,Mix<Int<8192>,Black,RgbArg<STAB_COLOR_ARG,DarkOrange>>>,TrFade<4000>>,LockupPulseF<SaberBase::LOCKUP_MELT>>>,SmoothStep<Scale<TwistAngle<>,IntArg<MELT_SIZE_ARG,28000>,Int<30000>>,Int<3000>>>,TrWipeIn<200>,TrWipe<200>,SaberBase::LOCKUP_MELT>,
  184. InOutTrL<TrConcat<TrJoin<TrDelayX<Mult<IgnitionTime<300>,Int<16384>>>,TrWipeX<Mult<IgnitionTime<300>,Int<16384>>>>,Mix<SmoothStep<NoisySoundLevel,Int<-1>>,Black,RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>>,TrWipeX<Mult<IgnitionTime<300>,Int<16384>>>>,TrConcat<TrJoin<TrDelayX<Mult<RetractionTime<0>,Int<16384>>>,TrWipeInX<Mult<RetractionTime<0>,Int<16384>>>>,Mix<SmoothStep<NoisySoundLevel,Int<-1>>,Black,RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>>,TrWipeInX<Mult<RetractionTime<0>,Int<16384>>>>,Black>>>(),
  185.  
  186. "survivor2 alt"},
  187.  
  188.  
  189. //Darksaber_Rebels
  190. { "Dark_V2;common", "tracks/none.wav",
  191. /* copyright Fett263 DarkSaber (Primary Blade) OS7 Style
  192. https://www.fett263.com/fett263-proffieOS7-style-library.html#DarkSaber
  193. OS7.14 v2.52p
  194. Single Style
  195. Base Style: Clone Wars Darksaber
  196. Base Color: BaseColorArg (0)
  197. --Effects Included--
  198. Ignition Effect: Glitch On [Color: IgnitionColorArg]
  199. Retraction Effect: Glitch Off [Color: RetractionColorArg]
  200. Lockup Effect:
  201. 0: mainLockMulti0Shape - Begin: Full Blade Flash - Style: Intensity AudioFlicker - End: Full Blade Absorb
  202. [Color: LockupColorArg]
  203. Lightning Block Effect:
  204. 0: mainLBMulti0Shape - Begin: Full Blade Flash - Style: Strobing AudioFlicker - End: Full Blade Absorb
  205. [Color: LBColorArg]
  206. Drag Effect:
  207. 0: mainDragMulti0Shape - Begin: Wipe In - Style: Intensity Sparking Drag - End: Wipe Out
  208. [Color: DragColorArg]
  209. Melt Effect:
  210. 0: mainMeltMulti0Shape - Begin: Wipe In - Style: Intensity Melt - End: Wipe Out
  211. [Color: StabColorArg]
  212. Blast Effect (Randomly Selected): Blast Wave (Sound Based), Responsive Blast Wave (Sound Based) [Color: BlastColorArg]
  213. Clash Effect: Responsive Clash with Wave [Color: ClashColorArg]
  214. */
  215. StylePtr<
  216. Layers<
  217. Layers<
  218. Mix<SwingSpeed<400>,RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>,Mix<Int<6425>,RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>,White>>,
  219. BrownNoiseFlickerL<Stripes<5000,-300,Mix<Int<7710>,Black,RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>>,Mix<Int<25700>,Black,RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>>,Mix<Int<1285>,Black,RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>>,Mix<Int<16384>,Black,RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>>>,Int<38400>>,
  220. AudioFlickerL<Mix<Int<6425>,RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>,White>>>,
  221. TransitionEffectL<TrRandom<TrWaveX<RgbArg<BLAST_COLOR_ARG,White>,Scale<WavLen<>,Int<100>,Int<400>>,Int<100>,Scale<WavLen<>,Int<100>,Int<400>>,Scale<EffectPosition<EFFECT_BLAST>,Int<28000>,Int<8000>>>,TrWaveX<RgbArg<BLAST_COLOR_ARG,White>,Scale<WavLen<>,Int<100>,Int<400>>,Int<100>,Scale<WavLen<>,Int<100>,Int<400>>,Scale<BladeAngle<>,Int<28000>,Int<8000>>>>,EFFECT_BLAST>,
  222. TransitionEffectL<TrWaveX<RgbArg<CLASH_COLOR_ARG,Orange>,Scale<ClashImpactF<>,Int<100>,Int<400>>,Int<100>,Scale<ClashImpactF<>,Int<100>,Int<400>>,Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>>,EFFECT_CLASH>,
  223. LockupTrL<TransitionEffect<AlphaL<AlphaMixL<Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<22000>>>,AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,White>,Mix<Int<12000>,Black,RgbArg<LOCKUP_COLOR_ARG,White>>>,BrownNoiseFlicker<RgbArg<LOCKUP_COLOR_ARG,White>,Mix<Int<12000>,Black,RgbArg<LOCKUP_COLOR_ARG,White>>,300>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<22000>>>>,AlphaL<AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,White>,Mix<Int<20000>,Black,RgbArg<LOCKUP_COLOR_ARG,White>>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,TrExtend<5000,TrInstant>,TrFade<5000>,EFFECT_LOCKUP_BEGIN>,TrConcat<TrInstant,RgbArg<LOCKUP_COLOR_ARG,White>,TrFade<300>>,TrConcat<TrInstant,RgbArg<LOCKUP_COLOR_ARG,White>,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,
  224. ResponsiveLightningBlockL<Strobe<RgbArg<LB_COLOR_ARG,White>,AudioFlicker<RgbArg<LB_COLOR_ARG,White>,Blue>,50,1>,TrConcat<TrExtend<200,TrInstant>,RgbArg<LB_COLOR_ARG,White>,TrFade<200>>,TrConcat<TrInstant,RgbArg<LB_COLOR_ARG,White>,TrFade<400>>>,
  225. LockupTrL<AlphaL<TransitionEffect<RandomPerLEDFlickerL<RgbArg<DRAG_COLOR_ARG,DeepSkyBlue>>,BrownNoiseFlickerL<RgbArg<DRAG_COLOR_ARG,DeepSkyBlue>,Int<300>>,TrExtend<4000,TrInstant>,TrFade<4000>,EFFECT_DRAG_BEGIN>,SmoothStep<Scale<TwistAngle<>,IntArg<DRAG_SIZE_ARG,28000>,Int<30000>>,Int<3000>>>,TrWipeIn<200>,TrWipe<200>,SaberBase::LOCKUP_DRAG>,
  226. LockupTrL<AlphaL<Stripes<2000,4000,Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,DarkOrange>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,DarkOrange>>>,Mix<Sin<Int<50>>,Black,Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,DarkOrange>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,DarkOrange>>>>,Mix<Int<4096>,Black,Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,DarkOrange>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,DarkOrange>>>>>,SmoothStep<Scale<TwistAngle<>,IntArg<MELT_SIZE_ARG,28000>,Int<30000>>,Int<3000>>>,TrConcat<TrExtend<4000,TrWipeIn<200>>,AlphaL<HumpFlicker<Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,DarkOrange>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,DarkOrange>>>,RotateColorsX<Int<3000>,Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,DarkOrange>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,DarkOrange>>>>,100>,SmoothStep<Scale<TwistAngle<>,IntArg<MELT_SIZE_ARG,28000>,Int<30000>>,Int<3000>>>,TrFade<4000>>,TrWipe<200>,SaberBase::LOCKUP_MELT>,
  227. InOutTrL<TrConcat<TrJoin<TrDelayX<Mult<IgnitionTime<300>,Int<16384>>>,TrWipeX<Mult<IgnitionTime<300>,Int<16384>>>>,Mix<SmoothStep<NoisySoundLevel,Int<-1>>,Black,RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>>,TrWipeX<Mult<IgnitionTime<300>,Int<16384>>>>,TrConcat<TrJoin<TrDelayX<Mult<RetractionTime<0>,Int<16384>>>,TrWipeInX<Mult<RetractionTime<0>,Int<16384>>>>,Mix<SmoothStep<NoisySoundLevel,Int<-1>>,Black,RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>>,TrWipeInX<Mult<RetractionTime<0>,Int<16384>>>>,Black>>>(),
  228.  
  229. "darksaber"},
  230.  
  231. };
  232.  
  233. BladeConfig blades[] = {
  234. { NO_BLADE,
  235. WS281XBladePtr<105, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
  236. CONFIGARRAY(no_blade), "nbsave" },
  237.  
  238. { 0,
  239. WS281XBladePtr<105, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
  240. CONFIGARRAY(blade_in) },
  241.  
  242. };
  243. #endif
  244.  
  245. #ifdef CONFIG_BUTTONS
  246. Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
  247. Button AuxButton(BUTTON_AUX, auxPin, "aux");
  248. #endif
  249.  
  250. //Config Example by A_Rogue_Child.
  251. //Instagram https://www.instagram.com/a_rogue_child
  252.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement