triggerbox: clear_all_triggers (libardour part)

This commit is contained in:
Ben Loftis
2021-12-23 10:59:31 -06:00
parent bc8994d5c8
commit 31228c8635
2 changed files with 9 additions and 0 deletions

View File

@@ -507,6 +507,7 @@ class LIBARDOUR_API TriggerBox : public Processor
TriggerPtr currently_playing() const { return _currently_playing; }
void clear_all_triggers ();
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&);

View File

@@ -1970,6 +1970,14 @@ TriggerBox::stop_all_immediately ()
_requests.stop_all = true;
}
void
TriggerBox::clear_all_triggers ()
{
for (uint64_t n = 0; n < all_triggers.size(); ++n) {
all_triggers[n]->set_region (boost::shared_ptr<Region>());
}
}
void
TriggerBox::set_all_launch_style (ARDOUR::Trigger::LaunchStyle ls)
{