ardour.git
16 years agomerge from 2.0-ongoing by hand, minus key binding editor
Paul Davis [Thu, 11 Oct 2007 22:07:47 +0000 (22:07 +0000)]
merge from 2.0-ongoing by hand, minus key binding editor

git-svn-id: svn://localhost/ardour2/trunk@2539 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoNew matrix-style IO selector dialogue. Should allow you to do the same things as...
Carl Hetherington [Wed, 10 Oct 2007 18:37:13 +0000 (18:37 +0000)]
New matrix-style IO selector dialogue.  Should allow you to do the same things as the old one did, but certainly a work in progress.

git-svn-id: svn://localhost/ardour2/trunk@2538 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoMake sure we notice when an IO's port count is reduced as well as when it's increased...
Carl Hetherington [Wed, 10 Oct 2007 14:49:25 +0000 (14:49 +0000)]
Make sure we notice when an IO's port count is reduced as well as when it's increased.  Fixes an assertion failure when removing a port from an IO with 3 existing ports.

git-svn-id: svn://localhost/ardour2/trunk@2537 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoMake theme manager dialog's title similar in style to the others on the same menu.
Carl Hetherington [Wed, 10 Oct 2007 01:24:04 +0000 (01:24 +0000)]
Make theme manager dialog's title similar in style to the others on the same menu.

git-svn-id: svn://localhost/ardour2/trunk@2535 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoA couple of capitalisation and space fixes for the main menu.
Carl Hetherington [Wed, 10 Oct 2007 00:15:41 +0000 (00:15 +0000)]
A couple of capitalisation and space fixes for the main menu.

git-svn-id: svn://localhost/ardour2/trunk@2534 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoRemove a file that should have been removed a few commits ago.
Carl Hetherington [Tue, 9 Oct 2007 23:41:05 +0000 (23:41 +0000)]
Remove a file that should have been removed a few commits ago.

git-svn-id: svn://localhost/ardour2/trunk@2533 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoFew cleanups related to signed-ness of minimum/maximum port counts.
Carl Hetherington [Tue, 9 Oct 2007 23:04:53 +0000 (23:04 +0000)]
Few cleanups related to signed-ness of minimum/maximum port counts.

git-svn-id: svn://localhost/ardour2/trunk@2532 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoVarious work on Bundles, especially dynamic ones so that you can, for example, pass...
Carl Hetherington [Mon, 8 Oct 2007 23:47:35 +0000 (23:47 +0000)]
Various work on Bundles, especially dynamic ones so that you can, for example, pass tracks to busses by selecting the buss name from the track's output menu.

git-svn-id: svn://localhost/ardour2/trunk@2530 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoRe-work edit group selection in line with suggestions from Paul.
Carl Hetherington [Sun, 7 Oct 2007 15:51:14 +0000 (15:51 +0000)]
Re-work edit group selection in line with suggestions from Paul.

git-svn-id: svn://localhost/ardour2/trunk@2529 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoFix several MIDI timestamp related problems:
David Robillard [Sun, 7 Oct 2007 07:20:09 +0000 (07:20 +0000)]
Fix several MIDI timestamp related problems:
Fix recording MIDI regions that start at t != 0.
Fix display of MIDI events in regions that start at t != 0.
Fix recording after relocating an already rec-armed MIDI track.

git-svn-id: svn://localhost/ardour2/trunk@2528 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoMake edit groups effective with lassoo selections.
Carl Hetherington [Sat, 6 Oct 2007 18:39:44 +0000 (18:39 +0000)]
Make edit groups effective with lassoo selections.

git-svn-id: svn://localhost/ardour2/trunk@2526 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoMake split region work across edit groups even if the region is not selected when...
Carl Hetherington [Sat, 6 Oct 2007 17:33:40 +0000 (17:33 +0000)]
Make split region work across edit groups even if the region is not selected when the split occurs.

git-svn-id: svn://localhost/ardour2/trunk@2525 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoAdd some comments to the RegionSelection class.
Carl Hetherington [Sat, 6 Oct 2007 17:27:07 +0000 (17:27 +0000)]
Add some comments to the RegionSelection class.

git-svn-id: svn://localhost/ardour2/trunk@2524 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoFix things so that selecting a region always selects equivalent regions in the same...
Carl Hetherington [Sat, 6 Oct 2007 16:24:08 +0000 (16:24 +0000)]
Fix things so that selecting a region always selects equivalent regions in the same edit group, even if the appropriate tracks aren't selected at the time.

git-svn-id: svn://localhost/ardour2/trunk@2523 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoFix crash with tracks/busses with more outputs than control outputs.
Sampo Savolainen [Fri, 5 Oct 2007 21:48:22 +0000 (21:48 +0000)]
Fix crash with tracks/busses with more outputs than control outputs.

git-svn-id: svn://localhost/ardour2/trunk@2521 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoAdd a label to the add midi port button in the options editor. Give the Add MIDI...
Carl Hetherington [Fri, 5 Oct 2007 12:23:17 +0000 (12:23 +0000)]
Add a label to the add midi port button in the options editor.  Give the Add MIDI port dialog a slightly friendlier name.

git-svn-id: svn://localhost/ardour2/trunk@2515 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoFix to stacked layering for the case when a region is dragged to overlap another...
Carl Hetherington [Thu, 4 Oct 2007 16:26:02 +0000 (16:26 +0000)]
Fix to stacked layering for the case when a region is dragged to overlap another.  Remove unused signal LayeringChanged from Playlist.  Cleanups in AudioRegion, and ensure that region envelopes cannot become empty when regions are split (and maybe in some other cases too).  Empty envelopes cause crashes when e.g. AutomationList::truncate_at_start() is called.

git-svn-id: svn://localhost/ardour2/trunk@2513 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoMerge the two separate 'add notes to midi region' interfaces (note and midievent).
David Robillard [Thu, 4 Oct 2007 05:15:28 +0000 (05:15 +0000)]
Merge the two separate 'add notes to midi region' interfaces (note and midievent).
Update note range dynamically while recording to fit incoming notes.

git-svn-id: svn://localhost/ardour2/trunk@2512 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoMake hide all automation work again.
Carl Hetherington [Tue, 2 Oct 2007 16:37:26 +0000 (16:37 +0000)]
Make hide all automation work again.

git-svn-id: svn://localhost/ardour2/trunk@2507 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoPrevent plugins appearing twice on the automation submenu.
Carl Hetherington [Mon, 1 Oct 2007 17:19:09 +0000 (17:19 +0000)]
Prevent plugins appearing twice on the automation submenu.

git-svn-id: svn://localhost/ardour2/trunk@2505 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoRemove some apparently out-of-date code which was causing a segfault on show all...
Carl Hetherington [Mon, 1 Oct 2007 17:18:04 +0000 (17:18 +0000)]
Remove some apparently out-of-date code which was causing a segfault on show all automation.

git-svn-id: svn://localhost/ardour2/trunk@2504 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoMake sure plugins are activated at least once before they are cleaned up
Sampo Savolainen [Thu, 27 Sep 2007 19:05:27 +0000 (19:05 +0000)]
Make sure plugins are activated at least once before they are cleaned up

git-svn-id: svn://localhost/ardour2/trunk@2495 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoMake sure activate() and deactivate() are never run multiple times in a
Sampo Savolainen [Tue, 25 Sep 2007 17:56:39 +0000 (17:56 +0000)]
Make sure activate() and deactivate() are never run multiple times in a
row. Make cleanup work nicely

git-svn-id: svn://localhost/ardour2/trunk@2485 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoFix for incorrect directory being chosen in which to create session directory when...
Tim Mayberry [Wed, 19 Sep 2007 02:41:31 +0000 (02:41 +0000)]
Fix for incorrect directory being chosen in which to create session directory when manually entering directory in file chooser.

Fixes bug 1852 for the trunk, similar fix has already been applied to 2.0-ongoing

git-svn-id: svn://localhost/ardour2/trunk@2471 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoFix GTK warning.
Carl Hetherington [Thu, 13 Sep 2007 14:48:00 +0000 (14:48 +0000)]
Fix GTK warning.

git-svn-id: svn://localhost/ardour2/trunk@2464 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoclick reset error fixed, plus some older work on sends+panners i/o counts
Paul Davis [Tue, 11 Sep 2007 11:27:59 +0000 (11:27 +0000)]
click reset error fixed, plus some older work on sends+panners i/o counts

git-svn-id: svn://localhost/ardour2/trunk@2456 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agomake sure that AudioRegion::set_live_state() notifies interested parties when normali...
Paul Davis [Tue, 11 Sep 2007 11:26:39 +0000 (11:26 +0000)]
make sure that AudioRegion::set_live_state() notifies interested parties when normalization gain changes

git-svn-id: svn://localhost/ardour2/trunk@2455 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agomake OSC thread register with GUI
Paul Davis [Tue, 11 Sep 2007 10:43:55 +0000 (10:43 +0000)]
make OSC thread register with GUI

git-svn-id: svn://localhost/ardour2/trunk@2453 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoAlways show CC region, whether empty or not (ie whether MidiModel contains any events...
David Robillard [Tue, 11 Sep 2007 03:14:32 +0000 (03:14 +0000)]
Always show CC region, whether empty or not (ie whether MidiModel contains any events for that CC or not).  Can't add events though... yet....

git-svn-id: svn://localhost/ardour2/trunk@2451 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoFix note range menu item initial value (it probably should be saved and restored...
David Robillard [Tue, 11 Sep 2007 02:24:54 +0000 (02:24 +0000)]
Fix note range menu item initial value (it probably should be saved and restored though...).

git-svn-id: svn://localhost/ardour2/trunk@2449 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoFix crash on playhead relocate in MIDI regions w/o CC data.
David Robillard [Mon, 10 Sep 2007 22:48:08 +0000 (22:48 +0000)]
Fix crash on playhead relocate in MIDI regions w/o CC data.

git-svn-id: svn://localhost/ardour2/trunk@2448 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoFix note separator lines adaptation to changing track height.
David Robillard [Mon, 10 Sep 2007 22:25:22 +0000 (22:25 +0000)]
Fix note separator lines adaptation to changing track height.

git-svn-id: svn://localhost/ardour2/trunk@2447 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoAvoid dereferencing invalidated iterator when removing selected regions. Fixes bug...
Tim Mayberry [Mon, 10 Sep 2007 00:06:58 +0000 (00:06 +0000)]
Avoid dereferencing invalidated iterator when removing selected regions. Fixes bug 1703.

git-svn-id: svn://localhost/ardour2/trunk@2443 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoFix a misdefinition in ardour/recent_sessions.h
Tim Mayberry [Sun, 9 Sep 2007 10:05:21 +0000 (10:05 +0000)]
Fix a misdefinition in ardour/recent_sessions.h

git-svn-id: svn://localhost/ardour2/trunk@2436 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoIf sys::copy_file fails, try and remove the target file before throwing an exception
Tim Mayberry [Sun, 9 Sep 2007 10:05:16 +0000 (10:05 +0000)]
If sys::copy_file fails, try and remove the target file before throwing an exception

git-svn-id: svn://localhost/ardour2/trunk@2435 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse sys::path and sys::rename in Session::rename_state for portability
Tim Mayberry [Sun, 9 Sep 2007 10:05:13 +0000 (10:05 +0000)]
Use sys::path and sys::rename in Session::rename_state for portability

git-svn-id: svn://localhost/ardour2/trunk@2434 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoModify Session::load_history for portability
Tim Mayberry [Sun, 9 Sep 2007 10:05:06 +0000 (10:05 +0000)]
Modify Session::load_history for portability

git-svn-id: svn://localhost/ardour2/trunk@2433 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoModify Session::save_history for portability
Tim Mayberry [Sun, 9 Sep 2007 10:04:58 +0000 (10:04 +0000)]
Modify Session::save_history for portability

git-svn-id: svn://localhost/ardour2/trunk@2432 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoAdd function sys::rename to pbd/filesystem.h/cc. Renames a file, uses g_rename.
Tim Mayberry [Sun, 9 Sep 2007 10:04:54 +0000 (10:04 +0000)]
Add function sys::rename to pbd/filesystem.h/cc. Renames a file, uses g_rename.

git-svn-id: svn://localhost/ardour2/trunk@2431 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoAdd history_suffix to ardour/filename_extensions.cc
Tim Mayberry [Sun, 9 Sep 2007 10:04:47 +0000 (10:04 +0000)]
Add history_suffix to ardour/filename_extensions.cc

git-svn-id: svn://localhost/ardour2/trunk@2430 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse std::transform with sys::basename in ARDOUR::get_file_names_no_extension
Tim Mayberry [Sun, 9 Sep 2007 10:04:43 +0000 (10:04 +0000)]
Use std::transform with sys::basename in ARDOUR::get_file_names_no_extension

git-svn-id: svn://localhost/ardour2/trunk@2429 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoFix automation region stacking.
David Robillard [Thu, 6 Sep 2007 03:38:28 +0000 (03:38 +0000)]
Fix automation region stacking.

git-svn-id: svn://localhost/ardour2/trunk@2425 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoDeep "automation regions" support.
David Robillard [Thu, 6 Sep 2007 02:30:39 +0000 (02:30 +0000)]
Deep "automation regions" support.
Fix zoom/height/etc changing for automation region views.
Broke smooth automation region dragging (make omelette, break eggs, etc).

git-svn-id: svn://localhost/ardour2/trunk@2424 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agodont fill the initial gm rec, since it gets overdrawn by the metrics pixmap anyway
Doug McLain [Wed, 5 Sep 2007 20:09:35 +0000 (20:09 +0000)]
dont fill the initial gm rec, since it gets overdrawn by the metrics pixmap anyway

git-svn-id: svn://localhost/ardour2/trunk@2421 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoFix opening session when manually entering path in the file chooser. Fixes bug 1853.
Tim Mayberry [Wed, 5 Sep 2007 02:18:49 +0000 (02:18 +0000)]
Fix opening session when manually entering path in the file chooser. Fixes bug 1853.

git-svn-id: svn://localhost/ardour2/trunk@2419 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoFix source directory paths so that the session name element is "legalized" and compat...
Tim Mayberry [Wed, 5 Sep 2007 01:53:51 +0000 (01:53 +0000)]
Fix source directory paths so that the session name element is "legalized" and compatible with 2.0

Fixes bug 1854.

git-svn-id: svn://localhost/ardour2/trunk@2418 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoRemove unused header includes from ardour/session_directory.cc
Tim Mayberry [Tue, 4 Sep 2007 09:01:37 +0000 (09:01 +0000)]
Remove unused header includes from ardour/session_directory.cc

git-svn-id: svn://localhost/ardour2/trunk@2414 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse PBD::sys::operator/ instead of PBD::sys::path::operator/= in ARDOUR::SessionDirectory
Tim Mayberry [Tue, 4 Sep 2007 09:01:35 +0000 (09:01 +0000)]
Use PBD::sys::operator/ instead of PBD::sys::path::operator/= in ARDOUR::SessionDirectory

git-svn-id: svn://localhost/ardour2/trunk@2413 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoAdd PBD::sys::operator/ to pbd/filesystem for convenient path building
Tim Mayberry [Tue, 4 Sep 2007 09:01:32 +0000 (09:01 +0000)]
Add PBD::sys::operator/ to pbd/filesystem for convenient path building

git-svn-id: svn://localhost/ardour2/trunk@2412 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse sys::remove instead of ::unlink in Session::remove_empty_sounds for portability
Tim Mayberry [Tue, 4 Sep 2007 09:01:31 +0000 (09:01 +0000)]
Use sys::remove instead of ::unlink in Session::remove_empty_sounds for portability

git-svn-id: svn://localhost/ardour2/trunk@2411 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoAdd ARDOUR::TapeFileMatcher class for matching filenames and use it in Session::remov...
Tim Mayberry [Tue, 4 Sep 2007 09:01:28 +0000 (09:01 +0000)]
Add ARDOUR::TapeFileMatcher class for matching filenames and use it in Session::remove_empty_sounds

git-svn-id: svn://localhost/ardour2/trunk@2410 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse PBD::get_files_in_directory instead of PBD::Scanner in Session::remove_empty_sounds
Tim Mayberry [Tue, 4 Sep 2007 09:01:25 +0000 (09:01 +0000)]
Use PBD::get_files_in_directory instead of PBD::Scanner in Session::remove_empty_sounds

git-svn-id: svn://localhost/ardour2/trunk@2409 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse path::leaf instead of sys::basename in SessionDirectory::sound/midi_path
Tim Mayberry [Tue, 4 Sep 2007 09:01:22 +0000 (09:01 +0000)]
Use path::leaf instead of sys::basename in SessionDirectory::sound/midi_path

sys::basename now matches boost::filesystem behaviour so if a session name
had a dot in it the session name used in the interchange directory would be
truncated.

git-svn-id: svn://localhost/ardour2/trunk@2408 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse path::leaf in sys::basename and sys::extension
Tim Mayberry [Tue, 4 Sep 2007 09:01:21 +0000 (09:01 +0000)]
Use path::leaf in sys::basename and sys::extension

git-svn-id: svn://localhost/ardour2/trunk@2407 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoAdd path::leaf method function to the PBD::sys::path class
Tim Mayberry [Tue, 4 Sep 2007 09:01:19 +0000 (09:01 +0000)]
Add path::leaf method function to the PBD::sys::path class

git-svn-id: svn://localhost/ardour2/trunk@2406 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoAdd PBD::sys::extension for getting the filename extension of a file
Tim Mayberry [Tue, 4 Sep 2007 09:01:17 +0000 (09:01 +0000)]
Add PBD::sys::extension for getting the filename extension of a file

git-svn-id: svn://localhost/ardour2/trunk@2405 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoModify PBD::sys::basename to match boost::filesystem behaviour and document it.
Tim Mayberry [Tue, 4 Sep 2007 09:01:15 +0000 (09:01 +0000)]
Modify PBD::sys::basename to match boost::filesystem behaviour and document it.

This makes this function equivalent to PBD::basename_nosuffix, sys::basename
takes a path as an argument rather than a string but that is ok as a path can
automatically constructed from a string.

git-svn-id: svn://localhost/ardour2/trunk@2404 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoAdd path::branch_path to the PBD::sys::path class
Tim Mayberry [Tue, 4 Sep 2007 09:01:12 +0000 (09:01 +0000)]
Add path::branch_path to the PBD::sys::path class

This is basically equivalent to Glib::path_get_dirname but returning an
empty string(path) if a path doesn't contain any directory components rather
than "."

git-svn-id: svn://localhost/ardour2/trunk@2403 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoFix to avoid overwriting the backup file of a 0.99 session when opening a session
Tim Mayberry [Tue, 4 Sep 2007 09:01:09 +0000 (09:01 +0000)]
Fix to avoid overwriting the backup file of a 0.99 session when opening a session

This is equivalent to the fix applied as rev 2244 to the 2.0-ongoing branch

git-svn-id: svn://localhost/ardour2/trunk@2402 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoAdd some documentation regarding the PBD::sys namespace and my justifications for...
Tim Mayberry [Tue, 4 Sep 2007 07:15:19 +0000 (07:15 +0000)]
Add some documentation regarding the PBD::sys namespace and my justifications for writing that code

git-svn-id: svn://localhost/ardour2/trunk@2401 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoChange the SessionDirectory constructor to take a sys::path instead of a string
Tim Mayberry [Tue, 4 Sep 2007 07:15:17 +0000 (07:15 +0000)]
Change the SessionDirectory constructor to take a sys::path instead of a string

git-svn-id: svn://localhost/ardour2/trunk@2400 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse sys::exists instead of g_file_test in session.cc
Tim Mayberry [Tue, 4 Sep 2007 07:15:01 +0000 (07:15 +0000)]
Use sys::exists instead of g_file_test in session.cc

git-svn-id: svn://localhost/ardour2/trunk@2399 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoRemove unused utility function elapsed_time_to_str
Tim Mayberry [Tue, 4 Sep 2007 07:14:58 +0000 (07:14 +0000)]
Remove unused utility function elapsed_time_to_str

git-svn-id: svn://localhost/ardour2/trunk@2398 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoRemove declaration of unused and undefined method in Session class
Tim Mayberry [Tue, 4 Sep 2007 07:14:50 +0000 (07:14 +0000)]
Remove declaration of unused and undefined method in Session class

git-svn-id: svn://localhost/ardour2/trunk@2397 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse Session::_session_dir instead of Session::_path when calling Session::setup_raid_...
Tim Mayberry [Tue, 4 Sep 2007 06:05:26 +0000 (06:05 +0000)]
Use Session::_session_dir instead of Session::_path when calling Session::setup_raid_path in Session::set_state

git-svn-id: svn://localhost/ardour2/trunk@2396 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse PBD::find_file_in_search_path instead of PathScanner in ARDOUR_UI::install_action...
Tim Mayberry [Tue, 4 Sep 2007 06:05:23 +0000 (06:05 +0000)]
Use PBD::find_file_in_search_path instead of PathScanner in ARDOUR_UI::install_actions to test for AniComp

git-svn-id: svn://localhost/ardour2/trunk@2395 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoRemove inclusion of unused header file
Tim Mayberry [Tue, 4 Sep 2007 06:05:21 +0000 (06:05 +0000)]
Remove inclusion of unused header file

git-svn-id: svn://localhost/ardour2/trunk@2394 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoRemove inclusion of unused header file
Tim Mayberry [Tue, 4 Sep 2007 06:05:19 +0000 (06:05 +0000)]
Remove inclusion of unused header file

git-svn-id: svn://localhost/ardour2/trunk@2393 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoRemove unused constant max_layer, which is also incorrectly defined as UCHAR_MAX...
Tim Mayberry [Tue, 4 Sep 2007 06:05:17 +0000 (06:05 +0000)]
Remove unused constant max_layer, which is also incorrectly defined as UCHAR_MAX when layer_t is uint32_t

Defining it using std::numeric_limits<layer_t>::max() would of avoided
this inconsistancy but as it unused it is doesn't really matter I guess.

git-svn-id: svn://localhost/ardour2/trunk@2392 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoOnly show child rows for session snapshots when there is more than 1 snapshot in...
Tim Mayberry [Tue, 4 Sep 2007 05:26:35 +0000 (05:26 +0000)]
Only show child rows for session snapshots when there is more than 1 snapshot in the recent session treeview of the NewSessionDialog

git-svn-id: svn://localhost/ardour2/trunk@2391 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoRemove unused functions Session::possible_states
Tim Mayberry [Tue, 4 Sep 2007 05:26:34 +0000 (05:26 +0000)]
Remove unused functions Session::possible_states

git-svn-id: svn://localhost/ardour2/trunk@2390 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse ardour/session_state_utils.h in Editor::redisplay_snapshots
Tim Mayberry [Tue, 4 Sep 2007 05:26:31 +0000 (05:26 +0000)]
Use ardour/session_state_utils.h in Editor::redisplay_snapshots

git-svn-id: svn://localhost/ardour2/trunk@2389 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse functions from ardour/session_state_utils.h instead of ardour/session.h in ARDOUR...
Tim Mayberry [Tue, 4 Sep 2007 05:26:28 +0000 (05:26 +0000)]
Use functions from ardour/session_state_utils.h instead of ardour/session.h in ARDOUR_UI::redisplay_recent_sessions

git-svn-id: svn://localhost/ardour2/trunk@2388 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse functions in ardour/session_state_utils.h instead of ardour/session.h in NewSessi...
Tim Mayberry [Tue, 4 Sep 2007 05:26:26 +0000 (05:26 +0000)]
Use functions in ardour/session_state_utils.h instead of ardour/session.h in NewSessionDialog::reset_recent

git-svn-id: svn://localhost/ardour2/trunk@2387 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoAdd ARDOUR::get_state_files_in_directory and ARDOUR::get_file_names_no_extension...
Tim Mayberry [Tue, 4 Sep 2007 05:26:24 +0000 (05:26 +0000)]
Add ARDOUR::get_state_files_in_directory and ARDOUR::get_file_names_no_extension to ardour/session_state_utils.h/cc

git-svn-id: svn://localhost/ardour2/trunk@2386 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoRemove three unused temporary variables from Session::save_template
Tim Mayberry [Tue, 4 Sep 2007 04:48:42 +0000 (04:48 +0000)]
Remove three unused temporary variables from Session::save_template

git-svn-id: svn://localhost/ardour2/trunk@2385 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse ARDOUR::create_backup_file in Session::save_state
Tim Mayberry [Tue, 4 Sep 2007 04:48:39 +0000 (04:48 +0000)]
Use ARDOUR::create_backup_file in Session::save_state

git-svn-id: svn://localhost/ardour2/trunk@2384 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse ARDOUR::create_backup_file in Session::remove_state
Tim Mayberry [Tue, 4 Sep 2007 04:48:36 +0000 (04:48 +0000)]
Use ARDOUR::create_backup_file in Session::remove_state

git-svn-id: svn://localhost/ardour2/trunk@2383 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoAdd function ARDOUR::create_backup_file in new header ardour/session_state_utils...
Tim Mayberry [Tue, 4 Sep 2007 04:48:33 +0000 (04:48 +0000)]
Add function ARDOUR::create_backup_file in new header ardour/session_state_utils.h/cc

git-svn-id: svn://localhost/ardour2/trunk@2382 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoRemove unused function PBD::copy_file
Tim Mayberry [Tue, 4 Sep 2007 04:48:30 +0000 (04:48 +0000)]
Remove unused function PBD::copy_file

git-svn-id: svn://localhost/ardour2/trunk@2381 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse PBD::sys::copy_file instead of PBD::copy_file in Session::load_state
Tim Mayberry [Tue, 4 Sep 2007 04:48:26 +0000 (04:48 +0000)]
Use PBD::sys::copy_file instead of PBD::copy_file in Session::load_state

git-svn-id: svn://localhost/ardour2/trunk@2380 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse PBD::sys::path instead of PBD::copy_file in Session::save_state
Tim Mayberry [Tue, 4 Sep 2007 04:48:23 +0000 (04:48 +0000)]
Use PBD::sys::path instead of PBD::copy_file in Session::save_state

git-svn-id: svn://localhost/ardour2/trunk@2379 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse PBD::sys::copy_file instead of PBD::copy_file in Session::remote_state
Tim Mayberry [Tue, 4 Sep 2007 04:48:21 +0000 (04:48 +0000)]
Use PBD::sys::copy_file instead of PBD::copy_file in Session::remote_state

Replace one line C style comments with C++ equivalent in Session::remove_state

git-svn-id: svn://localhost/ardour2/trunk@2378 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse PBD::sys::copy_file instead of PBD::copy_file in Session::create_session_file_fro...
Tim Mayberry [Tue, 4 Sep 2007 04:48:18 +0000 (04:48 +0000)]
Use PBD::sys::copy_file instead of PBD::copy_file in Session::create_session_file_from_template

git-svn-id: svn://localhost/ardour2/trunk@2377 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoAdd function PBD::sys::copy_file intended to replace PBD::copy_file
Tim Mayberry [Tue, 4 Sep 2007 04:48:13 +0000 (04:48 +0000)]
Add function PBD::sys::copy_file intended to replace PBD::copy_file

Basically moving PBD::copy_file implementation to pbd/filesystem.h/cc.
The implementation itself looks like it could be improved to use
much less memory when copying big files by reading and writing in
chunks but I don't think that is an issue at present.

git-svn-id: svn://localhost/ardour2/trunk@2376 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse functions in pbd/filesystem.h in Session::save_state for portability
Tim Mayberry [Tue, 4 Sep 2007 04:48:11 +0000 (04:48 +0000)]
Use functions in pbd/filesystem.h in Session::save_state for portability

Add ARDOUR::temp_suffix to ardour/filename_extensions.h/cc

git-svn-id: svn://localhost/ardour2/trunk@2375 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse functions from pbd/filesystem.h in Session::remove_state for portability
Tim Mayberry [Tue, 4 Sep 2007 04:48:09 +0000 (04:48 +0000)]
Use functions from pbd/filesystem.h in Session::remove_state for portability

Add ARDOUR::backup_suffix to ardour/filename_extensions.h/cc

git-svn-id: svn://localhost/ardour2/trunk@2374 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse sys::remove instead of ::unlink in Session::remove_pending_capture_state for...
Tim Mayberry [Tue, 4 Sep 2007 04:48:06 +0000 (04:48 +0000)]
Use sys::remove instead of ::unlink in Session::remove_pending_capture_state for portability

git-svn-id: svn://localhost/ardour2/trunk@2373 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoAdd function PBD::sys::remove as a wrapper to g_unlink
Tim Mayberry [Tue, 4 Sep 2007 04:48:04 +0000 (04:48 +0000)]
Add function PBD::sys::remove as a wrapper to g_unlink

API is intended to be indentical(apart from the string type) to boost::filesystem::remove

git-svn-id: svn://localhost/ardour2/trunk@2372 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse PBD::sys::path and SessionDirectory in Session::remove_pending_capture_state...
Tim Mayberry [Tue, 4 Sep 2007 04:47:54 +0000 (04:47 +0000)]
Use PBD::sys::path and SessionDirectory in Session::remove_pending_capture_state for portability

git-svn-id: svn://localhost/ardour2/trunk@2371 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse sys::path and SessionDirectory in Session::create_session_file_from_template...
Tim Mayberry [Tue, 4 Sep 2007 04:47:51 +0000 (04:47 +0000)]
Use sys::path and SessionDirectory in Session::create_session_file_from_template for portability

git-svn-id: svn://localhost/ardour2/trunk@2370 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoRename PBD::SearchPath::get_string to PBD::SearchPath::to_string
Tim Mayberry [Tue, 4 Sep 2007 04:47:48 +0000 (04:47 +0000)]
Rename PBD::SearchPath::get_string to PBD::SearchPath::to_string

git-svn-id: svn://localhost/ardour2/trunk@2369 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse sys::path and SessionDirectory classes in Session::load_state for portability
Tim Mayberry [Tue, 4 Sep 2007 04:47:44 +0000 (04:47 +0000)]
Use sys::path and SessionDirectory classes in Session::load_state for portability

git-svn-id: svn://localhost/ardour2/trunk@2368 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoUse PBD::sys::exists instead of Glib::file_test in Session::load_state
Tim Mayberry [Tue, 4 Sep 2007 04:47:41 +0000 (04:47 +0000)]
Use PBD::sys::exists instead of Glib::file_test in Session::load_state

git-svn-id: svn://localhost/ardour2/trunk@2367 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoMove CC/Automation regions with parent correctly.
David Robillard [Mon, 3 Sep 2007 16:12:07 +0000 (16:12 +0000)]
Move CC/Automation regions with parent correctly.

git-svn-id: svn://localhost/ardour2/trunk@2363 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoFix CC region view length.
David Robillard [Fri, 31 Aug 2007 19:29:23 +0000 (19:29 +0000)]
Fix CC region view length.

git-svn-id: svn://localhost/ardour2/trunk@2360 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoReading of MIDI CC from MIDI regions (MidiModel). UI still needs work though..
David Robillard [Fri, 31 Aug 2007 05:02:45 +0000 (05:02 +0000)]
Reading of MIDI CC from MIDI regions (MidiModel).  UI still needs work though..
Various fixes for linear/integer AutomationList interpolation (for CC).

git-svn-id: svn://localhost/ardour2/trunk@2359 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoSplit MidiModel::Note out to ARDOUR::Note in it's own file (midi_model.h was getting...
David Robillard [Tue, 28 Aug 2007 17:48:37 +0000 (17:48 +0000)]
Split MidiModel::Note out to ARDOUR::Note in it's own file (midi_model.h was getting fat).
Initial work on MidiModel iterator.

git-svn-id: svn://localhost/ardour2/trunk@2355 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoRestrict template filechooser to displaying only template files. Fixes bug 1823.
Tim Mayberry [Mon, 27 Aug 2007 11:21:55 +0000 (11:21 +0000)]
Restrict template filechooser to displaying only template files. Fixes bug 1823.

It previously allowed ardour session files and session backup files to be
selected as templates, this was causing strange behaviour or segmentation
faults. see bug report for more details.

git-svn-id: svn://localhost/ardour2/trunk@2348 d708f5d6-7413-0410-9779-e7cbd77b26cf

16 years agoAdd contact information to the contribution page in manual
Tim Mayberry [Mon, 27 Aug 2007 01:03:55 +0000 (01:03 +0000)]
Add contact information to the contribution page in manual

git-svn-id: svn://localhost/ardour2/trunk@2347 d708f5d6-7413-0410-9779-e7cbd77b26cf