Blaster Style Question

I’m doing a DL-44 build and I’m getting close to complete but I’m confused a bit on the format for the Blaster style. I’m using this:

{ “Han”, “tracks/venus.wav”,
StylePtr<Lockup<BlastFadeout<BlastFadeout<Black,AudioFlicker<Black,Red>,250,EFFECT_FIRE>,AudioFlicker<Black,Blue>,1500,EFFECT_STUN>,AudioFlicker<Black,Red>>>(),
“han”},

It works. However, I also want a second style with the same config but using blaster sounds from Optimus Prime. I tried and the EFFECT_FIRE doesn’t quite line up with the sound. I’m not sure what in the style changes the time so I can adjust it. Also, the style loads with EFFECT_STUN as default. How do I change it to have EFFECT_FIRE at start? Lastly, I will only have a sound for EFFECT_FIRE in the Optimus style. How do I delete the EFFECT_STUN? I’m just confused on pulling it out and not messing up the nesting.

1 Like

You can change which mode it starts with here:

Note that there is currently no easy way to have one preset with a stun mode and another one without stun mode. However, it would be fairly simple to modify the prop file such that stun mode is disabled if no “stun” effect exists in the font.

The style does not actually change if a stun mode exists or not. It just reacts to it.

Thanks! If I increase the 250 in front of EFFECT_FIRE will that lengthen the blast effect?

yes, it will.

1 Like

Done! Thanks for all the help.

4 Likes

Looks great, I’m jealous!
So what were you saying about the mode, and the on.bmp? What are you looking to have it do exactly?

I think he wanted the graphic to change based on the stun, kill, and Auto but could only set it based on the on event.

I just wanted a definitive way to turn on the animation besides changing the style. If I double press the mode button it changes styles and the animation comes on. I was looking for a way to start the animation in the default Han style I have.

The question is, when do you want to see the battery meter?

I would prefer to see the animation at boot and have a way to switch to voltage

1 Like

Finishing up the build with a wall mount and serial plate.

3 Likes

what’s the Sertal?

Serial number

2880922294518

That’s awesome! I have not seen a mount like that before.

Thanks. I was going after the look of some of the signs at Galaxy’s Edge.

Ahh! Never been. Definitely on the bucket list though.

any chance you could post your config for this please

Sure, here you go:

#ifdef CONFIG_TOP
#include "proffieboard_v2_config.h"
#define NUM_BLADES 1
#define NUM_BUTTONS 2
#define VOLUME 5000
const unsigned int maxLedsPerStrip = 144;
#define CLASH_THRESHOLD_G 1.0
#define ENABLE_AUDIO
//#define ENABLE_BLASTER_AUTO
#define ENABLE_WS2811
#define ENABLE_SD

#define INCLUDE_SSD1306 to CONFIG_TOP 
#endif

#ifdef CONFIG_PROP
#include "../props/blaster.h"
#endif

#ifdef CONFIG_PRESETS
Preset presets[] = {
 { "Han", "tracks/venus.wav",
    StylePtr<Lockup<BlastFadeout<BlastFadeout<Black,AudioFlicker<Black,Red>,250,EFFECT_FIRE>,AudioFlicker<Black,Blue>,1500,EFFECT_STUN>,AudioFlicker<Black,Red>>>(),
"han"},
 { "Optimus", "tracks/venus.wav",
    StylePtr<Lockup<BlastFadeout<BlastFadeout<Black,AudioFlicker<Black,Red>,250,EFFECT_FIRE>,AudioFlicker<Black,Blue>,1500,EFFECT_STUN>,AudioFlicker<Black,Red>>>(),
"han"}

};
BladeConfig blades[] = {
 { 0, WS281XBladePtr<1, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) },
};
#endif

#ifdef CONFIG_BUTTONS
Button FireButton(BUTTON_FIRE, powerButtonPin, "fire");
Button ModeButton(BUTTON_MODE_SELECT, auxPin, "modeselect");
#endif
#ifdef CONFIG_BOTTOM
SSD1306Template<128, uint64_t> display(0x3C);
#endif

What’s this?