More questions on how this works…
My current config file is basically the default config file with an added Tron sound font I bought from JuanSith at Saberfont. :
#ifdef CONFIG_TOP
#include "proffieboard_v2_config.h"
#define NUM_BLADES 1
#define NUM_BUTTONS 2
#define VOLUME 1000
const unsigned int maxLedsPerStrip = 144;
#define CLASH_THRESHOLD_G 1.0
#define ENABLE_AUDIO
#define ENABLE_MOTION
#define ENABLE_WS2811
#define ENABLE_SD
#endif
#ifdef CONFIG_PRESETS
Preset presets[] = {
{ "TRON", "tracks/track4.wav",
StyleNormalPtr<CYAN, WHITE, 300, 800>(), "cyan"},
{ "TeensySF", "tracks/venus.wav",
StyleNormalPtr<CYAN, WHITE, 300, 800>(), "cyan"},
{ "SmthJedi", "tracks/mars.wav",
StylePtr<InOutSparkTip<EASYBLADE(BLUE, WHITE), 300, 800> >(), "blue"},
{ "SmthGrey", "tracks/mercury.wav",
StyleFirePtr<RED, YELLOW>(), "fire"},
{ "SmthFuzz", "tracks/uranus.wav",
StyleNormalPtr<RED, WHITE, 300, 800>(), "red"},
{ "RgueCmdr", "tracks/venus.wav",
StyleFirePtr<BLUE, CYAN>(), "blue fire"},
{ "TthCrstl", "tracks/mars.wav",
StylePtr<InOutHelper<EASYBLADE(OnSpark<GREEN>, WHITE), 300, 800> >(), "green"},
{ "TeensySF", "tracks/mercury.wav",
StyleNormalPtr<WHITE, RED, 300, 800, RED>(), "white"},
{ "SmthJedi", "tracks/uranus.wav",
StyleNormalPtr<AudioFlicker<YELLOW, WHITE>, BLUE, 300, 800>(), "yellow"},
{ "SmthGrey", "tracks/venus.wav",
StylePtr<InOutSparkTip<EASYBLADE(MAGENTA, WHITE), 300, 800> >(), "magenta"},
{ "SmthFuzz", "tracks/mars.wav",
StyleNormalPtr<Gradient<RED, BLUE>, Gradient<CYAN, YELLOW>, 300, 800>(), "gradient"},
{ "RgueCmdr", "tracks/mercury.wav",
StyleRainbowPtr<300, 800>(), "rainbow"},
{ "TthCrstl", "tracks/uranus.wav",
StyleStrobePtr<WHITE, Rainbow, 15, 300, 800>(), "strobe"},
{ "TeensySF", "tracks/venus.wav",
&style_pov, "POV"},
{ "SmthJedi", "tracks/mars.wav",
&style_charging, "Battery\nLevel"}
};
BladeConfig blades[] = {
{ 0, WS281XBladePtr<63, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) },
};
#endif
#ifdef CONFIG_BUTTONS
Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
Button AuxButton(BUTTON_AUX, auxPin, "aux");
#endif
If I change the BladeConfig part to:
BladeConfig blades[] = {
{ 0, SubBlade(0, 23, WS281XBladePtr<63, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >()),
SubBlade(24, 63, NULL),
CONFIGARRAY(presets) },
};
How would the presets change? Looking at what @NoSloppy did (and simply copying it for now), would I change the first entry in presets to:
{ "TRON", "tracks/track4.wav",
// Tron Disc inner ring
StylePtr<Layers<
Pulsing<RotateColorsX<Variation,Rgb<0,20,140>>,RotateColorsX<Variation,Rgb<20,100,240>>,1500>,
TransitionEffectL<TrConcat<TrInstant,HumpFlicker<White,RotateColorsX<Variation,Rgb<50,220,250>>,50>,TrFade<500>>,EFFECT_CLASH>,
TransitionEffectL<TrConcat<TrInstant,Black,TrDelay<4000>>,EFFECT_BOOT>,
TransitionEffectL<TrConcat<
TrInstant, Black,
TrDelay<1000>,Black,
TrInstant, AlphaL<RotateColorsX<Variation,Rgb<20,100,240>>,SmoothStep<Int<4681>,Int<-1>>>,
TrDelay<500>,AlphaL<RotateColorsX<Variation,Rgb<20,100,240>>,SmoothStep<Int<9362>,Int<-1>>>,
TrDelay<500>,AlphaL<RotateColorsX<Variation,Rgb<20,100,240>>,SmoothStep<Int<14043>,Int<-1>>>,
TrDelay<500>,AlphaL<RotateColorsX<Variation,Rgb<20,100,240>>,SmoothStep<Int<18724>,Int<-1>>>,
TrDelay<500>,AlphaL<RotateColorsX<Variation,Rgb<20,100,240>>,SmoothStep<Int<23405>,Int<-1>>>,
TrDelay<500>,AlphaL<RotateColorsX<Variation,Rgb<20,100,240>>,SmoothStep<Int<28086>,Int<-1>>>,
TrDelay<500>, RotateColorsX<Variation,Rgb<20,100,240>>,TrFade<1000>>,EFFECT_BOOT>>>(),
// Outer ring
StylePtr<Layers<
Mix<SwingSpeed<400>,
ColorCycle<Rgb<0,100,140>,0,1,Pulsing<RotateColorsX<Variation,Rgb<0,100,140>>,RotateColorsX<Variation,Rgb<20,200,240>>,500>,70,4000,500>,
HumpFlicker<RotateColorsX<Variation,Rgb<100,220,250>>,RotateColorsX<Variation,Rgb<20,100,140>>,10>>,
TransitionEffectL<TrConcat<TrInstant,HumpFlicker<White,RotateColorsX<Variation,Rgb<100,220,250>>,50>,TrFade<200>>,EFFECT_CLASH>,
TransitionEffectL<TrConcat<TrFade<75>,White,TrDelay<25>,White,TrFade<50>,Stripes<2000,1,Rgb<0,40,80>,Rgb<20,200,240>>,TrDelay<125>,Stripes<2000,-500,Rgb<0,40,80>,Rgb<20,200,240>>,TrFade<100>>,EFFECT_IGNITION>,
InOutTrL<TrInstant,TrFade<500>>>>(), "cyan"},
How does the system map the style to the two different sub-blades?