Mark new Tracks with TB to present them

This commit is contained in:
Robin Gareus 2021-12-01 05:26:28 +01:00
parent 3a2566b4af
commit 3b5dbf2252
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -2461,6 +2461,7 @@ Session::new_midi_track (const ChanCount& input, const ChanCount& output, bool s
if (with_triggers) {
boost::shared_ptr<Processor> triggers (new TriggerBox (*this, DataType::MIDI));
track->add_processor (triggers, track->polarity());
track->presentation_info ().set_trigger_track (true);
}
new_routes.push_back (track);
@ -2732,6 +2733,7 @@ Session::new_audio_track (int input_channels, int output_channels, RouteGroup* r
* a sidehcain MIDI input to be able to be MIDI controlled
*/
tb->add_midi_sidechain (track->name());
track->presentation_info ().set_trigger_track (true);
}
new_routes.push_back (track);