2010-08-09 10:10:23 -04:00
|
|
|
/*
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2009-2012 Carl Hetherington <carl@carlh.net>
|
|
|
|
* Copyright (C) 2009-2012 David Robillard <d@drobilla.net>
|
|
|
|
* Copyright (C) 2009-2018 Paul Davis <paul@linuxaudiosystems.com>
|
|
|
|
* Copyright (C) 2012-2019 Robin Gareus <robin@gareus.org>
|
|
|
|
* Copyright (C) 2012 Ben Loftis <ben@harrisonconsoles.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
2010-08-09 10:10:23 -04:00
|
|
|
|
2024-02-14 11:22:56 -05:00
|
|
|
#include "pbd/configuration.h"
|
|
|
|
|
2009-05-15 21:22:43 -04:00
|
|
|
#include "ardour/session.h"
|
2018-10-05 12:35:13 -04:00
|
|
|
#include "ardour/transport_master_manager.h"
|
2009-12-21 13:23:07 -05:00
|
|
|
|
2018-12-03 19:55:52 -05:00
|
|
|
#include "actions.h"
|
2009-12-21 13:23:07 -05:00
|
|
|
#include "gui_thread.h"
|
2009-05-15 21:22:43 -04:00
|
|
|
#include "session_option_editor.h"
|
2010-11-09 01:03:51 -05:00
|
|
|
#include "search_path_option.h"
|
2016-07-14 14:44:52 -04:00
|
|
|
#include "pbd/i18n.h"
|
2009-05-15 21:22:43 -04:00
|
|
|
|
2009-05-20 16:54:07 -04:00
|
|
|
using namespace std;
|
2009-05-15 21:22:43 -04:00
|
|
|
using namespace ARDOUR;
|
2012-10-11 21:08:29 -04:00
|
|
|
using namespace Timecode;
|
2009-05-15 21:22:43 -04:00
|
|
|
|
|
|
|
SessionOptionEditor::SessionOptionEditor (Session* s)
|
2015-11-27 17:33:31 -05:00
|
|
|
: OptionEditorWindow (&(s->config), _("Session Properties"))
|
2009-11-09 15:05:18 -05:00
|
|
|
, _session_config (&(s->config))
|
2009-05-15 21:22:43 -04:00
|
|
|
{
|
2010-12-01 15:49:22 -05:00
|
|
|
set_session (s);
|
2011-06-01 13:00:29 -04:00
|
|
|
|
2016-12-29 17:18:53 -05:00
|
|
|
set_name ("SessionProperties");
|
2010-06-03 13:09:28 -04:00
|
|
|
|
2010-12-08 12:36:12 -05:00
|
|
|
/* TIMECODE*/
|
2009-05-15 21:22:43 -04:00
|
|
|
|
2010-12-08 12:36:12 -05:00
|
|
|
add_option (_("Timecode"), new OptionEditorHeading (_("Timecode Settings")));
|
|
|
|
|
2009-10-26 22:24:56 -04:00
|
|
|
ComboOption<TimecodeFormat>* smf = new ComboOption<TimecodeFormat> (
|
2009-10-26 10:38:58 -04:00
|
|
|
"timecode-format",
|
2019-04-08 16:24:10 -04:00
|
|
|
_("Timecode frames-per-second"),
|
2009-12-11 18:29:48 -05:00
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_timecode_format),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_timecode_format)
|
2009-05-15 21:22:43 -04:00
|
|
|
);
|
|
|
|
|
2009-10-26 10:38:58 -04:00
|
|
|
smf->add (timecode_23976, _("23.976"));
|
|
|
|
smf->add (timecode_24, _("24"));
|
2012-10-29 13:29:31 -04:00
|
|
|
smf->add (timecode_24976, _("24.975"));
|
2009-10-26 10:38:58 -04:00
|
|
|
smf->add (timecode_25, _("25"));
|
|
|
|
smf->add (timecode_2997, _("29.97"));
|
|
|
|
smf->add (timecode_2997drop, _("29.97 drop"));
|
|
|
|
smf->add (timecode_30, _("30"));
|
|
|
|
smf->add (timecode_30drop, _("30 drop"));
|
|
|
|
smf->add (timecode_5994, _("59.94"));
|
|
|
|
smf->add (timecode_60, _("60"));
|
2009-05-15 21:22:43 -04:00
|
|
|
|
2010-12-08 12:36:12 -05:00
|
|
|
add_option (_("Timecode"), smf);
|
|
|
|
|
2012-11-12 11:49:05 -05:00
|
|
|
_vpu = new ComboOption<float> (
|
2009-05-15 21:53:43 -04:00
|
|
|
"video-pullup",
|
|
|
|
_("Pull-up / pull-down"),
|
2009-12-11 18:29:48 -05:00
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_video_pullup),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_video_pullup)
|
2009-05-15 21:53:43 -04:00
|
|
|
);
|
|
|
|
|
2012-11-12 11:49:05 -05:00
|
|
|
_vpu->add (4.1667 + 0.1, _("4.1667 + 0.1%"));
|
|
|
|
_vpu->add (4.1667, _("4.1667"));
|
|
|
|
_vpu->add (4.1667 - 0.1, _("4.1667 - 0.1%"));
|
|
|
|
_vpu->add (0.1, _("0.1"));
|
|
|
|
_vpu->add (0, _("none"));
|
|
|
|
_vpu->add (-0.1, _("-0.1"));
|
|
|
|
_vpu->add (-4.1667 + 0.1, _("-4.1667 + 0.1%"));
|
|
|
|
_vpu->add (-4.1667, _("-4.1667"));
|
|
|
|
_vpu->add (-4.1667 - 0.1, _("-4.1667 - 0.1%"));
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2012-11-12 11:49:05 -05:00
|
|
|
add_option (_("Timecode"), _vpu);
|
2012-11-13 15:29:28 -05:00
|
|
|
add_option (_("Timecode"), new OptionEditorHeading (_("Ext Timecode Offsets")));
|
|
|
|
|
|
|
|
ClockOption* sco = new ClockOption (
|
|
|
|
"slave-timecode-offset",
|
|
|
|
_("Slave Timecode offset"),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_slave_timecode_offset),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_slave_timecode_offset)
|
2010-12-01 15:49:22 -05:00
|
|
|
);
|
|
|
|
|
2012-11-13 15:29:28 -05:00
|
|
|
sco->set_session (_session);
|
|
|
|
sco->clock().set_negative_allowed (true);
|
2012-11-13 19:15:52 -05:00
|
|
|
Gtkmm2ext::UI::instance()->set_tip (sco->tip_widget(), _("The specified offset is added to the received timecode (MTC or LTC)."));
|
2011-06-01 13:00:29 -04:00
|
|
|
|
2012-11-13 15:29:28 -05:00
|
|
|
add_option (_("Timecode"), sco);
|
2010-12-01 15:49:22 -05:00
|
|
|
|
2012-11-13 15:29:28 -05:00
|
|
|
ClockOption* gco = new ClockOption (
|
|
|
|
"timecode-generator-offset",
|
|
|
|
_("Timecode Generator offset"),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_timecode_generator_offset),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_timecode_generator_offset)
|
|
|
|
);
|
|
|
|
|
|
|
|
gco->set_session (_session);
|
|
|
|
gco->clock().set_negative_allowed (true);
|
2012-11-13 19:15:52 -05:00
|
|
|
Gtkmm2ext::UI::instance()->set_tip (gco->tip_widget(), _("Specify an offset which is added to the generated timecode (so far only LTC)."));
|
2012-11-13 15:29:28 -05:00
|
|
|
|
|
|
|
add_option (_("Timecode"), gco);
|
2010-12-01 15:49:22 -05:00
|
|
|
|
2011-11-11 11:42:38 -05:00
|
|
|
add_option (_("Timecode"), new OptionEditorHeading (_("JACK Transport/Time Settings")));
|
|
|
|
|
|
|
|
add_option (_("Timecode"), new BoolOption (
|
|
|
|
"jack-time-master",
|
2012-02-29 15:18:18 -05:00
|
|
|
string_compose (_("%1 is JACK Time Master (provides Bar|Beat|Tick and other information to JACK)"), PROGRAM_NAME),
|
2011-11-11 11:42:38 -05:00
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_jack_time_master),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_jack_time_master)
|
|
|
|
));
|
|
|
|
|
2016-12-29 17:18:53 -05:00
|
|
|
/* Sync */
|
|
|
|
|
|
|
|
add_option (_("Sync"), new OptionEditorHeading (_("A/V Synchronization")));
|
|
|
|
add_option (_("Sync"), new BoolOption (
|
|
|
|
"use-video-file-fps",
|
|
|
|
_("Use Video File's FPS Instead of Timecode Value for Timeline and Video Monitor."),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_use_video_file_fps),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_use_video_file_fps)
|
|
|
|
));
|
|
|
|
|
|
|
|
add_option (_("Sync"), new BoolOption (
|
|
|
|
"videotimeline-pullup",
|
|
|
|
_("Apply Pull-Up/Down to Video Timeline and Video Monitor (Unless using JACK-sync)."),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_videotimeline_pullup),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_videotimeline_pullup)
|
|
|
|
));
|
|
|
|
|
|
|
|
add_option (_("Sync"), new OptionEditorBlank ());
|
|
|
|
|
2009-11-09 23:30:08 -05:00
|
|
|
/* FADES */
|
|
|
|
|
2016-12-29 17:18:53 -05:00
|
|
|
add_option (_("Fades"), new OptionEditorHeading (_("Audio Fades")));
|
2009-11-09 23:30:08 -05:00
|
|
|
|
2015-09-15 09:01:26 -04:00
|
|
|
add_option (_("Fades"), new BoolOption (
|
|
|
|
"use-transport-fades",
|
|
|
|
_("Declick when transport starts and stops"),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_use_transport_fades),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_use_transport_fades)
|
|
|
|
));
|
|
|
|
|
2015-09-15 16:35:32 -04:00
|
|
|
add_option (_("Fades"), new BoolOption (
|
|
|
|
"use-monitor-fades",
|
|
|
|
_("Declick when monitor state changes"),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_use_monitor_fades),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_use_monitor_fades)
|
|
|
|
));
|
|
|
|
|
2009-11-09 23:30:08 -05:00
|
|
|
add_option (_("Fades"), new BoolOption (
|
|
|
|
"use-region-fades",
|
|
|
|
_("Region fades active"),
|
2009-12-11 18:29:48 -05:00
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_use_region_fades),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_use_region_fades)
|
2009-11-09 23:30:08 -05:00
|
|
|
));
|
|
|
|
|
|
|
|
add_option (_("Fades"), new BoolOption (
|
|
|
|
"show-region-fades",
|
|
|
|
_("Region fades visible"),
|
2009-12-11 18:29:48 -05:00
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_show_region_fades),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_show_region_fades)
|
2009-11-09 23:30:08 -05:00
|
|
|
));
|
|
|
|
|
2010-11-09 01:03:51 -05:00
|
|
|
/* Media */
|
2009-05-15 21:22:43 -04:00
|
|
|
|
2016-12-29 17:18:53 -05:00
|
|
|
add_option (_("Media"), new OptionEditorHeading (_("Audio File Format")));
|
2009-05-15 21:22:43 -04:00
|
|
|
|
2018-11-07 13:53:23 -05:00
|
|
|
_sf = new ComboOption<SampleFormat> (
|
2009-05-15 21:22:43 -04:00
|
|
|
"native-file-data-format",
|
|
|
|
_("Sample format"),
|
2009-12-11 18:29:48 -05:00
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_native_file_data_format),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_native_file_data_format)
|
2009-05-15 21:22:43 -04:00
|
|
|
);
|
2018-11-07 13:53:23 -05:00
|
|
|
add_option (_("Media"), _sf);
|
Fix typos in gtk2_ardour/ directory
Found via `codespell -q 3 -S *.po,./share/patchfiles,./libs -L ba,buss,busses,doubleclick,hsi,ontop,ro,seh,siz,sur,te,trough,ue`
2022-01-26 12:35:38 -05:00
|
|
|
/* refill available sample-formats, depending on file-format */
|
2018-11-07 13:53:23 -05:00
|
|
|
parameter_changed ("native-file-header-format");
|
2009-05-15 21:22:43 -04:00
|
|
|
|
|
|
|
ComboOption<HeaderFormat>* hf = new ComboOption<HeaderFormat> (
|
|
|
|
"native-file-header-format",
|
|
|
|
_("File type"),
|
2009-12-11 18:29:48 -05:00
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_native_file_header_format),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_native_file_header_format)
|
2009-05-15 21:22:43 -04:00
|
|
|
);
|
|
|
|
|
2015-09-08 17:40:18 -04:00
|
|
|
hf->add (BWF, _("Broadcast WAVE (4GB size limit)"));
|
|
|
|
#ifdef HAVE_RF64_RIFF
|
|
|
|
hf->add (MBWF, _("Broadcast RF64"));
|
2015-10-05 10:17:49 -04:00
|
|
|
#endif
|
2015-09-08 17:40:18 -04:00
|
|
|
hf->add (WAVE, _("WAVE (4GB size limit)"));
|
2009-05-15 21:22:43 -04:00
|
|
|
hf->add (WAVE64, _("WAVE-64"));
|
|
|
|
hf->add (CAF, _("CAF"));
|
2015-09-08 17:40:18 -04:00
|
|
|
hf->add (RF64, _("RF64"));
|
|
|
|
#ifdef HAVE_RF64_RIFF
|
|
|
|
hf->add (RF64_WAV, _("RF64 (WAV compatible)"));
|
|
|
|
#endif
|
2018-11-07 13:53:23 -05:00
|
|
|
hf->add (FLAC, _("FLAC"));
|
2009-05-15 21:22:43 -04:00
|
|
|
|
2010-11-09 01:03:51 -05:00
|
|
|
add_option (_("Media"), hf);
|
2011-06-01 13:00:29 -04:00
|
|
|
|
2016-12-29 17:18:53 -05:00
|
|
|
add_option (S_("Files|Locations"), new OptionEditorHeading (_("File Locations")));
|
2010-11-10 09:49:46 -05:00
|
|
|
|
2016-12-29 17:18:53 -05:00
|
|
|
SearchPathOption* spo = new SearchPathOption ("audio-search-path", _("Search for audio files in:"),
|
|
|
|
_session->path(),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_audio_search_path),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_audio_search_path));
|
|
|
|
add_option (S_("Files|Locations"), spo);
|
2010-11-09 01:03:51 -05:00
|
|
|
|
2016-12-29 17:18:53 -05:00
|
|
|
spo = new SearchPathOption ("midi-search-path", _("Search for MIDI files in:"),
|
|
|
|
_session->path(),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_midi_search_path),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_midi_search_path));
|
2010-11-09 01:03:51 -05:00
|
|
|
|
2016-12-29 17:18:53 -05:00
|
|
|
add_option (S_("Files|Locations"), spo);
|
2014-06-26 13:19:18 -04:00
|
|
|
|
|
|
|
/* File Naming */
|
|
|
|
|
|
|
|
add_option (_("Filenames"), new OptionEditorHeading (_("File Naming")));
|
|
|
|
|
|
|
|
BoolOption *bo;
|
|
|
|
|
2014-09-02 10:17:20 -04:00
|
|
|
bo = new RouteDisplayBoolOption (
|
2014-06-26 13:19:18 -04:00
|
|
|
"track-name-number",
|
|
|
|
_("Prefix Track number"),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_track_name_number),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_track_name_number)
|
|
|
|
);
|
|
|
|
Gtkmm2ext::UI::instance()->set_tip (bo->tip_widget(),
|
|
|
|
_("Adds the current track number to the beginning of the recorded file name."));
|
|
|
|
add_option (_("Filenames"), bo);
|
|
|
|
|
|
|
|
bo = new BoolOption (
|
|
|
|
"track-name-take",
|
|
|
|
_("Prefix Take Name"),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_track_name_take),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_track_name_take)
|
|
|
|
);
|
|
|
|
Gtkmm2ext::UI::instance()->set_tip (bo->tip_widget(),
|
|
|
|
_("Adds the Take Name to the beginning of the recorded file name."));
|
|
|
|
add_option (_("Filenames"), bo);
|
|
|
|
|
|
|
|
_take_name = new EntryOption (
|
|
|
|
"take-name",
|
|
|
|
_("Take Name"),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_take_name),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_take_name)
|
|
|
|
);
|
|
|
|
_take_name->set_invalid_chars(".");
|
|
|
|
_take_name->set_sensitive(_session_config->get_track_name_take());
|
|
|
|
|
|
|
|
add_option (_("Filenames"), _take_name);
|
2010-11-09 01:03:51 -05:00
|
|
|
|
2011-11-09 12:29:23 -05:00
|
|
|
/* Monitoring */
|
|
|
|
|
2016-12-29 17:18:53 -05:00
|
|
|
add_option (_("Monitoring"), new OptionEditorHeading (_("Monitoring")));
|
|
|
|
add_option (_("Monitoring"), new BoolOption (
|
|
|
|
"auto-input",
|
|
|
|
_("Track Input Monitoring automatically follows transport state (\"auto-input\")"),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_auto_input),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_auto_input)
|
|
|
|
));
|
|
|
|
|
2022-02-03 19:30:07 -05:00
|
|
|
add_option (_("Monitoring"), new BoolOption (
|
|
|
|
"triggerbox-overrides-disk-monitoring",
|
|
|
|
_("Cues containing clips disables implicit (auto) disk monitoring for the track"),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_triggerbox_overrides_disk_monitoring),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_triggerbox_overrides_disk_monitoring)
|
|
|
|
));
|
|
|
|
|
2018-12-03 19:55:52 -05:00
|
|
|
add_option (_("Monitoring"), new CheckOption (
|
2019-03-01 10:51:08 -05:00
|
|
|
"unused",
|
2016-12-29 17:18:53 -05:00
|
|
|
_("Use monitor section in this session"),
|
2018-12-03 19:55:52 -05:00
|
|
|
ActionManager::get_action(X_("Monitor"), "UseMonitorSection")
|
2016-12-29 17:18:53 -05:00
|
|
|
));
|
|
|
|
|
|
|
|
add_option (_("Monitoring"), new OptionEditorBlank ());
|
2011-11-09 12:29:23 -05:00
|
|
|
|
2014-06-29 08:31:45 -04:00
|
|
|
/* Meterbridge */
|
2020-05-24 13:20:45 -04:00
|
|
|
add_option (_("Meterbridge"), new OptionEditorHeading (_("Display Options")));
|
2013-07-08 21:22:13 -04:00
|
|
|
|
|
|
|
add_option (_("Meterbridge"), new BoolOption (
|
2013-07-05 14:55:55 -04:00
|
|
|
"show-midi-on-meterbridge",
|
2013-07-08 21:36:06 -04:00
|
|
|
_("Show Midi Tracks"),
|
2013-07-05 14:55:55 -04:00
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_show_midi_on_meterbridge),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_show_midi_on_meterbridge)
|
|
|
|
));
|
|
|
|
|
2013-07-08 21:22:13 -04:00
|
|
|
add_option (_("Meterbridge"), new BoolOption (
|
2013-07-05 14:55:55 -04:00
|
|
|
"show-busses-on-meterbridge",
|
2013-07-08 21:36:06 -04:00
|
|
|
_("Show Busses"),
|
2013-07-05 14:55:55 -04:00
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_show_busses_on_meterbridge),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_show_busses_on_meterbridge)
|
|
|
|
));
|
|
|
|
|
2013-07-08 21:22:13 -04:00
|
|
|
add_option (_("Meterbridge"), new BoolOption (
|
2013-07-05 14:55:55 -04:00
|
|
|
"show-master-on-meterbridge",
|
2013-07-08 21:36:06 -04:00
|
|
|
_("Include Master Bus"),
|
2013-07-05 14:55:55 -04:00
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_show_master_on_meterbridge),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_show_master_on_meterbridge)
|
2013-06-28 16:48:43 -04:00
|
|
|
));
|
|
|
|
|
2013-07-08 21:36:06 -04:00
|
|
|
add_option (_("Meterbridge"), new OptionEditorHeading (_("Button Area")));
|
|
|
|
|
2013-07-08 21:22:13 -04:00
|
|
|
add_option (_("Meterbridge"), new BoolOption (
|
2013-07-08 17:56:03 -04:00
|
|
|
"show-rec-on-meterbridge",
|
2013-07-08 21:36:06 -04:00
|
|
|
_("Rec-enable Button"),
|
2013-07-08 17:56:03 -04:00
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_show_rec_on_meterbridge),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_show_rec_on_meterbridge)
|
|
|
|
));
|
|
|
|
|
2013-07-08 21:22:13 -04:00
|
|
|
add_option (_("Meterbridge"), new BoolOption (
|
2013-07-08 17:56:03 -04:00
|
|
|
"show-mute-on-meterbridge",
|
2013-07-08 21:36:06 -04:00
|
|
|
_("Mute Button"),
|
2013-07-08 17:56:03 -04:00
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_show_mute_on_meterbridge),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_show_mute_on_meterbridge)
|
|
|
|
));
|
|
|
|
|
2013-07-08 21:22:13 -04:00
|
|
|
add_option (_("Meterbridge"), new BoolOption (
|
2013-07-08 17:56:03 -04:00
|
|
|
"show-solo-on-meterbridge",
|
2013-07-08 21:36:06 -04:00
|
|
|
_("Solo Button"),
|
2013-07-08 17:56:03 -04:00
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_show_solo_on_meterbridge),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_show_solo_on_meterbridge)
|
|
|
|
));
|
|
|
|
|
2013-11-09 07:16:08 -05:00
|
|
|
add_option (_("Meterbridge"), new BoolOption (
|
|
|
|
"show-monitor-on-meterbridge",
|
|
|
|
_("Monitor Buttons"),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_show_monitor_on_meterbridge),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_show_monitor_on_meterbridge)
|
|
|
|
));
|
|
|
|
|
2021-12-07 10:56:28 -05:00
|
|
|
add_option (_("Meterbridge"), new BoolOption (
|
|
|
|
"show-fader-on-meterbridge",
|
|
|
|
_("Fader as Gain Knob"),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_show_fader_on_meterbridge),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_show_fader_on_meterbridge)
|
|
|
|
));
|
|
|
|
|
2013-07-08 21:36:06 -04:00
|
|
|
add_option (_("Meterbridge"), new OptionEditorHeading (_("Name Labels")));
|
|
|
|
|
|
|
|
add_option (_("Meterbridge"), new BoolOption (
|
|
|
|
"show-name-on-meterbridge",
|
|
|
|
_("Track Name"),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_show_name_on_meterbridge),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_show_name_on_meterbridge)
|
|
|
|
));
|
|
|
|
|
2016-12-29 17:18:53 -05:00
|
|
|
add_option (_("Meterbridge"), new OptionEditorBlank ());
|
|
|
|
|
2023-07-21 13:23:02 -04:00
|
|
|
/* MIDI */
|
2014-06-29 08:31:45 -04:00
|
|
|
|
2023-07-21 13:23:02 -04:00
|
|
|
add_option (_("MIDI"), new OptionEditorHeading (_("MIDI Options")));
|
2014-06-29 08:31:45 -04:00
|
|
|
|
2023-07-21 13:23:02 -04:00
|
|
|
add_option (_("MIDI"), new BoolOption (
|
2022-09-19 17:40:58 -04:00
|
|
|
"draw-opaque-midi-regions",
|
|
|
|
_("Draw tool creates opaque MIDI regions"),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_draw_opaque_midi_regions),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_draw_opaque_midi_regions)
|
|
|
|
));
|
|
|
|
|
2023-07-21 13:23:02 -04:00
|
|
|
add_option (_("MIDI"), new BoolOption (
|
2014-06-29 08:31:45 -04:00
|
|
|
"midi-copy-is-fork",
|
|
|
|
_("MIDI region copies are independent"),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_midi_copy_is_fork),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_midi_copy_is_fork)
|
|
|
|
));
|
|
|
|
|
|
|
|
ComboOption<InsertMergePolicy>* li = new ComboOption<InsertMergePolicy> (
|
|
|
|
"insert-merge-policy",
|
|
|
|
_("Policy for handling overlapping notes\n on the same MIDI channel"),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_insert_merge_policy),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_insert_merge_policy)
|
|
|
|
);
|
|
|
|
|
|
|
|
li->add (InsertMergeReject, _("never allow them"));
|
|
|
|
li->add (InsertMergeRelax, _("don't do anything in particular"));
|
|
|
|
li->add (InsertMergeReplace, _("replace any overlapped existing note"));
|
|
|
|
li->add (InsertMergeTruncateExisting, _("shorten the overlapped existing note"));
|
|
|
|
li->add (InsertMergeTruncateAddition, _("shorten the overlapping new note"));
|
|
|
|
li->add (InsertMergeExtend, _("replace both overlapping notes with a single note"));
|
|
|
|
|
2023-07-21 13:23:02 -04:00
|
|
|
add_option (_("MIDI"), li);
|
2014-06-29 08:31:45 -04:00
|
|
|
|
2023-07-21 13:23:02 -04:00
|
|
|
/* Misc */
|
2014-06-29 08:31:45 -04:00
|
|
|
|
2023-07-21 13:23:02 -04:00
|
|
|
add_option (_("Misc"), new OptionEditorHeading (_("Miscellaneous Options")));
|
2014-06-29 08:31:45 -04:00
|
|
|
|
2023-07-21 13:23:02 -04:00
|
|
|
|
|
|
|
ComboOption<Temporal::TimeDomain>* tdo = new ComboOption<Temporal::TimeDomain> (
|
|
|
|
"default-time-domain",
|
|
|
|
_("Default time domain"),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_default_time_domain),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_default_time_domain)
|
|
|
|
);
|
|
|
|
|
|
|
|
tdo->add (Temporal::AudioTime, _("Audio (wallclock) time"));
|
|
|
|
tdo->add (Temporal::BeatTime, _("Musical (beats) time"));
|
|
|
|
add_option (_("Misc"), tdo);
|
2014-06-29 08:31:45 -04:00
|
|
|
|
2023-07-22 11:21:07 -04:00
|
|
|
#if 0
|
|
|
|
/* We cannot expose this option until it is possible (and sane) to
|
|
|
|
* allow MIDI tracks to use audio time and audio tracks to use music time.
|
|
|
|
*/
|
2023-07-22 09:51:09 -04:00
|
|
|
bo = new BoolOption (
|
|
|
|
"tracks-follow-session-time",
|
|
|
|
_("New tracks and busses use session time"),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_tracks_follow_session_time),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_tracks_follow_session_time)
|
|
|
|
);
|
|
|
|
|
|
|
|
Gtkmm2ext::UI::instance()->set_tip (bo->tip_widget(),
|
|
|
|
_("When enabled, new tracks and busses will use the current session default time domain.\n\n"
|
|
|
|
"When disabled, new tracks and busses will use their primary data type to choose their time domain\n"
|
|
|
|
"The time domain will determine what units are used for region and automation timing,\n"
|
|
|
|
"which in turn will affect whether they will change to follow tempo map edits."));
|
|
|
|
add_option (_("Misc"), bo);
|
2023-07-22 11:21:07 -04:00
|
|
|
#endif
|
2023-07-22 09:51:09 -04:00
|
|
|
|
2017-01-17 14:44:50 -05:00
|
|
|
add_option (_("Misc"), new OptionEditorHeading (_("Metronome")));
|
|
|
|
|
|
|
|
add_option (_("Misc"), new BoolOption (
|
|
|
|
"count-in",
|
2017-02-13 17:00:56 -05:00
|
|
|
_("Always count-in when recording"),
|
2017-01-17 14:44:50 -05:00
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_count_in),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_count_in)
|
|
|
|
));
|
|
|
|
|
2024-06-08 17:55:41 -04:00
|
|
|
add_option (_("Misc"), new OptionEditorHeading (_("Project Banner")));
|
|
|
|
|
|
|
|
add_option (_("Misc"), new BoolOption (
|
|
|
|
"show-master-bus-comment-on-load",
|
2024-06-10 13:52:49 -04:00
|
|
|
_("Show master bus comment window on session load"),
|
2024-06-08 17:55:41 -04:00
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_show_master_bus_comment_on_load),
|
|
|
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_show_master_bus_comment_on_load)
|
|
|
|
));
|
|
|
|
|
2014-06-29 08:31:45 -04:00
|
|
|
add_option (_("Misc"), new OptionEditorHeading (_("Defaults")));
|
|
|
|
|
|
|
|
Gtk::Button* btn = Gtk::manage (new Gtk::Button (_("Use these settings as defaults")));
|
|
|
|
btn->signal_clicked().connect (sigc::mem_fun (*this, &SessionOptionEditor::save_defaults));
|
|
|
|
add_option (_("Misc"), new FooOption (btn));
|
|
|
|
|
2016-12-29 15:39:03 -05:00
|
|
|
set_current_page (_("Timecode"));
|
2023-01-22 19:40:35 -05:00
|
|
|
|
|
|
|
/* Place the search entry */
|
|
|
|
|
|
|
|
vpacker.pack_end (search_packer, false, false);
|
2024-02-14 11:22:56 -05:00
|
|
|
|
|
|
|
/* Connect metadata */
|
|
|
|
|
|
|
|
for (auto p : pages()) {
|
|
|
|
for (auto oc : p.second->components) {
|
|
|
|
Option* o = dynamic_cast<Option*> (oc);
|
|
|
|
if (o) {
|
|
|
|
PBD::Configuration::Metadata const * m = PBD::Configuration::get_metadata (o->id());
|
|
|
|
if (m) {
|
|
|
|
oc->set_metadata (*m);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2009-05-15 21:22:43 -04:00
|
|
|
}
|
2009-11-09 15:05:18 -05:00
|
|
|
|
2009-11-09 23:30:08 -05:00
|
|
|
void
|
2011-01-04 15:52:30 -05:00
|
|
|
SessionOptionEditor::parameter_changed (std::string const & p)
|
2009-11-09 23:30:08 -05:00
|
|
|
{
|
2011-01-04 15:52:30 -05:00
|
|
|
OptionEditor::parameter_changed (p);
|
2012-11-12 11:49:05 -05:00
|
|
|
if (p == "external-sync") {
|
2018-10-05 12:35:13 -04:00
|
|
|
if (TransportMasterManager::instance().current()->type() == Engine) {
|
2012-11-12 11:49:05 -05:00
|
|
|
_vpu->set_sensitive(!_session_config->get_external_sync());
|
|
|
|
} else {
|
|
|
|
_vpu->set_sensitive(true);
|
|
|
|
}
|
|
|
|
}
|
2014-06-26 13:19:18 -04:00
|
|
|
else if (p == "timecode-format") {
|
2012-11-13 15:29:28 -05:00
|
|
|
/* update offset clocks */
|
|
|
|
parameter_changed("timecode-generator-offset");
|
|
|
|
parameter_changed("slave-timecode-offset");
|
|
|
|
}
|
2014-06-26 13:19:18 -04:00
|
|
|
else if (p == "track-name-take") {
|
|
|
|
_take_name->set_sensitive(_session_config->get_track_name_take());
|
|
|
|
}
|
2018-11-07 13:53:23 -05:00
|
|
|
else if (p == "native-file-header-format") {
|
|
|
|
bool need_refill = true;
|
|
|
|
_sf->clear ();
|
|
|
|
if (_session_config->get_native_file_header_format() == FLAC) {
|
|
|
|
_sf->add (FormatInt24, _("24-bit integer"));
|
|
|
|
_sf->add (FormatInt16, _("16-bit integer"));
|
|
|
|
if (_session_config->get_native_file_data_format() == FormatFloat) {
|
|
|
|
_session_config->set_native_file_data_format (FormatInt24);
|
|
|
|
need_refill = false;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
_sf->add (FormatFloat, _("32-bit floating point"));
|
|
|
|
_sf->add (FormatInt24, _("24-bit integer"));
|
|
|
|
_sf->add (FormatInt16, _("16-bit integer"));
|
|
|
|
}
|
|
|
|
if (need_refill) {
|
|
|
|
parameter_changed ("native-file-data-format");
|
|
|
|
}
|
|
|
|
}
|
2009-11-09 23:30:08 -05:00
|
|
|
}
|
2012-01-17 20:30:44 -05:00
|
|
|
|
2014-06-29 09:45:55 -04:00
|
|
|
void
|
|
|
|
SessionOptionEditor::save_defaults ()
|
|
|
|
{
|
|
|
|
_session->save_default_options();
|
|
|
|
}
|