I’m not quite sure what I’m doing wrong, but since this is new, I wanna ask here:
I did this in the config:
Preset presets[] = {
{"Blaster/Dredgen/E-11D;common", "tracks/mars.wav",
StylePtr<BarrelBlade>("12288,50176,0", "16384,54272,65535","","","","","","","65535,24576,8192"),
StylePtr<BarrelBlade>(),
StylePtr<ClipOnIndicator>(),
"E-11D"
}
}
#ifdef CONFIG_STYLES
using BarrelBlade = Lockup<BlastFadeout<BlastFadeout<Black,AudioFlicker<Black,RgbArg<BLAST_COLOR_ARG,Rgb<255,64,0>>>,250,EFFECT_FIRE>,AudioFlicker<Black,RgbArg<ALT_COLOR_ARG,Rgb<0,0,255>>>,1500,EFFECT_STUN>,AudioFlicker<Black,RgbArg<BASE_COLOR_ARG,Rgb<196,128,0>>>>;
#endif
And I’m getting the following error at compile time:
In file included from D:\Sabers\ProffieOS-7.x\ProffieOS\ProffieOS.ino:617:
D:\Sabers\ProffieOS-7.x\ProffieOS\config\OS7_blaster_1.h:168:98: error: no matching function for call to 'StylePtr<BarrelBlade>(const char [14], const char [18], const char [1], const char [1], const char [1], const char [1], const char [1], const char [1], const char [17])'
168 | StylePtr<BarrelBlade>("12288,50176,0", "16384,54272,65535","","","","","","","65535,24576,8192"),
| ^
In file included from D:\Sabers\ProffieOS-7.x\ProffieOS\styles\fire.h:4,
from D:\Sabers\ProffieOS-7.x\ProffieOS\ProffieOS.ino:465:
D:\Sabers\ProffieOS-7.x\ProffieOS\styles\style_ptr.h:100:16: note: candidate: 'StyleFactory* StylePtr() [with STYLE = Layers<Layers<Layers<Layers<Rgb<0, 0, 0>, AlphaL<Layers<Rgb<0, 0, 0>, AlphaL<RgbArg<9, Rgb<255, 64, 0> >, SingleValueAdapter<NoisySoundLevelCompatSVF> > >, BlastFadeoutF<250, EffectType::EFFECT_FIRE> > >, AlphaL<Layers<Rgb<0, 0, 0>, AlphaL<RgbArg<2, Rgb<0, 0, 255> >, SingleValueAdapter<NoisySoundLevelCompatSVF> > >, BlastFadeoutF<1500, EffectType::EFFECT_STUN> > >, LockupL<Layers<Rgb<0, 0, 0>, AlphaL<RgbArg<1, Rgb<196, 128, 0> >, SingleValueAdapter<NoisySoundLevelCompatSVF> > >, Layers<Rgb<0, 0, 0>, AlphaL<RgbArg<1, Rgb<196, 128, 0> >, SingleValueAdapter<NoisySoundLevelCompatSVF> > >, SingleValueAdapter<IntSVF<32768> >, SmoothStep<SingleValueAdapter<IntSVF<28671> >, SingleValueAdapter<IntSVF<4096> > >, LayerFunctions<Bump<ScaleBase<SlowNoise<SingleValueAdapter<IntSVF<2000> > >, SingleValueAdapter<IntSVF<3000> >, SingleValueAdapter<IntSVF<16000> > >, ScaleBase<BrownNoiseF<SingleValueAdapter<IntSVF<10> > >, SingleValueAdapter<IntSVF<14000> >, SingleValueAdapter<IntSVF<8000> > > >, Bump<ScaleBase<SlowNoise<SingleValueAdapter<IntSVF<2300> > >, SingleValueAdapter<IntSVF<26000> >, SingleValueAdapter<IntSVF<8000> > >, SingleValueAdapter<ScaleSVF<NoisySoundLevelSVF, SingleValueAdapter<IntSVF<5000> >, SingleValueAdapter<IntSVF<10000> > > > >, Bump<ScaleBase<SlowNoise<SingleValueAdapter<IntSVF<2300> > >, SingleValueAdapter<IntSVF<20000> >, SingleValueAdapter<IntSVF<30000> > >, ScaleBase<IsLessThanBase<SlowNoise<SingleValueAdapter<IntSVF<1500> > >, SingleValueAdapter<IntSVF<8000> > >, SingleValueAdapter<ScaleSVF<NoisySoundLevelSVF, SingleValueAdapter<IntSVF<5000> >, SingleValueAdapter<IntSVF<0> > > >, SingleValueAdapter<IntSVF<0> > > > > > > >]'
100 | StyleAllocator StylePtr() {
| ^~~~~~~~
D:\Sabers\ProffieOS-7.x\ProffieOS\styles\style_ptr.h:100:16: note: candidate expects 0 arguments, 9 provided
D:\Sabers\ProffieOS-7.x\ProffieOS\styles\style_ptr.h:124:16: note: candidate: 'StyleFactory* StylePtr(const char*) [with STYLE = Layers<Layers<Layers<Layers<Rgb<0, 0, 0>, AlphaL<Layers<Rgb<0, 0, 0>, AlphaL<RgbArg<9, Rgb<255, 64, 0> >, SingleValueAdapter<NoisySoundLevelCompatSVF> > >, BlastFadeoutF<250, EffectType::EFFECT_FIRE> > >, AlphaL<Layers<Rgb<0, 0, 0>, AlphaL<RgbArg<2, Rgb<0, 0, 255> >, SingleValueAdapter<NoisySoundLevelCompatSVF> > >, BlastFadeoutF<1500, EffectType::EFFECT_STUN> > >, LockupL<Layers<Rgb<0, 0, 0>, AlphaL<RgbArg<1, Rgb<196, 128, 0> >, SingleValueAdapter<NoisySoundLevelCompatSVF> > >, Layers<Rgb<0, 0, 0>, AlphaL<RgbArg<1, Rgb<196, 128, 0> >, SingleValueAdapter<NoisySoundLevelCompatSVF> > >, SingleValueAdapter<IntSVF<32768> >, SmoothStep<SingleValueAdapter<IntSVF<28671> >, SingleValueAdapter<IntSVF<4096> > >, LayerFunctions<Bump<ScaleBase<SlowNoise<SingleValueAdapter<IntSVF<2000> > >, SingleValueAdapter<IntSVF<3000> >, SingleValueAdapter<IntSVF<16000> > >, ScaleBase<BrownNoiseF<SingleValueAdapter<IntSVF<10> > >, SingleValueAdapter<IntSVF<14000> >, SingleValueAdapter<IntSVF<8000> > > >, Bump<ScaleBase<SlowNoise<SingleValueAdapter<IntSVF<2300> > >, SingleValueAdapter<IntSVF<26000> >, SingleValueAdapter<IntSVF<8000> > >, SingleValueAdapter<ScaleSVF<NoisySoundLevelSVF, SingleValueAdapter<IntSVF<5000> >, SingleValueAdapter<IntSVF<10000> > > > >, Bump<ScaleBase<SlowNoise<SingleValueAdapter<IntSVF<2300> > >, SingleValueAdapter<IntSVF<20000> >, SingleValueAdapter<IntSVF<30000> > >, ScaleBase<IsLessThanBase<SlowNoise<SingleValueAdapter<IntSVF<1500> > >, SingleValueAdapter<IntSVF<8000> > >, SingleValueAdapter<ScaleSVF<NoisySoundLevelSVF, SingleValueAdapter<IntSVF<5000> >, SingleValueAdapter<IntSVF<0> > > >, SingleValueAdapter<IntSVF<0> > > > > > > >]'
124 | StyleAllocator StylePtr(const char* default_arguments) {
| ^~~~~~~~
D:\Sabers\ProffieOS-7.x\ProffieOS\styles\style_ptr.h:124:16: note: candidate expects 1 argument, 9 provided
exit status 1
Error compiling for board Proffieboard V2.
I only get the error when I put the parameters.