From b0e9ad07cad3d864a80a804080721abd897cc195 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 27 Jul 2021 22:39:42 -0600 Subject: [PATCH] use region name for trigger name --- libs/ardour/triggerbox.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index b1b529cb24..a183298e9d 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -1,5 +1,6 @@ #include +#include "pbd/basename.h" #include "pbd/failed_constructor.h" #include "ardour/audioregion.h" @@ -84,7 +85,7 @@ TriggerBox::load_some_samples () plist.add (Properties::start, 0); plist.add (Properties::length, src_list.front()->length ()); - plist.add (Properties::name, string ("bang")); + plist.add (Properties::name, basename_nosuffix (path)); plist.add (Properties::layer, 0); plist.add (Properties::layering_index, 0);