13
0

use region name for trigger name

This commit is contained in:
Paul Davis 2021-07-27 22:39:42 -06:00
parent ccf1c4fb57
commit b0e9ad07ca

View File

@ -1,5 +1,6 @@
#include <iostream>
#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);