diff --git a/libs/ardour/ardour/triggerbox.h b/libs/ardour/ardour/triggerbox.h index 1392742098..ebafd74557 100644 --- a/libs/ardour/ardour/triggerbox.h +++ b/libs/ardour/ardour/triggerbox.h @@ -157,20 +157,21 @@ class LIBARDOUR_API Trigger : public PBD::Stateful { struct UIState { std::atomic generation; /* used for CAS */ - LaunchStyle launch_style; - FollowAction follow_action0; - FollowAction follow_action1; - int follow_action_probability; /* 1 .. 100 */ - uint32_t follow_count; - Temporal::BBT_Offset quantization; - Temporal::BBT_Offset follow_length; - bool use_follow_length; - bool legato; - gain_t gain; - float velocity_effect; - bool stretchable; - bool cue_isolated; - StretchMode stretch_mode; + LaunchStyle launch_style = OneShot; + FollowAction follow_action0 = FollowAction (FollowAction::Again); + FollowAction follow_action1 = FollowAction (FollowAction::Stop); + int follow_action_probability = 0; + uint32_t follow_count = 1; + Temporal::BBT_Offset quantization = Temporal::BBT_Offset (1, 0, 0); + Temporal::BBT_Offset follow_length = Temporal::BBT_Offset (1, 0, 0); + bool use_follow_length = false; + bool legato = false; + gain_t gain = 1.0; + float velocity_effect = 0; + bool stretchable = true; + bool cue_isolated = false; + StretchMode stretch_mode = Trigger::Crisp; + UIState() : generation (0) {}