Error when trying to add swing effect

Hi guys. I have this as my original bladestyle:

StylePtr<Layers<
  RotateColorsX<Variation,Rgb<64,50,0>>,
  HumpFlickerL<RotateColorsX<Variation,Rgb<180,130,0>>,30>,
  ResponsiveLockupL<Azure,TrConcat<TrInstant,Black,TrFade<150>>,TrConcat<TrInstant,Black,TrFade<150>>,Int<26000>,Int<8000>,Scale<NoisySoundLevel,Int<9000>,Int<24000>>>,
  ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,
  ResponsiveStabL<Green>,
  ResponsiveBlastL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>>,
  ResponsiveClashL<White,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,
  LockupTrL<AlphaL<Mix<TwistAngle<>,Stripes<1000,3000,Cyan,White,Rgb<0,50,50>,Rgb<75,75,75>>,Stripes<2000,3000,Rgb<75,75,75>,Rgb<75,75,75>,Rgb<100,100,100>,Rgb<60,60,60>>>,SmoothStep<Scale<TwistAngle<>,Int<29000>,Int<26000>>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_DRAG>,
  LockupTrL<AlphaL<Mix<TwistAngle<>,Stripes<1000,3000,Red,Black,Rgb<200,0,0>,Rgb<90,0,0>>,Stripes<2000,3000,Rgb<255,200,0>,Cornsilk,Rgb<200,160,0>,OrangeRed>>,SmoothStep<Scale<TwistAngle<>,Int<29000>,Int<26000>>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,
  InOutTrL<TrWipe<300>,TrWipeIn<500>>>>(),

That I want to add this swing effect to:

AlphaL<NavajoWhite,Scale<IsLessThan<SwingSpeed<600>,Int<13600>>,Scale<SwingSpeed<600>,Int<-19300>,Int<32768>>,Int<0>>>,

Which I’m trying like this:

StylePtr<Layers<
  RotateColorsX<Variation,Rgb<64,50,0>>,
  HumpFlickerL<RotateColorsX<Variation,Rgb<180,130,0>>,30>,
  AlphaL<NavajoWhite,Scale<IsLessThan<SwingSpeed<600>,Int<13600>>,Scale<SwingSpeed<600>,Int<-19300>,Int<32768>>,Int<0>>>,
  ResponsiveLockupL<Azure,TrConcat<TrInstant,Black,TrFade<150>>,TrConcat<TrInstant,Black,TrFade<150>>,Int<26000>,Int<8000>,Scale<NoisySoundLevel,Int<9000>,Int<24000>>>,
  ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,
  ResponsiveStabL<Green>,
  ResponsiveBlastL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>>,
  ResponsiveClashL<White,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,
  LockupTrL<AlphaL<Mix<TwistAngle<>,Stripes<1000,3000,Cyan,White,Rgb<0,50,50>,Rgb<75,75,75>>,Stripes<2000,3000,Rgb<75,75,75>,Rgb<75,75,75>,Rgb<100,100,100>,Rgb<60,60,60>>>,SmoothStep<Scale<TwistAngle<>,Int<29000>,Int<26000>>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_DRAG>,
  LockupTrL<AlphaL<Mix<TwistAngle<>,Stripes<1000,3000,Red,Black,Rgb<200,0,0>,Rgb<90,0,0>>,Stripes<2000,3000,Rgb<255,200,0>,Cornsilk,Rgb<200,160,0>,OrangeRed>>,SmoothStep<Scale<TwistAngle<>,Int<29000>,Int<26000>>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,
  InOutTrL<TrWipe<300>,TrWipeIn<500>>>>(),

But it’s tripping the compiler with this error:

In file included from /Users/happydan/GoogleDrive/Other stuff/Lightsabers/63/ProffieOS/ProffieOS.ino:550:
/Users/happydan/GoogleDrive/Other stuff/Lightsabers/63/ProffieOS/config/npxl_pad_1.h:60:564: error: 'HumFFlickerL' was not declared in this scope; did you mean 'HumpFlickerL'?
   60 |     StylePtr<Layers<RotateColorsX<Variation,Rgb<64,50,0>>,HumpFlickerL<RotateColorsX<Variation,Rgb<180,130,0>>,30>,AlphaL<NavajoWhite,Scale<IsLessThan<SwingSpeed<600>,Int<13600>>,Scale<SwingSpeed<600>,Int<-19300>,Int<32768>>,Int<0>>>,ResponsiveLockupL<Azure,TrConcat<TrInstant,Black,TrFade<150>>,TrConcat<TrInstant,Black,TrFade<150>>,Int<26000>,Int<8000>,Scale<NoisySoundLevel,Int<9000>,Int<24000>>>,ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumFFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,ResponsiveStabL<Green>,ResponsiveBlastL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>>,ResponsiveClashL<White,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,LockupTrL<AlphaL<Mix<TwistAngle<>,Stripes<1000,3000,Cyan,White,Rgb<0,50,50>,Rgb<75,75,75>>,Stripes<2000,3000,Rgb<75,75,75>,Rgb<75,75,75>,Rgb<100,100,100>,Rgb<60,60,60>>>,SmoothStep<Scale<TwistAngle<>,Int<29000>,Int<26000>>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Mix<TwistAngle<>,Stripes<1000,3000,Red,Black,Rgb<200,0,0>,Rgb<90,0,0>>,Stripes<2000,3000,Rgb<255,200,0>,Cornsilk,Rgb<200,160,0>,OrangeRed>>,SmoothStep<Scale<TwistAngle<>,Int<29000>,Int<26000>>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipe<300>,TrWipeIn<500>>>>(),
      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^~~~~~~~~~~~
      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    HumpFlickerL
/Users/happydan/GoogleDrive/Other stuff/Lightsabers/63/ProffieOS/config/npxl_pad_1.h:60:604: error: template argument 2 is invalid
   60 |     StylePtr<Layers<RotateColorsX<Variation,Rgb<64,50,0>>,HumpFlickerL<RotateColorsX<Variation,Rgb<180,130,0>>,30>,AlphaL<NavajoWhite,Scale<IsLessThan<SwingSpeed<600>,Int<13600>>,Scale<SwingSpeed<600>,Int<-19300>,Int<32768>>,Int<0>>>,ResponsiveLockupL<Azure,TrConcat<TrInstant,Black,TrFade<150>>,TrConcat<TrInstant,Black,TrFade<150>>,Int<26000>,Int<8000>,Scale<NoisySoundLevel,Int<9000>,Int<24000>>>,ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumFFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,ResponsiveStabL<Green>,ResponsiveBlastL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>>,ResponsiveClashL<White,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,LockupTrL<AlphaL<Mix<TwistAngle<>,Stripes<1000,3000,Cyan,White,Rgb<0,50,50>,Rgb<75,75,75>>,Stripes<2000,3000,Rgb<75,75,75>,Rgb<75,75,75>,Rgb<100,100,100>,Rgb<60,60,60>>>,SmoothStep<Scale<TwistAngle<>,Int<29000>,Int<26000>>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Mix<TwistAngle<>,Stripes<1000,3000,Red,Black,Rgb<200,0,0>,Rgb<90,0,0>>,Stripes<2000,3000,Rgb<255,200,0>,Cornsilk,Rgb<200,160,0>,OrangeRed>>,SmoothStep<Scale<TwistAngle<>,Int<29000>,Int<26000>>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipe<300>,TrWipeIn<500>>>>(),
      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/Users/happydan/GoogleDrive/Other stuff/Lightsabers/63/ProffieOS/config/npxl_pad_1.h:60:604: error: template argument 3 is invalid
/Users/happydan/GoogleDrive/Other stuff/Lightsabers/63/ProffieOS/config/npxl_pad_1.h:60:622: error: wrong number of template arguments (4, should be at least 1)
   60 |     StylePtr<Layers<RotateColorsX<Variation,Rgb<64,50,0>>,HumpFlickerL<RotateColorsX<Variation,Rgb<180,130,0>>,30>,AlphaL<NavajoWhite,Scale<IsLessThan<SwingSpeed<600>,Int<13600>>,Scale<SwingSpeed<600>,Int<-19300>,Int<32768>>,Int<0>>>,ResponsiveLockupL<Azure,TrConcat<TrInstant,Black,TrFade<150>>,TrConcat<TrInstant,Black,TrFade<150>>,Int<26000>,Int<8000>,Scale<NoisySoundLevel,Int<9000>,Int<24000>>>,ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumFFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,ResponsiveStabL<Green>,ResponsiveBlastL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>>,ResponsiveClashL<White,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,LockupTrL<AlphaL<Mix<TwistAngle<>,Stripes<1000,3000,Cyan,White,Rgb<0,50,50>,Rgb<75,75,75>>,Stripes<2000,3000,Rgb<75,75,75>,Rgb<75,75,75>,Rgb<100,100,100>,Rgb<60,60,60>>>,SmoothStep<Scale<TwistAngle<>,Int<29000>,Int<26000>>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Mix<TwistAngle<>,Stripes<1000,3000,Red,Black,Rgb<200,0,0>,Rgb<90,0,0>>,Stripes<2000,3000,Rgb<255,200,0>,Cornsilk,Rgb<200,160,0>,OrangeRed>>,SmoothStep<Scale<TwistAngle<>,Int<29000>,Int<26000>>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipe<300>,TrWipeIn<500>>>>(),
      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^~
In file included from /Users/happydan/GoogleDrive/Other stuff/Lightsabers/63/ProffieOS/ProffieOS.ino:508:
/Users/happydan/GoogleDrive/Other stuff/Lightsabers/63/ProffieOS/styles/responsive_styles.h:66:7: note: provided for 'template<class COLOR, class TR1, class TR2> using ResponsiveLightningBlockL = LockupTrL<AlphaL<COLOR, LayerFunctions<Bump<ScaleBase<SlowNoise<SingleValueAdapter<ScaleSVF<BladeAngleXSVF<SingleValueAdapter<IntSVF<24000> >, SingleValueAdapter<IntSVF<32768> > >, SingleValueAdapter<IntSVF<2100> >, SingleValueAdapter<IntSVF<1000> > > > >, SingleValueAdapter<ScaleSVF<BladeAngleXSVF<SingleValueAdapter<IntSVF<24000> >, SingleValueAdapter<IntSVF<32768> > >, SingleValueAdapter<IntSVF<3000> >, SingleValueAdapter<IntSVF<10000> > > >, SingleValueAdapter<IntSVF<16000> > >, ScaleBase<BrownNoiseF<SingleValueAdapter<IntSVF<10> > >, SingleValueAdapter<ScaleSVF<TwistAngleSVF<2, 0>, SingleValueAdapter<IntSVF<4000> >, SingleValueAdapter<IntSVF<10000> > > >, SingleValueAdapter<ScaleSVF<TwistAngleSVF<2, 0>, SingleValueAdapter<IntSVF<9000> >, SingleValueAdapter<IntSVF<14000> > > > > >, Bump<ScaleBase<SlowNoise<SingleValueAdapter<IntSVF<2200> > >, SingleValueAdapter<ScaleSVF<BladeAngleXSVF<SingleValueAdapter<IntSVF<24000> >, SingleValueAdapter<IntSVF<32768> > >, SingleValueAdapter<IntSVF<26000> >, SingleValueAdapter<IntSVF<18000> > > >, SingleValueAdapter<IntSVF<8000> > >, SingleValueAdapter<ScaleSVF<NoisySoundLevelSVF, SingleValueAdapter<ScaleSVF<TwistAngleSVF<2, 0>, SingleValueAdapter<IntSVF<6000> >, SingleValueAdapter<IntSVF<10000> > > >, SingleValueAdapter<ScaleSVF<TwistAngleSVF<2, 0>, SingleValueAdapter<IntSVF<10000> >, SingleValueAdapter<IntSVF<14000> > > > > > >, Bump<ScaleBase<SlowNoise<SingleValueAdapter<IntSVF<2300> > >, SingleValueAdapter<ScaleSVF<BladeAngleXSVF<SingleValueAdapter<IntSVF<24000> >, SingleValueAdapter<IntSVF<32768> > >, SingleValueAdapter<IntSVF<20000> >, SingleValueAdapter<IntSVF<16000> > > >, SingleValueAdapter<ScaleSVF<BladeAngleXSVF<SingleValueAdapter<IntSVF<24000> >, SingleValueAdapter<IntSVF<32768> > >, SingleValueAdapter<IntSVF<30000> >, SingleValueAdapter<IntSVF<24000> > > > >, ScaleBase<IsLessThanBase<SlowNoise<SingleValueAdapter<IntSVF<2000> > >, SingleValueAdapter<IntSVF<12000> > >, SingleValueAdapter<ScaleSVF<NoisySoundLevelSVF, SingleValueAdapter<ScaleSVF<TwistAngleSVF<2, 0>, SingleValueAdapter<IntSVF<9000> >, SingleValueAdapter<IntSVF<5000> > > >, SingleValueAdapter<IntSVF<0> > > >, SingleValueAdapter<IntSVF<0> > > > > >, TR1, TR2, SaberBase::LOCKUP_LIGHTNING_BLOCK>'
   66 | using ResponsiveLightningBlockL =
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/happydan/GoogleDrive/Other stuff/Lightsabers/63/ProffieOS/ProffieOS.ino:550:
/Users/happydan/GoogleDrive/Other stuff/Lightsabers/63/ProffieOS/config/npxl_pad_1.h:60:624: error: template argument 5 is invalid
   60 |     StylePtr<Layers<RotateColorsX<Variation,Rgb<64,50,0>>,HumpFlickerL<RotateColorsX<Variation,Rgb<180,130,0>>,30>,AlphaL<NavajoWhite,Scale<IsLessThan<SwingSpeed<600>,Int<13600>>,Scale<SwingSpeed<600>,Int<-19300>,Int<32768>>,Int<0>>>,ResponsiveLockupL<Azure,TrConcat<TrInstant,Black,TrFade<150>>,TrConcat<TrInstant,Black,TrFade<150>>,Int<26000>,Int<8000>,Scale<NoisySoundLevel,Int<9000>,Int<24000>>>,ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumFFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,ResponsiveStabL<Green>,ResponsiveBlastL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>>,ResponsiveClashL<White,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,LockupTrL<AlphaL<Mix<TwistAngle<>,Stripes<1000,3000,Cyan,White,Rgb<0,50,50>,Rgb<75,75,75>>,Stripes<2000,3000,Rgb<75,75,75>,Rgb<75,75,75>,Rgb<100,100,100>,Rgb<60,60,60>>>,SmoothStep<Scale<TwistAngle<>,Int<29000>,Int<26000>>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Mix<TwistAngle<>,Stripes<1000,3000,Red,Black,Rgb<200,0,0>,Rgb<90,0,0>>,Stripes<2000,3000,Rgb<255,200,0>,Cornsilk,Rgb<200,160,0>,OrangeRed>>,SmoothStep<Scale<TwistAngle<>,Int<29000>,Int<26000>>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipe<300>,TrWipeIn<500>>>>(),
      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/Users/happydan/GoogleDrive/Other stuff/Lightsabers/63/ProffieOS/config/npxl_pad_1.h:60:1433: error: expected primary-expression before ')' token
   60 |     StylePtr<Layers<RotateColorsX<Variation,Rgb<64,50,0>>,HumpFlickerL<RotateColorsX<Variation,Rgb<180,130,0>>,30>,AlphaL<NavajoWhite,Scale<IsLessThan<SwingSpeed<600>,Int<13600>>,Scale<SwingSpeed<600>,Int<-19300>,Int<32768>>,Int<0>>>,ResponsiveLockupL<Azure,TrConcat<TrInstant,Black,TrFade<150>>,TrConcat<TrInstant,Black,TrFade<150>>,Int<26000>,Int<8000>,Scale<NoisySoundLevel,Int<9000>,Int<24000>>>,ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumFFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,ResponsiveStabL<Green>,ResponsiveBlastL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>>,ResponsiveClashL<White,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,LockupTrL<AlphaL<Mix<TwistAngle<>,Stripes<1000,3000,Cyan,White,Rgb<0,50,50>,Rgb<75,75,75>>,Stripes<2000,3000,Rgb<75,75,75>,Rgb<75,75,75>,Rgb<100,100,100>,Rgb<60,60,60>>>,SmoothStep<Scale<TwistAngle<>,Int<29000>,Int<26000>>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Mix<TwistAngle<>,Stripes<1000,3000,Red,Black,Rgb<200,0,0>,Rgb<90,0,0>>,Stripes<2000,3000,Rgb<255,200,0>,Cornsilk,Rgb<200,160,0>,OrangeRed>>,SmoothStep<Scale<TwistAngle<>,Int<29000>,Int<26000>>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipe<300>,TrWipeIn<500>>>>(),
      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
exit status 1
Error compiling for board Proffieboard V2.

What’s going wrong?

typo, HumFFlicker (if you look for ^ in error message it points to what’s wrong)

1 Like

Oh wow. Thanks! Super simple but I must have mis-typed something!

1 Like