13
0

Do not add TriggerBox Processor to Auditioner

This commit is contained in:
Robin Gareus 2022-01-17 04:31:25 +01:00
parent 378ad277bd
commit 7e37ae4b17
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -101,15 +101,17 @@ Track::init ()
_disk_writer->set_block_size (_session.get_block_size ());
_disk_writer->set_owner (this);
boost::shared_ptr<TriggerBox> tb (new TriggerBox (_session, data_type ()));
tb->set_owner (this);
add_processor (tb, _polarity);
if (data_type () == DataType::AUDIO) {
/* if placing this in a route where the default
* data type is AUDIO, the triggerbox will need
* a sidehcain MIDI input to be able to be MIDI controlled
*/
tb->add_midi_sidechain ();
if (!is_auditioner ()) {
boost::shared_ptr<TriggerBox> tb (new TriggerBox (_session, data_type ()));
tb->set_owner (this);
add_processor (tb, _polarity);
if (data_type () == DataType::AUDIO) {
/* if placing this in a route where the default
* data type is AUDIO, the triggerbox will need
* a sidehcain MIDI input to be able to be MIDI controlled
*/
tb->add_midi_sidechain ();
}
}
set_align_choice_from_io ();