triggerbox: implement set_all_X for triggers (libardour part)
This commit is contained in:
parent
b89d181560
commit
bad18350e2
@ -502,6 +502,11 @@ class LIBARDOUR_API TriggerBox : public Processor
|
||||
|
||||
TriggerPtr currently_playing() const { return _currently_playing; }
|
||||
|
||||
void set_all_follow_action (ARDOUR::Trigger::FollowAction, uint32_t n=0);
|
||||
void set_all_launch_style (ARDOUR::Trigger::LaunchStyle);
|
||||
void set_all_quantization (Temporal::BBT_Offset const&);
|
||||
void set_all_probability (int zero_to_a_hundred);
|
||||
|
||||
/* Returns a negative value is there is no active Trigger, or a value between 0
|
||||
* and 1.0 if there is, corresponding to the value of position_as_fraction() for
|
||||
* the active Trigger.
|
||||
|
@ -1926,6 +1926,38 @@ TriggerBox::request_stop_all ()
|
||||
_requests.stop_all = true;
|
||||
}
|
||||
|
||||
void
|
||||
TriggerBox::set_all_launch_style (ARDOUR::Trigger::LaunchStyle ls)
|
||||
{
|
||||
for (uint64_t n = 0; n < all_triggers.size(); ++n) {
|
||||
all_triggers[n]->set_launch_style (ls);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
TriggerBox::set_all_follow_action (ARDOUR::Trigger::FollowAction fa, uint32_t fa_n)
|
||||
{
|
||||
for (uint64_t n = 0; n < all_triggers.size(); ++n) {
|
||||
all_triggers[n]->set_follow_action (fa, fa_n);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
TriggerBox::set_all_probability (int zero_to_hundred)
|
||||
{
|
||||
for (uint64_t n = 0; n < all_triggers.size(); ++n) {
|
||||
all_triggers[n]->set_follow_action_probability (zero_to_hundred);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
TriggerBox::set_all_quantization (Temporal::BBT_Offset const& q)
|
||||
{
|
||||
for (uint64_t n = 0; n < all_triggers.size(); ++n) {
|
||||
all_triggers[n]->set_quantization (q);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
TriggerBox::stop_all ()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user