ardour.git
14 years agoFix sketchy casts.
David Robillard [Fri, 23 Oct 2009 20:11:56 +0000 (20:11 +0000)]
Fix sketchy casts.

git-svn-id: svn://localhost/ardour2/branches/3.0@5893 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoUnit test code coverage using lcov.
David Robillard [Fri, 23 Oct 2009 17:30:11 +0000 (17:30 +0000)]
Unit test code coverage using lcov.

git-svn-id: svn://localhost/ardour2/branches/3.0@5892 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoMove Mac configuration stuff to wscript where it belongs.
David Robillard [Fri, 23 Oct 2009 16:31:54 +0000 (16:31 +0000)]
Move Mac configuration stuff to wscript where it belongs.

Please do not break autowaf:

*** ARDOUR SPECIFIC CONFIGURATION/BUILDING CODE BELONGS IN A WSCRIPT,
*** NOT AUTOWAF.PY

git-svn-id: svn://localhost/ardour2/branches/3.0@5891 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoAdd waf fix for library versioning <http://code.google.com/p/waf/issues/detail?id...
David Robillard [Fri, 23 Oct 2009 15:11:01 +0000 (15:11 +0000)]
Add waf fix for library versioning <code.google.com/p/waf/issues/detail?id=537>.

git-svn-id: svn://localhost/ardour2/branches/3.0@5890 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix whitespace.
David Robillard [Fri, 23 Oct 2009 05:17:14 +0000 (05:17 +0000)]
Fix whitespace.

git-svn-id: svn://localhost/ardour2/branches/3.0@5889 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix crash changing automation state of MIDI 'automation' tracks.
David Robillard [Fri, 23 Oct 2009 04:54:10 +0000 (04:54 +0000)]
Fix crash changing automation state of MIDI 'automation' tracks.

git-svn-id: svn://localhost/ardour2/branches/3.0@5888 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix crash on multiple record due to not initiating write on source.
David Robillard [Fri, 23 Oct 2009 04:49:25 +0000 (04:49 +0000)]
Fix crash on multiple record due to not initiating write on source.

Fixes it, but this seems a bit dirty... audio has the same problem (but lives)...

git-svn-id: svn://localhost/ardour2/branches/3.0@5887 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix controller iteration / linear interpolation.
David Robillard [Fri, 23 Oct 2009 04:24:20 +0000 (04:24 +0000)]
Fix controller iteration / linear interpolation.
Add unit test for controller iteration / linear interpolation.

git-svn-id: svn://localhost/ardour2/branches/3.0@5886 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix whitespace.
David Robillard [Fri, 23 Oct 2009 03:58:11 +0000 (03:58 +0000)]
Fix whitespace.

git-svn-id: svn://localhost/ardour2/branches/3.0@5885 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoSshh.
David Robillard [Fri, 23 Oct 2009 03:57:52 +0000 (03:57 +0000)]
Sshh.

git-svn-id: svn://localhost/ardour2/branches/3.0@5884 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix compilation with DEBUG_SEQUENCE on.
David Robillard [Fri, 23 Oct 2009 03:32:54 +0000 (03:32 +0000)]
Fix compilation with DEBUG_SEQUENCE on.

git-svn-id: svn://localhost/ardour2/branches/3.0@5883 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoTesting how anal retentive I can be without anyone saying anything.
David Robillard [Fri, 23 Oct 2009 02:53:47 +0000 (02:53 +0000)]
Testing how anal retentive I can be without anyone saying anything.

git-svn-id: svn://localhost/ardour2/branches/3.0@5882 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix yet more crazy tabs.
David Robillard [Fri, 23 Oct 2009 02:49:12 +0000 (02:49 +0000)]
Fix yet more crazy tabs.

git-svn-id: svn://localhost/ardour2/branches/3.0@5881 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoUpgrade to waf 1.5.9.
David Robillard [Fri, 23 Oct 2009 01:58:32 +0000 (01:58 +0000)]
Upgrade to waf 1.5.9.

git-svn-id: svn://localhost/ardour2/branches/3.0@5880 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoMore correct looking MidiSource::midi_read.
David Robillard [Fri, 23 Oct 2009 01:39:40 +0000 (01:39 +0000)]
More correct looking MidiSource::midi_read.

Testing seems to show the old way and this both working equally well, which is a bit weird since the old way really doesn't seem to make any sense whatsoever.
This way works as well as far as I can tell and actually makes sense, so hey, let's go with this one.

git-svn-id: svn://localhost/ardour2/branches/3.0@5879 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoMake deferred plugin stuff work with old compiler or different sigc version or whatever.
David Robillard [Fri, 23 Oct 2009 01:00:13 +0000 (01:00 +0000)]
Make deferred plugin stuff work with old compiler or different sigc version or whatever.

git-svn-id: svn://localhost/ardour2/branches/3.0@5878 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix crash when adding automation tracks caused by route ordering.
David Robillard [Fri, 23 Oct 2009 00:05:50 +0000 (00:05 +0000)]
Fix crash when adding automation tracks caused by route ordering.

I have no idea what caused this, or whether this is a kludge or not, but it's certainly less crap than not being able to display automation whatsoever.

git-svn-id: svn://localhost/ardour2/branches/3.0@5877 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoWhitespace.
David Robillard [Thu, 22 Oct 2009 22:38:53 +0000 (22:38 +0000)]
Whitespace.

git-svn-id: svn://localhost/ardour2/branches/3.0@5876 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix crash on save of MIDI data.
David Robillard [Thu, 22 Oct 2009 22:14:25 +0000 (22:14 +0000)]
Fix crash on save of MIDI data.

git-svn-id: svn://localhost/ardour2/branches/3.0@5875 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoIndentation.
David Robillard [Thu, 22 Oct 2009 22:05:49 +0000 (22:05 +0000)]
Indentation.

git-svn-id: svn://localhost/ardour2/branches/3.0@5874 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoMore spacey tabs.
David Robillard [Thu, 22 Oct 2009 22:04:43 +0000 (22:04 +0000)]
More spacey tabs.
Can we please stop with the spacey tabs?
Thanks.

git-svn-id: svn://localhost/ardour2/branches/3.0@5873 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix adding multiple notes with the same time stamp (geeze).
David Robillard [Thu, 22 Oct 2009 21:54:32 +0000 (21:54 +0000)]
Fix adding multiple notes with the same time stamp (geeze).

git-svn-id: svn://localhost/ardour2/branches/3.0@5872 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoDisable canvas verbose cursor for notes, which locks up on note adding sometimes.
David Robillard [Thu, 22 Oct 2009 21:54:00 +0000 (21:54 +0000)]
Disable canvas verbose cursor for notes, which locks up on note adding sometimes.
The backtrace ain't pretty :/

git-svn-id: svn://localhost/ardour2/branches/3.0@5871 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoRemove linear search when adding/removing a note from/to a Sequence.
David Robillard [Thu, 22 Oct 2009 21:33:05 +0000 (21:33 +0000)]
Remove linear search when adding/removing a note from/to a Sequence.

git-svn-id: svn://localhost/ardour2/branches/3.0@5870 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoActually load MIDI data from disk on session load (kludgey, forces model to always...
David Robillard [Thu, 22 Oct 2009 21:03:47 +0000 (21:03 +0000)]
Actually load MIDI data from disk on session load (kludgey, forces model to always be loaded, this needs fixing later).
Fix hilariously braindead non-lock in SMFSource::load_model.

git-svn-id: svn://localhost/ardour2/branches/3.0@5869 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix deadlocks on MIDI record.
David Robillard [Thu, 22 Oct 2009 20:37:24 +0000 (20:37 +0000)]
Fix deadlocks on MIDI record.

More locking than is strictly necessary, but the assertion in MidiModel::write_lock is a nice check, at least for now...

git-svn-id: svn://localhost/ardour2/branches/3.0@5868 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoUse info stream for infoey things.
David Robillard [Thu, 22 Oct 2009 20:36:38 +0000 (20:36 +0000)]
Use info stream for infoey things.

git-svn-id: svn://localhost/ardour2/branches/3.0@5867 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoUse info stream for infoey things.
David Robillard [Thu, 22 Oct 2009 20:05:40 +0000 (20:05 +0000)]
Use info stream for infoey things.

git-svn-id: svn://localhost/ardour2/branches/3.0@5866 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoUse a more reasonable default size for log window.
David Robillard [Thu, 22 Oct 2009 20:05:15 +0000 (20:05 +0000)]
Use a more reasonable default size for log window.
Only pop up log window if message level is not INFO (i.e. iff it is WARNING, ERROR, or FATAL).

git-svn-id: svn://localhost/ardour2/branches/3.0@5865 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix colours of log window messages.
David Robillard [Thu, 22 Oct 2009 19:53:22 +0000 (19:53 +0000)]
Fix colours of log window messages.

If anyone has a better way of making this actually work than the absurd kludge in gtk_ui.cc, feel free.

git-svn-id: svn://localhost/ardour2/branches/3.0@5864 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix whitespace.
David Robillard [Thu, 22 Oct 2009 19:00:40 +0000 (19:00 +0000)]
Fix whitespace.

git-svn-id: svn://localhost/ardour2/branches/3.0@5863 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix whitespace.
David Robillard [Thu, 22 Oct 2009 18:55:39 +0000 (18:55 +0000)]
Fix whitespace.

git-svn-id: svn://localhost/ardour2/branches/3.0@5862 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoAdd log window to windows menu.
David Robillard [Thu, 22 Oct 2009 18:11:22 +0000 (18:11 +0000)]
Add log window to windows menu.

git-svn-id: svn://localhost/ardour2/branches/3.0@5861 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix whitespace.
David Robillard [Thu, 22 Oct 2009 17:33:36 +0000 (17:33 +0000)]
Fix whitespace.

git-svn-id: svn://localhost/ardour2/branches/3.0@5860 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoDefer plugin discovery until actually needed (significant startup time improvement...
David Robillard [Thu, 22 Oct 2009 17:17:34 +0000 (17:17 +0000)]
Defer plugin discovery until actually needed (significant startup time improvement, especially with LV2).

git-svn-id: svn://localhost/ardour2/branches/3.0@5859 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoUse line comments.
David Robillard [Thu, 22 Oct 2009 16:24:47 +0000 (16:24 +0000)]
Use line comments.

git-svn-id: svn://localhost/ardour2/branches/3.0@5858 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoReplace horribly error-prone Sequence/MidiModel/MidiSource locking API with scoped...
David Robillard [Thu, 22 Oct 2009 16:15:36 +0000 (16:15 +0000)]
Replace horribly error-prone Sequence/MidiModel/MidiSource locking API with scoped locks that automatically Do The Right Thing.
Make Sequence::read_lock const correct in the process (a read lock can be taken out on a const Sequence, but not a write lock).

git-svn-id: svn://localhost/ardour2/branches/3.0@5857 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoSshh.
David Robillard [Thu, 22 Oct 2009 16:14:00 +0000 (16:14 +0000)]
Sshh.

git-svn-id: svn://localhost/ardour2/branches/3.0@5856 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix occasional crash on startup with MIDI tracks (race?).
David Robillard [Thu, 22 Oct 2009 16:10:21 +0000 (16:10 +0000)]
Fix occasional crash on startup with MIDI tracks (race?).

git-svn-id: svn://localhost/ardour2/branches/3.0@5855 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix MidiBuffer::merge_in_place and add aggressive correctness checking.
David Robillard [Thu, 22 Oct 2009 14:46:47 +0000 (14:46 +0000)]
Fix MidiBuffer::merge_in_place and add aggressive correctness checking.

git-svn-id: svn://localhost/ardour2/branches/3.0@5854 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix repeated linear search on read when cached model iterator reaches end.
David Robillard [Thu, 22 Oct 2009 14:46:03 +0000 (14:46 +0000)]
Fix repeated linear search on read when cached model iterator reaches end.

git-svn-id: svn://localhost/ardour2/branches/3.0@5853 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoremember to reset inm1 each time around the interpolation loop
Paul Davis [Thu, 22 Oct 2009 13:29:09 +0000 (13:29 +0000)]
remember to reset inm1 each time around the interpolation loop

git-svn-id: svn://localhost/ardour2/branches/3.0@5852 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix compilation with -DDEBUG_MIDI_CLOCK
David Robillard [Wed, 21 Oct 2009 22:25:46 +0000 (22:25 +0000)]
Fix compilation with -DDEBUG_MIDI_CLOCK

git-svn-id: svn://localhost/ardour2/branches/3.0@5851 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix failed assertion when end_write is called multiple times.
David Robillard [Wed, 21 Oct 2009 22:21:44 +0000 (22:21 +0000)]
Fix failed assertion when end_write is called multiple times.

Bad logic, but oh well, doesn't hurt.

git-svn-id: svn://localhost/ardour2/branches/3.0@5850 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoMerge all BufferSet iterators using a single template (way less duplicatedish code).
David Robillard [Wed, 21 Oct 2009 17:24:14 +0000 (17:24 +0000)]
Merge all BufferSet iterators using a single template (way less duplicatedish code).

git-svn-id: svn://localhost/ardour2/branches/3.0@5845 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix unnecessarily type specific code, tidy, fix whitespace.
David Robillard [Wed, 21 Oct 2009 16:56:58 +0000 (16:56 +0000)]
Fix unnecessarily type specific code, tidy, fix whitespace.

git-svn-id: svn://localhost/ardour2/branches/3.0@5844 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix O(n) search on MIDI rec region update (now O(log(n)) per update, but could be...
David Robillard [Wed, 21 Oct 2009 16:39:39 +0000 (16:39 +0000)]
Fix O(n) search on MIDI rec region update (now O(log(n)) per update, but could be O(1) with caching...)

git-svn-id: svn://localhost/ardour2/branches/3.0@5843 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix MIDI rec regions.
David Robillard [Wed, 21 Oct 2009 16:26:18 +0000 (16:26 +0000)]
Fix MIDI rec regions.

git-svn-id: svn://localhost/ardour2/branches/3.0@5842 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoTidy up region gain line drawing slightly so that it doesn't overhang its region.
Carl Hetherington [Wed, 21 Oct 2009 12:32:46 +0000 (12:32 +0000)]
Tidy up region gain line drawing slightly so that it doesn't overhang its region.

git-svn-id: svn://localhost/ardour2/branches/3.0@5839 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix MIDI thru, though why this is any different from audio (monitoring) I don't know.
David Robillard [Wed, 21 Oct 2009 00:53:26 +0000 (00:53 +0000)]
Fix MIDI thru, though why this is any different from audio (monitoring) I don't know.

git-svn-id: svn://localhost/ardour2/branches/3.0@5837 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix creation of plugin presets.
Carl Hetherington [Wed, 21 Oct 2009 00:21:02 +0000 (00:21 +0000)]
Fix creation of plugin presets.

git-svn-id: svn://localhost/ardour2/branches/3.0@5836 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix unused parameter warnings since GCC apparently doesn't feel like listening to...
David Robillard [Wed, 21 Oct 2009 00:15:42 +0000 (00:15 +0000)]
Fix unused parameter warnings since GCC apparently doesn't feel like listening to -Wno-unused-parameter

git-svn-id: svn://localhost/ardour2/branches/3.0@5835 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoDisable excessive debug printing.
David Robillard [Wed, 21 Oct 2009 00:00:56 +0000 (00:00 +0000)]
Disable excessive debug printing.

git-svn-id: svn://localhost/ardour2/branches/3.0@5834 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix various MIDI control and installation issues:
David Robillard [Tue, 20 Oct 2009 23:43:19 +0000 (23:43 +0000)]
Fix various MIDI control and installation issues:

 * Install ardour3_ui_default.conf to system config dir

 * Set -DDATA_DIR etc. defines to proper absolute paths

 * Set default MIDI control port name to "control"
   (it was "control" some places, "default" other, so the generic MIDI
   control surface didn't work.  The real problem here is probably that
   the name is hardcoded in the surface code, ick)

 * Install surfaces to correct system directory

 * Generate and install ardour_system.rc

User POV:

 * Installed versions not run from the source directory discover configuration
   files and surfaces, and generally work

 * Building and/or starting a fresh copy of ardour3 with no pre-existing
   configuration will run an ardour with a single MIDI "control" port, which
   you can plug a surface into and control MMC and controllers and such
   (after turning on the generic MIDI surface, which IMO should be loaded
    by default anyway, especially since it's no longer in a menu)

git-svn-id: svn://localhost/ardour2/branches/3.0@5833 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoDelete comment window in destructor to close mantis 1870.
Carl Hetherington [Tue, 20 Oct 2009 22:58:50 +0000 (22:58 +0000)]
Delete comment window in destructor to close mantis 1870.

git-svn-id: svn://localhost/ardour2/branches/3.0@5831 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix crash with input (not duplex) control MIDI ports.
David Robillard [Tue, 20 Oct 2009 22:33:08 +0000 (22:33 +0000)]
Fix crash with input (not duplex) control MIDI ports.

git-svn-id: svn://localhost/ardour2/branches/3.0@5829 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoEnsure that the loop/punch ruler is always visible when punch in/out is enabled;...
Carl Hetherington [Tue, 20 Oct 2009 21:58:46 +0000 (21:58 +0000)]
Ensure that the loop/punch ruler is always visible when punch in/out is enabled; closes mantis 1294.

git-svn-id: svn://localhost/ardour2/branches/3.0@5828 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFixes to pointer constraints when copying in lock edit mode; make them behave the...
Carl Hetherington [Tue, 20 Oct 2009 20:43:23 +0000 (20:43 +0000)]
Fixes to pointer constraints when copying in lock edit mode; make them behave the same as when just dragging regions.  Fixes some or all of mantis 2573.

git-svn-id: svn://localhost/ardour2/branches/3.0@5825 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoSince add_property creates new XMLProperty objects, remove_property should probably...
Carl Hetherington [Tue, 20 Oct 2009 18:44:44 +0000 (18:44 +0000)]
Since add_property creates new XMLProperty objects, remove_property should probably delete them.  Although remove_property is only used in one place in Ardour that I can see.

git-svn-id: svn://localhost/ardour2/branches/3.0@5824 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoMake the behaviour zoom to region more intuitive (IMHO); ie always zoom to the select...
Carl Hetherington [Tue, 20 Oct 2009 18:20:38 +0000 (18:20 +0000)]
Make the behaviour zoom to region more intuitive (IMHO); ie always zoom to the selected region.  Not quite sure what the zoomed_to_region flag was intended to achieve.  Fixes mantis 2154.

git-svn-id: svn://localhost/ardour2/branches/3.0@5823 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agohandle searching for a note in an empty note list
Paul Davis [Tue, 20 Oct 2009 12:16:30 +0000 (12:16 +0000)]
handle searching for a note in an empty note list

git-svn-id: svn://localhost/ardour2/branches/3.0@5822 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoTidy.
David Robillard [Tue, 20 Oct 2009 02:26:25 +0000 (02:26 +0000)]
Tidy.

git-svn-id: svn://localhost/ardour2/branches/3.0@5821 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoTidy.
David Robillard [Tue, 20 Oct 2009 02:17:28 +0000 (02:17 +0000)]
Tidy.

git-svn-id: svn://localhost/ardour2/branches/3.0@5820 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFactor out more duplicated code.
David Robillard [Tue, 20 Oct 2009 02:14:53 +0000 (02:14 +0000)]
Factor out more duplicated code.

git-svn-id: svn://localhost/ardour2/branches/3.0@5819 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFactor out duplicated code in AudioDiskstream and MidiDiskstream.
David Robillard [Tue, 20 Oct 2009 02:01:26 +0000 (02:01 +0000)]
Factor out duplicated code in AudioDiskstream and MidiDiskstream.

git-svn-id: svn://localhost/ardour2/branches/3.0@5818 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoImplement out-of-place MidiBuffer::merge.
David Robillard [Tue, 20 Oct 2009 01:50:15 +0000 (01:50 +0000)]
Implement out-of-place MidiBuffer::merge.
Completely untested.

git-svn-id: svn://localhost/ardour2/branches/3.0@5817 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoUse a template to merge PortSet::iterator and PortSet::const_iterator duplicated...
David Robillard [Tue, 20 Oct 2009 01:32:34 +0000 (01:32 +0000)]
Use a template to merge PortSet::iterator and PortSet::const_iterator duplicated code.

git-svn-id: svn://localhost/ardour2/branches/3.0@5816 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoConst-correct BufferSet.
David Robillard [Tue, 20 Oct 2009 01:24:31 +0000 (01:24 +0000)]
Const-correct BufferSet.

git-svn-id: svn://localhost/ardour2/branches/3.0@5815 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoOnly build unit tests if configure --test is passed.
David Robillard [Tue, 20 Oct 2009 01:07:15 +0000 (01:07 +0000)]
Only build unit tests if configure --test is passed.

git-svn-id: svn://localhost/ardour2/branches/3.0@5814 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoTidy up the popup region editor and fix a few bugs with it; should close mantis 2601...
Carl Hetherington [Tue, 20 Oct 2009 01:05:33 +0000 (01:05 +0000)]
Tidy up the popup region editor and fix a few bugs with it; should close mantis 2601 and 2602.

git-svn-id: svn://localhost/ardour2/branches/3.0@5813 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoWhitespace.
David Robillard [Tue, 20 Oct 2009 00:50:43 +0000 (00:50 +0000)]
Whitespace.

git-svn-id: svn://localhost/ardour2/branches/3.0@5812 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix 2074: setting the NSD to not connect outputs to anything is ignored.
Carl Hetherington [Mon, 19 Oct 2009 20:30:09 +0000 (20:30 +0000)]
Fix 2074: setting the NSD to not connect outputs to anything is ignored.

git-svn-id: svn://localhost/ardour2/branches/3.0@5811 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoAlways call set_width_enum after set_route on mixer strips, to ensure that width...
Carl Hetherington [Mon, 19 Oct 2009 19:20:48 +0000 (19:20 +0000)]
Always call set_width_enum after set_route on mixer strips, to ensure that width is correctly set to editor_mixer_strip_width (as set_route will probably call set_width_enum itself)

git-svn-id: svn://localhost/ardour2/branches/3.0@5810 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoRemove debug code from last commit.
Carl Hetherington [Mon, 19 Oct 2009 18:16:57 +0000 (18:16 +0000)]
Remove debug code from last commit.

git-svn-id: svn://localhost/ardour2/branches/3.0@5809 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoStop ardour exiting in the case where you have a loaded session, then select New...
Carl Hetherington [Mon, 19 Oct 2009 18:12:20 +0000 (18:12 +0000)]
Stop ardour exiting in the case where you have a loaded session, then select New Session, cancel.

git-svn-id: svn://localhost/ardour2/branches/3.0@5808 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix button labelling for >1 input / output routes.
Carl Hetherington [Mon, 19 Oct 2009 17:45:51 +0000 (17:45 +0000)]
Fix button labelling for >1 input / output routes.

git-svn-id: svn://localhost/ardour2/branches/3.0@5807 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix memory leak.
Carl Hetherington [Mon, 19 Oct 2009 17:44:20 +0000 (17:44 +0000)]
Fix memory leak.

git-svn-id: svn://localhost/ardour2/branches/3.0@5806 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoTidy up window titles, according to GNOME HIG and as suggested in mantis 2803.
Carl Hetherington [Mon, 19 Oct 2009 17:25:37 +0000 (17:25 +0000)]
Tidy up window titles, according to GNOME HIG and as suggested in mantis 2803.

git-svn-id: svn://localhost/ardour2/branches/3.0@5805 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agotrack notes at the region level in MidiPlaylist; resolve them (deliver note offs...
Paul Davis [Mon, 19 Oct 2009 17:05:22 +0000 (17:05 +0000)]
track notes at the region level in MidiPlaylist; resolve them (deliver note offs) if a note spans the end of the region

git-svn-id: svn://localhost/ardour2/branches/3.0@5804 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoLogarithmic note seek for Sequence iterator.
David Robillard [Mon, 19 Oct 2009 16:23:08 +0000 (16:23 +0000)]
Logarithmic note seek for Sequence iterator.

git-svn-id: svn://localhost/ardour2/branches/3.0@5803 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoBetter test for iterator seek.
David Robillard [Mon, 19 Oct 2009 16:14:55 +0000 (16:14 +0000)]
Better test for iterator seek.

git-svn-id: svn://localhost/ardour2/branches/3.0@5802 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoAdd unit test for Sequence iterator seeking.
David Robillard [Mon, 19 Oct 2009 16:09:20 +0000 (16:09 +0000)]
Add unit test for Sequence iterator seeking.

git-svn-id: svn://localhost/ardour2/branches/3.0@5801 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoUse logarithmic search for MidiModel::find_note (used by DiffCommand).
David Robillard [Mon, 19 Oct 2009 15:44:58 +0000 (15:44 +0000)]
Use logarithmic search for MidiModel::find_note (used by DiffCommand).

git-svn-id: svn://localhost/ardour2/branches/3.0@5800 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix insane formatting/whitespace in evoral test stuff. C'mon Hans ;)
David Robillard [Mon, 19 Oct 2009 15:26:56 +0000 (15:26 +0000)]
Fix insane formatting/whitespace in evoral test stuff.  C'mon Hans ;)

git-svn-id: svn://localhost/ardour2/branches/3.0@5799 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoUse set over vector for Sequence::Notes, for logarithmic search by time.
David Robillard [Mon, 19 Oct 2009 15:23:42 +0000 (15:23 +0000)]
Use set over vector for Sequence::Notes, for logarithmic search by time.

git-svn-id: svn://localhost/ardour2/branches/3.0@5798 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoAdd mono switch to mixer strips (mantis 1068)
Carl Hetherington [Mon, 19 Oct 2009 14:46:15 +0000 (14:46 +0000)]
Add mono switch to mixer strips (mantis 1068)

git-svn-id: svn://localhost/ardour2/branches/3.0@5797 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoTidy.
David Robillard [Mon, 19 Oct 2009 14:13:03 +0000 (14:13 +0000)]
Tidy.

git-svn-id: svn://localhost/ardour2/branches/3.0@5796 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix set_notes prototype to use typedef.
David Robillard [Mon, 19 Oct 2009 14:08:20 +0000 (14:08 +0000)]
Fix set_notes prototype to use typedef.
Fix spacey tabs.

git-svn-id: svn://localhost/ardour2/branches/3.0@5795 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix warnings.
David Robillard [Mon, 19 Oct 2009 14:06:54 +0000 (14:06 +0000)]
Fix warnings.

git-svn-id: svn://localhost/ardour2/branches/3.0@5794 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agofix conceptually broken cubic interpolator that failed to handle the i=0 case, and...
Paul Davis [Fri, 16 Oct 2009 19:53:25 +0000 (19:53 +0000)]
fix conceptually broken cubic interpolator that failed to handle the i=0 case, and don't rely on inlining for speed there

git-svn-id: svn://localhost/ardour2/branches/3.0@5792 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agomore set_state() tweaks to aid with plugin state loading
Paul Davis [Fri, 16 Oct 2009 16:44:16 +0000 (16:44 +0000)]
more set_state() tweaks to aid with plugin state loading

git-svn-id: svn://localhost/ardour2/branches/3.0@5791 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agotesting post-commit hook after DH server switch
Paul Davis [Fri, 16 Oct 2009 00:04:13 +0000 (00:04 +0000)]
testing post-commit hook after DH server switch

git-svn-id: svn://localhost/ardour2/branches/3.0@5790 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoanother set_state() related tweak for handling 2.X sessions
Paul Davis [Thu, 15 Oct 2009 20:33:05 +0000 (20:33 +0000)]
another set_state() related tweak for handling 2.X sessions

git-svn-id: svn://localhost/ardour2/branches/3.0@5789 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agomore set_state() tweaks to get a 2.X session to load without aborting
Paul Davis [Thu, 15 Oct 2009 19:36:48 +0000 (19:36 +0000)]
more set_state() tweaks to get a 2.X session to load without aborting

git-svn-id: svn://localhost/ardour2/branches/3.0@5788 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agorework Stateful::set_state() patch to avoid default version argument
Paul Davis [Thu, 15 Oct 2009 18:56:11 +0000 (18:56 +0000)]
rework Stateful::set_state() patch to avoid default version argument

git-svn-id: svn://localhost/ardour2/branches/3.0@5787 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoPart 1 of loading 2.X sessions; some things work, some things don't, hacks a-plenty.
Carl Hetherington [Thu, 15 Oct 2009 00:57:55 +0000 (00:57 +0000)]
Part 1 of loading 2.X sessions; some things work, some things don't, hacks a-plenty.

LOADING 2.X SESSIONS WITH THIS COMMIT IN PLACE WILL (PROBABLY) CORRUPT THE .ardour FILE,
MAKING THE SESSION UNLOADABLE ON 2.X AND LOSING INFORMATION.

So don't do that unless you make a backup of the session file first.

git-svn-id: svn://localhost/ardour2/branches/3.0@5786 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix assertion failure when switching from a 2-channel to 1-channel route with the...
Carl Hetherington [Wed, 14 Oct 2009 23:47:44 +0000 (23:47 +0000)]
Fix assertion failure when switching from a 2-channel to 1-channel route with the editor mixer open.

git-svn-id: svn://localhost/ardour2/branches/3.0@5785 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoFix crash on MIDI import.
David Robillard [Wed, 14 Oct 2009 23:45:06 +0000 (23:45 +0000)]
Fix crash on MIDI import.

git-svn-id: svn://localhost/ardour2/branches/3.0@5784 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoDon't raise errors on probe.
David Robillard [Wed, 14 Oct 2009 23:44:48 +0000 (23:44 +0000)]
Don't raise errors on probe.

git-svn-id: svn://localhost/ardour2/branches/3.0@5783 d708f5d6-7413-0410-9779-e7cbd77b26cf

14 years agoRemove deprecated clearlooks options from ardour3_ui_dark.rc
David Robillard [Wed, 14 Oct 2009 23:32:58 +0000 (23:32 +0000)]
Remove deprecated clearlooks options from ardour3_ui_dark.rc

git-svn-id: svn://localhost/ardour2/branches/3.0@5782 d708f5d6-7413-0410-9779-e7cbd77b26cf