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_block_size (_session.get_block_size ());
_disk_writer->set_owner (this); _disk_writer->set_owner (this);
boost::shared_ptr<TriggerBox> tb (new TriggerBox (_session, data_type ())); if (!is_auditioner ()) {
tb->set_owner (this); boost::shared_ptr<TriggerBox> tb (new TriggerBox (_session, data_type ()));
add_processor (tb, _polarity); tb->set_owner (this);
if (data_type () == DataType::AUDIO) { add_processor (tb, _polarity);
/* if placing this in a route where the default if (data_type () == DataType::AUDIO) {
* data type is AUDIO, the triggerbox will need /* if placing this in a route where the default
* a sidehcain MIDI input to be able to be MIDI controlled * data type is AUDIO, the triggerbox will need
*/ * a sidehcain MIDI input to be able to be MIDI controlled
tb->add_midi_sidechain (); */
tb->add_midi_sidechain ();
}
} }
set_align_choice_from_io (); set_align_choice_from_io ();