From f78913cc99ffd13001b4c4daf625391be77e79d0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 27 Apr 2012 20:57:48 +0000 Subject: Crossfades: default xfades are now constant-power, -3dB rule, other options are constant power(-6dB) rule or use existing region fade shape as is; provide GUI control over options; fix some inconsistent behaviour regarding xfades when relayering git-svn-id: svn://localhost/ardour2/branches/3.0@12113 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/session_option_editor.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/session_option_editor.cc b/gtk2_ardour/session_option_editor.cc index 62d555c13d..fe9e06c3a3 100644 --- a/gtk2_ardour/session_option_editor.cc +++ b/gtk2_ardour/session_option_editor.cc @@ -154,6 +154,19 @@ SessionOptionEditor::SessionOptionEditor (Session* s) add_option (_("Fades"), cfm); + ComboOption* cfc = new ComboOption ( + "xfade-choice", + _("Crossfade Type"), + sigc::mem_fun (*_session_config, &SessionConfiguration::get_xfade_choice), + sigc::mem_fun (*_session_config, &SessionConfiguration::set_xfade_choice) + ); + + cfc->add (ConstantPowerMinus3dB, _("Constant Power (-3dB)")); + cfc->add (ConstantPowerMinus6dB, _("Constant Power (-6dB)")); + cfc->add (RegionFades, _("Use existing Region fade shape")); + + add_option (_("Fades"), cfc); + add_option (_("Fades"), new SpinOption ( _("short-xfade-seconds"), _("Short crossfade length"), -- cgit v1.2.3