triggerbox: initialize values of UIState (c++11 style)
This commit is contained in:
parent
76ae8f29f7
commit
37a5edb2cd
|
@ -157,20 +157,21 @@ class LIBARDOUR_API Trigger : public PBD::Stateful {
|
|||
struct UIState {
|
||||
std::atomic<unsigned int> 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) {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user