Question on output of Style Library

I’ve been messing with my proffie config for a few days and started getting into the style section. I have a nice setup toggles through my colors and styles when i twist. And then i saw the Jedi Survivor styles and thought “that is exactly what i am looking for”. So i did the Party 2 version and got the output of the style. Now in my current config i have an array of styles pointing at different sound font folders

{ “Juansith_Survivor/green;common”, “”,
StylePtr<>
etc etc
}

The web GUI list styles 0-8 (Cal Kestis Survivor COLOR). But i only get a single style pointer? I assumed i would get a StylePointer per style from the GUI. That way i could just copy them over my existing style in my config. How does Styles 0-8 in the GUI translate to a single styleptr in the output?

If you’re referring to my Library, I’d start by watching the Recommended videos at the top, especially the Phases and Alt Fonts.

Then refer to the top section of the style code the library generates it will include all of the set up information the style expects :wink:.

There’s no change to the preset, the change is in the font folder itself.

The preset will remain:

{ "font;common", "font/tracks/track.wav",
/*
Style Information
*/
StylePtr<...>(),
"name"
},

Yes i was referring to your library. I did watch the video on the configuration but i was trying to reconcile the difference between the preset array and the StylePtr output. The help text in the output gave me an idea of what i should do but i just wanted to come ask here because i was a little confused. If i am understanding you correctly all the color changing and effects are embedded in that StylePtr object instead of the Preset array i am currently using. Ill spend some time trying it out I appreciate answering my question.

I meant the videos at the top of the library, I cover all of the new features and capabilities with how to set up etc.

They will cover everything you need to do.

The videos on the config helper are specific to that tool. The library has its own videos covering all of the new functionality.

Ahh didn’t see those thank you

Yes,

You need to rename your folder Green to Alt000, next color to Alt001, … to Alt002, …
Your preset should look like this:

{ “Juansith_Survivor;common”, “”,
/*
Style Information
*/
StylePtr<>(),
// more "StylePtr<>(),"  if you have more than one blade
"name" // optional but if you want to ignore this, then remove the previous "," (comma)
}

Only one preset and one blade style to control all your “Juansith_Survivor" colored named sub-folders, those sub-folders need to be renamed to Alt000, Alt001, Alt 002, … in the same order as the colors found in your blade style.

This is what I have in my Kestis blade style:

StylePtr<Layers<
Layers<
ColorSelect<AltF,TrFade<300>,Green,          /* alt000 */
                             Rgb<147,0,255>, /* alt001 was indigo */
                             Yellow,         /* alt002 */
                             Cyan,           /* alt003 */
                             Magenta,        /* alt004 */
                             Orange,         /* alt005 */
                             Azure,          /* alt006 was white */
                             Red,            /* alt007 */
                             Rgb<128,0,128>, /* alt008 was purple */
                             DeepSkyBlue>,   /* alt009 was Blue */
...

The stuff between “/* … */” is just so I would remember how each renamed folder came from what “color” named folder. The color order in your blade style might be different than mine so adjust accordingly.

So i have a CC with a motor. I sort of only want that subblade on a single “preset” to save battery. How does that work in this config style?

For the motor where you want it completely off in a preset, you can use:
StylePtr<Black>(), as your motor blade style.

Ahhh it just clicked in my head. Styles now contain different “styles” inside of them and i can still have multiple presets where i can control the motor as a subblade with its own style per preset. So i can do a normal preset with the motor on and another preset with the motor off and still have each preset with its own set up “styles” and subfonts to change the colors. Neat

If you have for example #define NUM_BLADES 4
each presets needs 4 StylePtr<…>(),
and your blade array needs to have 4 blades or 4 subblades or a combination of 4 blades/subblades

For example:

Preset presets[] = {
   { "TeensySF", "tracks/venus.wav",
    StyleNormalPtr<CYAN, WHITE, 300, 800>(), // style for your 1st blade
    StyleNormalPtr<CYAN, WHITE, 300, 800>(), // style for your 2nd blade
    StyleNormalPtr<CYAN, WHITE, 300, 800>(), // style for 3rd
    StyleNormalPtr<CYAN, WHITE, 300, 800>(), // style for 4th
"cyan"},
   { "SmthJedi", "tracks/mars.wav",
    StylePtr<InOutSparkTip<EASYBLADE(BLUE, WHITE), 300, 800> >(),
    StylePtr<InOutSparkTip<EASYBLADE(BLUE, WHITE), 300, 800> >(),
    StylePtr<InOutSparkTip<EASYBLADE(BLUE, WHITE), 300, 800> >(),
    StylePtr<InOutSparkTip<EASYBLADE(BLUE, WHITE), 300, 800> >(), "blue"},
   { "SmthGrey", "tracks/mercury.wav",
    StyleFirePtr<RED, YELLOW, 0>(),
    StyleFirePtr<RED, YELLOW, 1>(),
    StyleFirePtr<RED, YELLOW, 2>(),
    StyleFirePtr<RED, YELLOW, 3>(), "fire"},
...
};
BladeConfig blades[] = {
 { 0, 
WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), // my 1st blade (the main blade)
SubBladeWithStride(0, 15, 2, WS281XBladePtr<16, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >()), // my 2nd blade (the NPXL connector - part1)
SubBladeWithStride(1, 15, 2, NULL), // my 3rd blade (the NPXL connector - part2)
WS281XBladePtr<1, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin1> >(), // my 4th blade (the crystal chamber), in your case it probably is your motor
// and your 4th blade style could be:
// StylePtr<Black>(), <-- never runs, or
// StylePtr<White>(), <-- always runs at full speed, or
// StylePtr<InOutHelper<Blue,300,800>>(), <-- runs at one third speed but only when your main blade is on, ...

CONFIGARRAY(presets) },
};

A blade in ProffieOS can be defined as “anything that lights up, or moves/rotates (like a motor)”
The order of your blades in BladeConfig blades[] can be anything you want but the order of your blade styles must match your blades order.

Is there some special trick to getting “Special effect 1” to trigger because i have what i believe to have the correct configuration and style from the tool and for the life of me i can NOT get it to trigger.

While ON
Hold PWR + Turn Right (parallel or up) = Special Ability 1 (USER1)

I have #define FETT263_SPECIAL_ABILITIES in my config…i don’t have any errors on boot, so sound file not found i know all the altfont dirs on the SD card are fine.

Disregard my last post…works fine when i have it mounted in the hilt. guess pressing the tiny button with my finger and trying to do it wasn’t good enough