ardour.git
11 years ago-Wlogical-op is not valid with apple/darwin gcc, so rebuild waf to make that conditional
Paul Davis [Mon, 21 Jan 2013 19:40:42 +0000 (19:40 +0000)]
-Wlogical-op is not valid with apple/darwin gcc, so rebuild waf to make that conditional

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

11 years agofix package as well as build script for new svn version grepping
Paul Davis [Mon, 21 Jan 2013 18:44:25 +0000 (18:44 +0000)]
fix package as well as build script for new svn version grepping

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

11 years agode.po updates
Paul Davis [Mon, 21 Jan 2013 18:18:55 +0000 (18:18 +0000)]
de.po updates

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

11 years agosafety steps for tooltips on plugin/processor sliders
Paul Davis [Mon, 21 Jan 2013 18:18:42 +0000 (18:18 +0000)]
safety steps for tooltips on plugin/processor sliders

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

11 years agohandle modified string in svn_revision.cc during build
Paul Davis [Mon, 21 Jan 2013 17:55:53 +0000 (17:55 +0000)]
handle modified string in svn_revision.cc during build

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

11 years agopixfaders should invalidate their patterns and layout on style change, helps fix...
Paul Davis [Mon, 21 Jan 2013 16:10:39 +0000 (16:10 +0000)]
pixfaders should invalidate their patterns and layout on style change, helps fix #5275

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

11 years agoMIDI patch changes should never be event-sensitive unless we're in internal/note...
Paul Davis [Mon, 21 Jan 2013 14:43:19 +0000 (14:43 +0000)]
MIDI patch changes should never be event-sensitive unless we're in internal/note edit mode

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

11 years agofix/revert/modify changes from 13617 that hide the gain + peak display from a generic...
Paul Davis [Mon, 21 Jan 2013 14:24:57 +0000 (14:24 +0000)]
fix/revert/modify changes from 13617 that hide the gain + peak display from a generic GainMeter; name import dialog preview fader (fixes 5288)

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

11 years agosave aux sends in session/route templates (#5285)
Paul Davis [Mon, 21 Jan 2013 13:48:56 +0000 (13:48 +0000)]
save aux sends in session/route templates (#5285)

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

11 years agotweak colors for rec-enable to create more contrast between states (#5286)
Paul Davis [Mon, 21 Jan 2013 13:36:23 +0000 (13:36 +0000)]
tweak colors for rec-enable to create more contrast between states (#5286)

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

11 years agofix gtk errors caused by using non-escaped paths in a column used as a tooltip (which...
Paul Davis [Mon, 21 Jan 2013 13:24:38 +0000 (13:24 +0000)]
fix gtk errors caused by using non-escaped paths in a column used as a tooltip (which must be set_markup()-safe (fixes #5290)

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

11 years agofix crash when deleting a processor with a controllable (#5284)
Paul Davis [Mon, 21 Jan 2013 13:20:43 +0000 (13:20 +0000)]
fix crash when deleting a processor with a controllable (#5284)

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

11 years agoforce jack-disconnected dialog to top (fixes #5291)
Paul Davis [Mon, 21 Jan 2013 13:13:02 +0000 (13:13 +0000)]
force jack-disconnected dialog to top (fixes #5291)

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

11 years agoTrim the include tree a bit.
David Robillard [Mon, 21 Jan 2013 07:24:42 +0000 (07:24 +0000)]
Trim the include tree a bit.

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

11 years agoFix MIDI loop recording.
David Robillard [Mon, 21 Jan 2013 06:00:15 +0000 (06:00 +0000)]
Fix MIDI loop recording.

This changes how things work a bit, but I am committing it for 3.0 since the
previous revision often crashed (and never worked), this one seems to work
fine, and the code is quite a bit more cogent.

I have tested the following use cases with live input and audible output:

 * Non-loop recording, armed before roll
 * Non-loop recording, arm while rolling
 * Loop recording, armed before roll
 * Loop recording, arm during roll

In the last case, the source/region is created starting at the loop start
rather than the current transport frame as usual so time makes sense when it
wraps around.

See the documentation added to the code for details, but the basic idea here is
to simply push MIDI events to the source with increasing monotonic time,
ignoring looping altogether.  Essentially we pretend the loop does not exist,
but the source knows all the details so it can implement whatever behaviour is
appropriate.

Currently, this is simply recording a complete non-destructive copy of the
input, which is a good thing.  Perhaps not what the user expects of loop
recording, but at least it works and is one sensible option.  We will need to
add more later.

Display while recording is a little bit wacky, but whatever.

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

11 years agoMore style-only changes.
David Robillard [Mon, 21 Jan 2013 02:35:53 +0000 (02:35 +0000)]
More style-only changes.

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

11 years agoActually flush to disk continuously while MIDI loop recording.
David Robillard [Mon, 21 Jan 2013 02:01:59 +0000 (02:01 +0000)]
Actually flush to disk continuously while MIDI loop recording.

Previously, this calculation was based on the current transport frame and last
time, both absolute, with the effect that loop recording would flush the first
time and never again.

The fix is to keep track of the actual duration of the capture, ignoring the
transport position, and flush as that reaches the threshold.

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

11 years agoMore whitespace-only changes.
David Robillard [Mon, 21 Jan 2013 01:44:36 +0000 (01:44 +0000)]
More whitespace-only changes.

Apologies for the noise, trying to dice a bunch of changes into reasonable commits...

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

11 years agomake height of name_label and name_entry the same to avoid button wierdness while...
Paul Davis [Mon, 21 Jan 2013 01:37:44 +0000 (01:37 +0000)]
make height of name_label and name_entry the same to avoid button wierdness while track name editing; fix crash caused by nested calls to end_name_edit()

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

11 years agoFix whitespace.
David Robillard [Mon, 21 Jan 2013 01:08:43 +0000 (01:08 +0000)]
Fix whitespace.

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

11 years agoreturn to the old way of editing track names, but hopefully better than it was. likel...
Paul Davis [Mon, 21 Jan 2013 00:12:06 +0000 (00:12 +0000)]
return to the old way of editing track names, but hopefully better than it was. likely to be some corner case issues still and the issue of how rec-arm interacts with this

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

11 years agoUse rectangle intersection for MIDI note rect select.
David Robillard [Sun, 20 Jan 2013 19:39:51 +0000 (19:39 +0000)]
Use rectangle intersection for MIDI note rect select.

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

11 years agoFix MIDI region create drag for the eleventy billionth time.
David Robillard [Sun, 20 Jan 2013 19:16:58 +0000 (19:16 +0000)]
Fix MIDI region create drag for the eleventy billionth time.
Also make it work for pencil.

This is the canonical Ardour MIDI noob "I can't even create notes, this crap is
impossible to use or doesn't work at all" use case:

1) Create MIDI track
2) Click in that track, with object or pencil tool
3) ** A region is created ** - aha!
4) Click in that region, notes are created

Breaking step 3 ruins everything.  Please don't.

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

11 years agoFix compilation with --test.
David Robillard [Sun, 20 Jan 2013 18:23:42 +0000 (18:23 +0000)]
Fix compilation with --test.
Make midnam test suite pass again.

The Ardour test suite does not pass.  I commented out old crossfade stuff, but
I am not familiar enough with the parts that fail to fix it.  It might be a
good idea for someone to look into this.  Ideally we'd have the test integrated
into everyone's workflow, but they add quite a few files to compile...

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

11 years agoComment out duplicate controls. I think there's an error in the manual?
David Robillard [Sun, 20 Jan 2013 18:22:02 +0000 (18:22 +0000)]
Comment out duplicate controls.  I think there's an error in the manual?

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

11 years agoFix incorrect controller numbers in Minitaur midnam file.
David Robillard [Sun, 20 Jan 2013 17:27:14 +0000 (17:27 +0000)]
Fix incorrect controller numbers in Minitaur midnam file.

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

11 years agoMore consistent verbose cursor label style for PC flags.
David Robillard [Sun, 20 Jan 2013 09:00:53 +0000 (09:00 +0000)]
More consistent verbose cursor label style for PC flags.

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

11 years agoShow matching controller name in automation lane header.
David Robillard [Sun, 20 Jan 2013 08:56:00 +0000 (08:56 +0000)]
Show matching controller name in automation lane header.
Completely eliminate static MIDI controller name code.
Reduce dependency on midnam_patch.h (which would have saved me several hours if I did it earlier).
Store controller name numbers as an integer.
Keep controller names in a map keyed by int instead of a list for fast lookup.
More cleanup of MIDI::Name code.

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

11 years agoFix label in route rename dialog.
David Robillard [Sun, 20 Jan 2013 07:37:20 +0000 (07:37 +0000)]
Fix label in route rename dialog.

Colon seems most consistent, the separate space is to fix the spacing in the dialog while re-using the existing translation string 'New name:'.

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

11 years agoError checking string to int conversion from midnam files.
David Robillard [Sun, 20 Jan 2013 07:33:27 +0000 (07:33 +0000)]
Error checking string to int conversion from midnam files.
Use const references where appropriate.
Fix incorrect use of (either confusingly named or often abused) Patch tag Number attribute.

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

11 years agoFix crash when trimming MIDI region with automation.
David Robillard [Sun, 20 Jan 2013 06:57:52 +0000 (06:57 +0000)]
Fix crash when trimming MIDI region with automation.

This seems impossible, but it happens.  Reproduction instructions:

1) Click in an empty portion of MIDI track to create a region
2) Add a CC lane
3) Click some points into lane (perhaps unnecessary)
4) Switch lane to linear mode (perhaps unnecessary)
5) Attempt to extend region leftward (with draw tool, but probaby doesn't matter)
6) Boom

Note trimming still doesn't work in this case and something seems deeply broken, but at least it doesn't crash now.

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

11 years agoFix crash on verbose note text in regions with no patch changes.
David Robillard [Sun, 20 Jan 2013 04:52:42 +0000 (04:52 +0000)]
Fix crash on verbose note text in regions with no patch changes.

... I think.  Not sure precisely, conditions were fuzzy, I just tortured my
mouse button until I could reproduce it.

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

11 years agoClean up midnam data, consistently name default mode "Default"
David Robillard [Sun, 20 Jan 2013 04:42:13 +0000 (04:42 +0000)]
Clean up midnam data, consistently name default mode "Default"

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

11 years agoSupport loading MIDI note names in NoteGroup tags as well.
David Robillard [Sun, 20 Jan 2013 04:27:12 +0000 (04:27 +0000)]
Support loading MIDI note names in NoteGroup tags as well.

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

11 years agoRemove extra midnam file for Roland JV-1080.
David Robillard [Sun, 20 Jan 2013 04:18:22 +0000 (04:18 +0000)]
Remove extra midnam file for Roland JV-1080.

I can't really make sense of this, they seem to be conflicting and of different origins, but I doubt it's worth my time to figure it out.

Also clean up the other one a bit.

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

11 years agoRemove junk data from Roland JV-1080 and JV-2080 midnam files.
David Robillard [Sun, 20 Jan 2013 03:53:39 +0000 (03:53 +0000)]
Remove junk data from Roland JV-1080 and JV-2080 midnam files.

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

11 years agoMake patch changes stand out a little better while also being more monochromatic.
David Robillard [Sun, 20 Jan 2013 03:47:01 +0000 (03:47 +0000)]
Make patch changes stand out a little better while also being more monochromatic.

The colour on the text doesn't seem to be what it should be, though.  I think
Gtkmm2ext::convert_bgra_to_rgba might be broken...

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

11 years agoAllow PC flags to be editing with the draw tool as well.
David Robillard [Sun, 20 Jan 2013 03:09:43 +0000 (03:09 +0000)]
Allow PC flags to be editing with the draw tool as well.

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

11 years agoTidy.
David Robillard [Sun, 20 Jan 2013 02:49:07 +0000 (02:49 +0000)]
Tidy.

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

11 years agoAdd General MIDI drum note names and patch names.
David Robillard [Sun, 20 Jan 2013 02:41:27 +0000 (02:41 +0000)]
Add General MIDI drum note names and patch names.
Support loading note names per ChannelNameSet (like GM) in addition to per Patch (like DM5).

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

11 years agoFix completely wrong MidiRegionView::get_patch_key_at().
David Robillard [Sun, 20 Jan 2013 02:31:41 +0000 (02:31 +0000)]
Fix completely wrong MidiRegionView::get_patch_key_at().

This fixes the note name displayed at a given time to be based on the correct program at that time, and not one in the future.

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

11 years agoFix MIDI note number off by one error.
David Robillard [Sun, 20 Jan 2013 01:12:12 +0000 (01:12 +0000)]
Fix MIDI note number off by one error.

Bloody one-based indices...

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

11 years agoFix midnam warning messages.
David Robillard [Sun, 20 Jan 2013 00:58:19 +0000 (00:58 +0000)]
Fix midnam warning messages.

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

11 years agoFix ever expanding bank selector in add patch change dialog when changing channel...
David Robillard [Sun, 20 Jan 2013 00:52:05 +0000 (00:52 +0000)]
Fix ever expanding bank selector in add patch change dialog when changing channel number.

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

11 years agoSupport note names from midnam files (tested with the DM5).
David Robillard [Sun, 20 Jan 2013 00:46:55 +0000 (00:46 +0000)]
Support note names from midnam files (tested with the DM5).

Do this via a simple MasterDeviceNames::note_name() function.  The same really
needs to be done for program names, this stuff is absolutely brutal to use.

Store note names in a vector indexed by number instead of a list with string
"numbers" for reasonable lookup time.

Make some references const that should be.

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

11 years agoUpdate patchfiles/README and remove executable bit from all midnam files.
David Robillard [Sat, 19 Jan 2013 21:42:54 +0000 (21:42 +0000)]
Update patchfiles/README and remove executable bit from all midnam files.

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

11 years agoAdd midnam file for Roland JV-2080.
David Robillard [Sat, 19 Jan 2013 21:35:08 +0000 (21:35 +0000)]
Add midnam file for Roland JV-2080.

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

11 years agoMerge Standard MIDI and General MIDI midnam files.
David Robillard [Sat, 19 Jan 2013 21:32:27 +0000 (21:32 +0000)]
Merge Standard MIDI and General MIDI midnam files.

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

11 years agoGracefully handle errors parsing midnam documents instead of crashing.
David Robillard [Sat, 19 Jan 2013 21:31:21 +0000 (21:31 +0000)]
Gracefully handle errors parsing midnam documents instead of crashing.

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

11 years agoSet MIDI device mode to the first by default if unset.
David Robillard [Sat, 19 Jan 2013 20:15:15 +0000 (20:15 +0000)]
Set MIDI device mode to the first by default if unset.
Give up trying to hide mode selector when it's useless.
Fix display of program names for default mode.
Abstract out (non-crashy) MidiTimeAxisView::get_device_names().

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

11 years agoUse a std::set for MIDI device models so the combo is sorted and the user can find...
David Robillard [Sat, 19 Jan 2013 19:25:06 +0000 (19:25 +0000)]
Use a std::set for MIDI device models so the combo is sorted and the user can find things.

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

11 years agoAdd instructions for adding midnam files.
David Robillard [Sat, 19 Jan 2013 19:21:57 +0000 (19:21 +0000)]
Add instructions for adding midnam files.

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

11 years agoSet MIDI device model to "Generic" by default (previously was unset).
David Robillard [Sat, 19 Jan 2013 19:06:21 +0000 (19:06 +0000)]
Set MIDI device model to "Generic" by default (previously was unset).

Perhaps it should be "Standard MIDI" though?

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

11 years agofix MIDI track channel selector etc. visibility after show_all()=>show() changes...
Paul Davis [Sat, 19 Jan 2013 16:05:06 +0000 (16:05 +0000)]
fix MIDI track channel selector etc. visibility after show_all()=>show() changes in recent commit

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

11 years agocompletely revisit how track name editing works in the editor
Paul Davis [Sat, 19 Jan 2013 15:27:04 +0000 (15:27 +0000)]
completely revisit how track name editing works in the editor

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

11 years agofix midnam-related crash introduced around 13892
Paul Davis [Sat, 19 Jan 2013 13:15:10 +0000 (13:15 +0000)]
fix midnam-related crash introduced around 13892

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

11 years agoslightly more informational debug message
Paul Davis [Sat, 19 Jan 2013 13:14:50 +0000 (13:14 +0000)]
slightly more informational debug message

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

11 years agoAdd standard MIDI midnam file and remove hard coded equivalent.
David Robillard [Sat, 19 Jan 2013 10:02:00 +0000 (10:02 +0000)]
Add standard MIDI midnam file and remove hard coded equivalent.
Accordingly, make "generic" MIDI truly generic, just numbered controllers.
Break up MIDI name UI stuff into manageable functions of reasonable size.
Add convenient method to MIDINameDocument for getting the names for a device.
Tolerate comments in MIDINameDocument ControlNameList.

Can't remove the MIDI name code just yet, since it's still erroneously used by
Automatable::describe_parameter().  This is the cause of a bug where the name
on the automation lane does not match that in the menu.

The plan is to make a very simple pure abstract interface for getting MIDI
names, and make it possible to set one for Automatable (or perhaps pass it to
describe_parameter()).  Thus we'll be on the way to supporting names from
sources other than midnam files, namely plugins.

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

11 years agoUnfortunately it seems that MIDINameDocument can not express control groups, so remov...
David Robillard [Sat, 19 Jan 2013 09:31:37 +0000 (09:31 +0000)]
Unfortunately it seems that MIDINameDocument can not express control groups, so remove this.

We will have to embrace and extend the format to provide that.  I think it's the only feasible way to present up to 127 controllers in the UI in a decently usable way, so it's probably a good idea to do so.

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

11 years agoFix undefined return value.
David Robillard [Sat, 19 Jan 2013 08:55:19 +0000 (08:55 +0000)]
Fix undefined return value.

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

11 years agoReplace a bunch of potential crashes with graceful handling of the situation.
David Robillard [Sat, 19 Jan 2013 07:00:43 +0000 (07:00 +0000)]
Replace a bunch of potential crashes with graceful handling of the situation.

We really need some kind of more sophisticated assert macro that can be
switched to non-fatal logging mode for release builds.  A log message, which is
often all that would happen, is a lot better than a trainwrecked performance...

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

11 years agoAvoid some copy overhead and sprinkle in some const for good measure.
David Robillard [Sat, 19 Jan 2013 06:17:02 +0000 (06:17 +0000)]
Avoid some copy overhead and sprinkle in some const for good measure.

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

11 years agoReflow ridiculously wide code.
David Robillard [Sat, 19 Jan 2013 05:54:44 +0000 (05:54 +0000)]
Reflow ridiculously wide code.

Sorry.

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

11 years agoHide MIDI device mode selector unless there is actually more than one mode.
David Robillard [Sat, 19 Jan 2013 05:36:43 +0000 (05:36 +0000)]
Hide MIDI device mode selector unless there is actually more than one mode.

Since this is usually not the case, showing this all the time as before was so
confusing everyone thought it was broken (myself included).

Changing that show_all() to a show() might have consequences, but it seems to
work fine and we really shouldn't be using show_all() anyway.

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

11 years agoClean up midnam author data.
David Robillard [Sat, 19 Jan 2013 02:49:59 +0000 (02:49 +0000)]
Clean up midnam author data.

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

11 years agoRam all midnam files through xmllint --format and get something halfway respectable...
David Robillard [Sat, 19 Jan 2013 02:37:06 +0000 (02:37 +0000)]
Ram all midnam files through xmllint --format and get something halfway respectable out the other side.

... and voila, decent data.  Good grief, what a mess that was.

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

11 years agoFix invalid XML. All midnam files now pass validation by xmllint.
David Robillard [Sat, 19 Jan 2013 02:33:28 +0000 (02:33 +0000)]
Fix invalid XML.  All midnam files now pass validation by xmllint.

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

11 years agoUse consistent naming scheme for midnam files.
David Robillard [Sat, 19 Jan 2013 01:52:51 +0000 (01:52 +0000)]
Use consistent naming scheme for midnam files.

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

11 years agoUse civilized line endings.
David Robillard [Sat, 19 Jan 2013 01:23:01 +0000 (01:23 +0000)]
Use civilized line endings.

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

11 years agoUse the standard doctype for this motley crew of midnam files.
David Robillard [Sat, 19 Jan 2013 01:19:57 +0000 (01:19 +0000)]
Use the standard doctype for this motley crew of midnam files.

By "standard" I mean "actually hosted by the MMA at midi.org".  Where the heck
this broken DTD link to sonosphere.org came from is anyone's guess.  Either
midi.org wasn't doing things correctly back in the day, or somebody is insane.
Probably both.

As a hint to the legacy of this data, some of these documents referred to
version 0.7, and some have mac newlines.  Mac newlines!  Remember those?

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

11 years agoValid midnam file for Moog Minitaur
David Robillard [Sat, 19 Jan 2013 01:14:46 +0000 (01:14 +0000)]
Valid midnam file for Moog Minitaur

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

11 years agonew take on getting SVN revision number
Paul Davis [Sat, 19 Jan 2013 01:11:48 +0000 (01:11 +0000)]
new take on getting SVN revision number

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

11 years agomore debugging output for failed LXVST opens, and drop use of NULL
Paul Davis [Fri, 18 Jan 2013 20:25:13 +0000 (20:25 +0000)]
more debugging output for failed LXVST opens, and drop use of NULL

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

11 years agofix crash when copy-n-pasting plugins, caused by work done to allow copy-n-paste...
Paul Davis [Fri, 18 Jan 2013 17:35:34 +0000 (17:35 +0000)]
fix crash when copy-n-pasting plugins, caused by work done to allow copy-n-paste of aux sends: non-send processors do not have a "role" node in their XML state

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

11 years agofix restore of snap mode (confusion caused by existence of internal/preinternal snap...
Paul Davis [Fri, 18 Jan 2013 15:56:41 +0000 (15:56 +0000)]
fix restore of snap mode (confusion caused by existence of internal/preinternal snap modes)

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

11 years agofix issue with color and position of mixer strip plugin control sliders (#5275)
Paul Davis [Thu, 17 Jan 2013 22:33:08 +0000 (22:33 +0000)]
fix issue with color and position of mixer strip plugin control sliders (#5275)

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

11 years agocache cairo_pattern_t's for PixFader so that we don't generate one per fader, but...
Paul Davis [Thu, 17 Jan 2013 15:36:35 +0000 (15:36 +0000)]
cache cairo_pattern_t's for PixFader so that we don't generate one per fader, but rather one per size+color combination

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

11 years agofix size of FaderOption's fader
Paul Davis [Thu, 17 Jan 2013 15:34:55 +0000 (15:34 +0000)]
fix size of FaderOption's fader

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

11 years agofix problem with size of patterns used by pixfaders when they get re-size-allocated
Paul Davis [Thu, 17 Jan 2013 15:00:44 +0000 (15:00 +0000)]
fix problem with size of patterns used by pixfaders when they get re-size-allocated

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

11 years agoa few small fixes that help pitchbend control of things, notably the shuttle controll...
Paul Davis [Thu, 17 Jan 2013 14:48:17 +0000 (14:48 +0000)]
a few small fixes that help pitchbend control of things, notably the shuttle controller. but note that basically, teh shuttle controller is completely and hopelessly broken through excess complexity and incorrect design

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

11 years agofix up Location::first_location_(after|before) to do the right thing when marks ...
Paul Davis [Thu, 17 Jan 2013 13:19:16 +0000 (13:19 +0000)]
fix up Location::first_location_(after|before) to do the right thing when marks + ranges are interleaved (functions renamed)

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

11 years agoprevent button1/2 clicks on pixfaders from being used to drive event processing in...
Paul Davis [Thu, 17 Jan 2013 02:41:11 +0000 (02:41 +0000)]
prevent button1/2 clicks on pixfaders from being used to drive event processing in parent containers (#5272)

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

11 years agofix up various issues with sizing now that we have the basic idea that pixfaders...
Paul Davis [Thu, 17 Jan 2013 02:35:06 +0000 (02:35 +0000)]
fix up various issues with sizing now that we have the basic idea that pixfaders can dynamically resize themselves (#5273)

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

11 years agofix up handling of size allocation + setting
Paul Davis [Thu, 17 Jan 2013 02:32:48 +0000 (02:32 +0000)]
fix up handling of size allocation + setting

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

11 years agoadd copyright comments
Paul Davis [Wed, 16 Jan 2013 18:51:39 +0000 (18:51 +0000)]
add copyright comments

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

11 years agoadd copyright comments
Paul Davis [Wed, 16 Jan 2013 18:45:47 +0000 (18:45 +0000)]
add copyright comments

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

11 years agoadd copyright comments
Paul Davis [Wed, 16 Jan 2013 18:37:48 +0000 (18:37 +0000)]
add copyright comments

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

11 years agoadd copyright comments
Paul Davis [Wed, 16 Jan 2013 18:27:41 +0000 (18:27 +0000)]
add copyright comments

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

11 years agoremove empty editor_scrub.cc source file
Paul Davis [Wed, 16 Jan 2013 18:26:11 +0000 (18:26 +0000)]
remove empty editor_scrub.cc source file

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

11 years agoadd copyright comments
Paul Davis [Wed, 16 Jan 2013 18:23:28 +0000 (18:23 +0000)]
add copyright comments

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

11 years agoadd copyright comments
Paul Davis [Wed, 16 Jan 2013 18:22:15 +0000 (18:22 +0000)]
add copyright comments

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

11 years agoadd copyright comments
Paul Davis [Wed, 16 Jan 2013 18:16:21 +0000 (18:16 +0000)]
add copyright comments

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

11 years agoadd copyright comments
Paul Davis [Wed, 16 Jan 2013 18:15:38 +0000 (18:15 +0000)]
add copyright comments

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

11 years agoadd copyright comments
Paul Davis [Wed, 16 Jan 2013 18:14:11 +0000 (18:14 +0000)]
add copyright comments

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

11 years agouse regex to match [mM][iI][dD] file extension for MIDI files, thus making it case...
Paul Davis [Wed, 16 Jan 2013 17:09:52 +0000 (17:09 +0000)]
use regex to match [mM][iI][dD] file extension for MIDI files, thus  making it case-insensitive (fixes #5231)

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

11 years agoget path correct for ardour_system.rc when building bundles
Paul Davis [Wed, 16 Jan 2013 16:57:42 +0000 (16:57 +0000)]
get path correct for ardour_system.rc when building bundles

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

11 years agoPreliminary support for named MIDI controllers via midname files.
David Robillard [Wed, 16 Jan 2013 08:24:31 +0000 (08:24 +0000)]
Preliminary support for named MIDI controllers via midname files.
Add midnam file for Moog Minitaur controller names.

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

11 years agoFix compilation against svn lilv (const-correctness).
David Robillard [Wed, 16 Jan 2013 08:01:30 +0000 (08:01 +0000)]
Fix compilation against svn lilv (const-correctness).

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

11 years agoremove debug output
Paul Davis [Wed, 16 Jan 2013 02:31:14 +0000 (02:31 +0000)]
remove debug output

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

11 years agoa bit more debug tracing for control protocols
Paul Davis [Wed, 16 Jan 2013 02:25:13 +0000 (02:25 +0000)]
a bit more debug tracing for control protocols

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