ardour.git
9 years agofix up some suboptimal and crash-prone aspects of 7c263f3bc4f3bddd8094c9baecf58450301...
Paul Davis [Fri, 14 Nov 2014 22:14:48 +0000 (17:14 -0500)]
fix up some suboptimal and crash-prone aspects of 7c263f3bc4f3bddd8094c9baecf584503012acc8 from Jeremy Carter

9 years agobcf2000: make play button toggle roll
Jeremy Carter [Fri, 14 Nov 2014 20:35:19 +0000 (15:35 -0500)]
bcf2000: make play button toggle roll

9 years agoFix ChannelLeft command in BCF2000 mackie profile
Jeremy Carter [Fri, 14 Nov 2014 19:52:58 +0000 (14:52 -0500)]
Fix ChannelLeft command in BCF2000 mackie profile

9 years agoMerge remote-tracking branch 'upstream/master'
Jeremy Carter [Fri, 14 Nov 2014 18:34:15 +0000 (13:34 -0500)]
Merge remote-tracking branch 'upstream/master'

9 years agoadd abort() to non-reached code
Robin Gareus [Fri, 14 Nov 2014 09:47:43 +0000 (10:47 +0100)]
add abort() to non-reached code

This cleans up a lot of false-positives in static analysis
and also helps compilers to optimize code paths in general.
(tagging the fatal stingstream operator as ‘noreturn’ is
far less trivial)

9 years agoFix various sticky/broken cursor issues.
David Robillard [Fri, 14 Nov 2014 07:28:15 +0000 (02:28 -0500)]
Fix various sticky/broken cursor issues.

This still isn't quite right, but it's a lot less broken than before, at least.

9 years agothe return of the PPC nostalgia
Robin Gareus [Fri, 14 Nov 2014 07:16:25 +0000 (08:16 +0100)]
the return of the PPC nostalgia

9 years agoFix wonky note length when create-dragging notes backwards.
David Robillard [Fri, 14 Nov 2014 05:33:05 +0000 (00:33 -0500)]
Fix wonky note length when create-dragging notes backwards.

Specifically, when pivoting from forwards to backwards (around the drag start
point), the note length was too long.  Setting both the start and end x
coordinates of the rect every time to the right value does the right thing.

9 years agoFix error when create-dragging note backwards past start of region (#5934).
David Robillard [Fri, 14 Nov 2014 05:31:28 +0000 (00:31 -0500)]
Fix error when create-dragging note backwards past start of region (#5934).

9 years agoDon't make MIDI regions in note mode completely invisible.
David Robillard [Fri, 14 Nov 2014 04:33:11 +0000 (23:33 -0500)]
Don't make MIDI regions in note mode completely invisible.

This makes for extremely confusing behaviour, particularly when creating new
regions.  This is still probably too transparent, IMO, but at least isn't
totally mysterious.  "visible" is a bit of a misnomer in the code, now.

9 years agoFix crashes on various MIDI editing operations.
David Robillard [Fri, 14 Nov 2014 03:34:20 +0000 (22:34 -0500)]
Fix crashes on various MIDI editing operations.

Assertions assumed old strict ordering, no longer reflecting reality of fuzzy
time comparison (introduced in 86f1b8).

9 years agoFix crash after deleting automation region views (#4718).
David Robillard [Fri, 14 Nov 2014 03:18:15 +0000 (22:18 -0500)]
Fix crash after deleting automation region views (#4718).

9 years agoFix crash when deleting overlapped regions.
David Robillard [Fri, 14 Nov 2014 02:32:08 +0000 (21:32 -0500)]
Fix crash when deleting overlapped regions.

Use RegionSelection for MIDI regions as well, since the old dumb stub didn't do
some things correctly.  There's probably no reason to have a separate class for
this at all, and some good ones for putting all regions in the same selection,
so we should probably do that.  For now they are still separate in the
selection but use the same base class.

9 years agoyet another copy/paste typo :(
Robin Gareus [Thu, 13 Nov 2014 21:19:22 +0000 (22:19 +0100)]
yet another copy/paste typo :(

9 years agofix typo in b9fc616538
Robin Gareus [Thu, 13 Nov 2014 20:46:30 +0000 (21:46 +0100)]
fix typo in b9fc616538

9 years agoLinux-bundle: deploy all compiled backends
Robin Gareus [Thu, 13 Nov 2014 20:35:36 +0000 (21:35 +0100)]
Linux-bundle: deploy all compiled backends

9 years agoauto-initialize weak-jack
Robin Gareus [Thu, 13 Nov 2014 20:31:09 +0000 (21:31 +0100)]
auto-initialize weak-jack

(not needed with ardour - but keep code in sync with
https://github.com/x42/weakjack)

9 years agoprepare for JACK meta-data API
Robin Gareus [Thu, 13 Nov 2014 20:30:13 +0000 (21:30 +0100)]
prepare for JACK meta-data API

9 years agomake new jack thread API functions optional
Robin Gareus [Thu, 13 Nov 2014 20:29:34 +0000 (21:29 +0100)]
make new jack thread API functions optional

9 years agoadd symbol debug information to weak-jack
Robin Gareus [Thu, 13 Nov 2014 20:28:33 +0000 (21:28 +0100)]
add symbol debug information to weak-jack

9 years agofix memory leak
Robin Gareus [Thu, 13 Nov 2014 19:45:39 +0000 (20:45 +0100)]
fix memory leak

9 years agoinstall all additional binaries in $libdir
Robin Gareus [Thu, 13 Nov 2014 18:57:40 +0000 (19:57 +0100)]
install all additional binaries in $libdir

9 years agofix define
Robin Gareus [Thu, 13 Nov 2014 18:05:58 +0000 (19:05 +0100)]
fix define

9 years agoDon't iterate in 'ARDOUR::Route::get_control()' unless a ReaderLock was successfully...
John Emmas [Thu, 13 Nov 2014 13:07:34 +0000 (13:07 +0000)]
Don't iterate in 'ARDOUR::Route::get_control()' unless a ReaderLock was successfully obtained

9 years agoMake sure we can't execute 'ARDOUR::Route::meter()' unless a ReaderLock was successfu...
John Emmas [Thu, 13 Nov 2014 12:13:16 +0000 (12:13 +0000)]
Make sure we can't execute 'ARDOUR::Route::meter()' unless a ReaderLock was successfully obtained

9 years agodon't use cached sudo password in un/installer
Robin Gareus [Thu, 13 Nov 2014 05:00:29 +0000 (06:00 +0100)]
don't use cached sudo password in un/installer

9 years agoset umask in installer
Robin Gareus [Thu, 13 Nov 2014 04:56:25 +0000 (05:56 +0100)]
set umask in installer

see https://github.com/megastep/makeself/issues/6

9 years agoyet another build fix
Robin Gareus [Thu, 13 Nov 2014 00:02:09 +0000 (01:02 +0100)]
yet another build fix

on x86_64 weak_libjack.c needs -fPIC which needs cflags which need 'c' :)

9 years agofix compilation with gcc-4.9.1
Robin Gareus [Wed, 12 Nov 2014 23:10:13 +0000 (00:10 +0100)]
fix compilation with gcc-4.9.1

9 years agoadd popup message and error log for AU crash reports
Robin Gareus [Wed, 12 Nov 2014 03:57:03 +0000 (04:57 +0100)]
add popup message and error log for AU crash reports

9 years agoPrepare AU-discovery crashlog.
Robin Gareus [Wed, 12 Nov 2014 03:03:46 +0000 (04:03 +0100)]
Prepare AU-discovery crashlog.

stopgap solution to allow a user to detect which plugin caused a crash during discovery.

9 years agoadd AU plugin scan to Preferences UI
Robin Gareus [Wed, 12 Nov 2014 03:21:57 +0000 (04:21 +0100)]
add AU plugin scan to Preferences UI

9 years agofailsafe AU scanning part one:
Robin Gareus [Wed, 12 Nov 2014 02:54:18 +0000 (03:54 +0100)]
failsafe AU scanning part one:

Don’t scan for AU plugins unless users explicitly starts a
plugin scan. Disable automatic scanning if Ardour crashes
during AU plugin discovery.

9 years agoMerge branch 'plugin-automation'
Jeremy Carter [Wed, 12 Nov 2014 00:36:18 +0000 (19:36 -0500)]
Merge branch 'plugin-automation'

9 years agofixed automation *_all button crash
Jeremy Carter [Wed, 12 Nov 2014 00:33:25 +0000 (19:33 -0500)]
fixed automation *_all button crash

9 years agoMerge branch 'plugin-automation'
Jeremy Carter [Tue, 11 Nov 2014 23:07:44 +0000 (18:07 -0500)]
Merge branch 'plugin-automation'

9 years agoAdded Write All, Play All, etc. automation buttons to generic plugin UI
Jeremy Carter [Tue, 11 Nov 2014 23:05:27 +0000 (18:05 -0500)]
Added Write All, Play All, etc. automation buttons to generic plugin UI

9 years agofix/amend b84b0bfd
Robin Gareus [Tue, 11 Nov 2014 20:46:29 +0000 (21:46 +0100)]
fix/amend b84b0bfd

9 years agoclean up after ourselves
Robin Gareus [Tue, 11 Nov 2014 14:35:06 +0000 (15:35 +0100)]
clean up after ourselves

9 years agolinux packaging: add some checks to reduce warnings
Robin Gareus [Tue, 11 Nov 2014 14:29:51 +0000 (15:29 +0100)]
linux packaging: add some checks to reduce warnings

9 years agoadd 512px icon
Robin Gareus [Tue, 11 Nov 2014 14:21:27 +0000 (15:21 +0100)]
add 512px icon

9 years agoosx packaging: add some checks to reduce warnings
Robin Gareus [Tue, 11 Nov 2014 14:20:16 +0000 (15:20 +0100)]
osx packaging: add some checks to reduce warnings

9 years agoosx build script: change default xjadeo/harvid cache folder
Robin Gareus [Tue, 11 Nov 2014 14:18:45 +0000 (15:18 +0100)]
osx build script: change default xjadeo/harvid cache folder

9 years agofix osx startup script /usr/local test
Robin Gareus [Tue, 11 Nov 2014 14:17:33 +0000 (15:17 +0100)]
fix osx startup script /usr/local test

A vanilla OSX system has no /usr/local/ folder. Ardour can still
run with the coreaudio or dummy backend.

9 years agorefactor MIDISceneChange color property addition by moving it into SceneChange to...
Paul Davis [Tue, 11 Nov 2014 02:44:02 +0000 (21:44 -0500)]
refactor MIDISceneChange color property addition by moving it into SceneChange to anticipate other types of SceneChange objects (e.g. OSC)

9 years agowhen creating a new MIDI scene change, check existing scene changes for equality...
Paul Davis [Tue, 11 Nov 2014 02:28:21 +0000 (21:28 -0500)]
when creating a new MIDI scene change, check existing scene changes for equality and reuse their color (which may or may not be set)

9 years agoserialize/deserialize MIDISceneChange color; put out of bounds color into static...
Paul Davis [Tue, 11 Nov 2014 02:22:05 +0000 (21:22 -0500)]
serialize/deserialize MIDISceneChange color; put out of bounds color into static const

9 years agoadd color property to MIDISceneChange
Paul Davis [Tue, 11 Nov 2014 02:17:39 +0000 (21:17 -0500)]
add color property to MIDISceneChange

9 years agoadd operator== to ARDOUR::MidiSceneChange
Paul Davis [Tue, 11 Nov 2014 02:11:22 +0000 (21:11 -0500)]
add operator== to ARDOUR::MidiSceneChange

9 years agotweak canvas on_expose_event() handler to avoid unnecessary save/paint/restore
Paul Davis [Tue, 11 Nov 2014 01:34:20 +0000 (20:34 -0500)]
tweak canvas on_expose_event() handler to avoid unnecessary save/paint/restore

9 years agofurther work on new color manipulation code
Paul Davis [Tue, 11 Nov 2014 01:33:54 +0000 (20:33 -0500)]
further work on new color manipulation code

9 years agoadd documentation about meter colors
Robin Gareus [Mon, 10 Nov 2014 21:22:54 +0000 (22:22 +0100)]
add documentation about meter colors

9 years agofix signed/unsigned compiler warning
Robin Gareus [Mon, 10 Nov 2014 21:21:39 +0000 (22:21 +0100)]
fix signed/unsigned compiler warning

9 years agoimprove random seed (for dummy generators)
Robin Gareus [Mon, 10 Nov 2014 21:20:36 +0000 (22:20 +0100)]
improve random seed (for dummy generators)

9 years agoadd required header for compilation
Paul Davis [Mon, 10 Nov 2014 16:46:17 +0000 (11:46 -0500)]
add required header for compilation

9 years agoredraw entire canvas when ColorsChanged is emitted
Paul Davis [Mon, 10 Nov 2014 15:40:27 +0000 (10:40 -0500)]
redraw entire canvas when ColorsChanged is emitted

9 years agoset canvas background color
Paul Davis [Mon, 10 Nov 2014 15:36:32 +0000 (10:36 -0500)]
set canvas background color

9 years agoadd new color variable for arrange canvas background
Paul Davis [Mon, 10 Nov 2014 15:36:08 +0000 (10:36 -0500)]
add new color variable for arrange canvas background

Conflicts:
gtk2_ardour/canvas_vars.h
gtk2_ardour/default_ui_config.in

9 years agoadd background color property to Canvas::Canvas ; rearrange expose handling and inclu...
Paul Davis [Mon, 10 Nov 2014 15:35:10 +0000 (10:35 -0500)]
add background color property to Canvas::Canvas ; rearrange expose handling and include background fill

Conflicts:
libs/canvas/canvas.cc
libs/canvas/canvas/canvas.h

9 years agoModifications needed to build ReasonableSynth with MSVC
John Emmas [Sun, 9 Nov 2014 08:11:46 +0000 (08:11 +0000)]
Modifications needed to build ReasonableSynth with MSVC

9 years agoAdd a small dummy command to a couple of MSVC build projects
John Emmas [Sat, 8 Nov 2014 18:47:25 +0000 (18:47 +0000)]
Add a small dummy command to a couple of MSVC build projects

These are trivial (no-op) fudges - to ensure that if we can't copy the built executable for whatever reason, it won't get flagged up as a build failure.

9 years agoAdd some newly introduced source files to our MSVC project (cairocanvas)
John Emmas [Sat, 8 Nov 2014 10:48:26 +0000 (10:48 +0000)]
Add some newly introduced source files to our MSVC project (cairocanvas)

9 years agoJust rename problematic Variant::VOID type.
David Robillard [Fri, 7 Nov 2014 22:21:43 +0000 (17:21 -0500)]
Just rename problematic Variant::VOID type.

9 years agouse new canvas colors header as necessary
Paul Davis [Fri, 7 Nov 2014 19:24:27 +0000 (14:24 -0500)]
use new canvas colors header as necessary

9 years agomove canvas colors code into its own file(s)
Paul Davis [Fri, 7 Nov 2014 19:24:13 +0000 (14:24 -0500)]
move canvas colors code into its own file(s)

9 years agoremove TimeAxisViewItem::RIGHT_EDGE_SHIFT; fix up x-coordinate for right edge of...
Paul Davis [Fri, 7 Nov 2014 17:58:46 +0000 (12:58 -0500)]
remove TimeAxisViewItem::RIGHT_EDGE_SHIFT; fix up x-coordinate for right edge of an audio fade out

9 years agosimplify removal of outline from streamview base rect
Paul Davis [Fri, 7 Nov 2014 17:58:10 +0000 (12:58 -0500)]
simplify removal of outline from streamview base rect

9 years agosimplify removal of outline from automation time axis base rect
Paul Davis [Fri, 7 Nov 2014 17:57:43 +0000 (12:57 -0500)]
simplify removal of outline from automation time axis base rect

9 years agofix up dimensions of ghostregion colored rect
Paul Davis [Fri, 7 Nov 2014 17:57:22 +0000 (12:57 -0500)]
fix up dimensions of ghostregion colored rect

9 years agowhen drawing only part of a Canvas::Rectangle outline, we only need to do the cairo...
Paul Davis [Fri, 7 Nov 2014 17:56:45 +0000 (12:56 -0500)]
when drawing only part of a Canvas::Rectangle outline, we only need to do the cairo-pixel alignment math for the axis perpendicular to the edge

9 years agodon't created vestigial frame canvas item for TimeAxisViewItem unless actually needed.
Paul Davis [Fri, 7 Nov 2014 13:35:26 +0000 (08:35 -0500)]
don't created vestigial frame canvas item for TimeAxisViewItem unless actually needed.

They don't cost very much but there's just really no point cluttering up the scene graph with generally invisible
and insensitive items

9 years agoVOID is a windows define (not MSVC specific)
Robin Gareus [Fri, 7 Nov 2014 16:04:11 +0000 (17:04 +0100)]
VOID is a windows define (not MSVC specific)

9 years agotentative fix for canvas background/image surface
Robin Gareus [Fri, 7 Nov 2014 15:50:21 +0000 (16:50 +0100)]
tentative fix for canvas background/image surface

9 years agoanother hack for windows timers, DSP load calculation
Robin Gareus [Fri, 7 Nov 2014 11:17:15 +0000 (12:17 +0100)]
another hack for windows timers, DSP load calculation

9 years agoadd API to extract color from ArdourCanvas::Text and tidy up member declarations
Paul Davis [Fri, 7 Nov 2014 01:33:29 +0000 (20:33 -0500)]
add API to extract color from ArdourCanvas::Text and tidy up member declarations

Conflicts:
libs/canvas/canvas/text.h

9 years agochanging the clamp_width of an ArdourCanvas::Text needs to potentially provoke an...
Paul Davis [Fri, 7 Nov 2014 01:33:01 +0000 (20:33 -0500)]
changing the clamp_width of an ArdourCanvas::Text needs to potentially provoke an entire redraw

This fixes missing range marker text in sessions where the initial zoom value causes an initial clamp_width of zero

9 years agopossible fix for DSP load calculation on windows
Robin Gareus [Thu, 6 Nov 2014 16:24:32 +0000 (17:24 +0100)]
possible fix for DSP load calculation on windows

9 years agoraising/lowering canvas items should trigger a redraw
Paul Davis [Thu, 6 Nov 2014 15:53:48 +0000 (10:53 -0500)]
raising/lowering canvas items should trigger a redraw

9 years agoadd a selection frame to TimeAxisViewItem along with a slew of other height/positiona...
Paul Davis [Thu, 6 Nov 2014 00:45:17 +0000 (19:45 -0500)]
add a selection frame to TimeAxisViewItem along with a slew of other height/positional fixes

9 years agovarious positional fixes for TimeAxisView, including moving the separator line to...
Paul Davis [Thu, 6 Nov 2014 00:44:44 +0000 (19:44 -0500)]
various positional fixes for TimeAxisView, including moving the separator line to the bottom, and keeping it in the same coordinate space as the TAV group

9 years agostreamview no longer outlines any part of its canvas rect (we leave that to time...
Paul Davis [Wed, 5 Nov 2014 22:12:18 +0000 (17:12 -0500)]
streamview no longer outlines any part of its canvas rect (we leave that to time axis view separators)

Also remove commented "- 1.0" adjustments that were already commented

9 years agocorrect the rendering of Rectangle outlines, and the computation of their bounding box
Paul Davis [Wed, 5 Nov 2014 21:57:37 +0000 (16:57 -0500)]
correct the rendering of Rectangle outlines, and the computation of their bounding box

9 years agoadd Rect::shrink(Distance) even though it arguably should be handled by Rect::expand()
Paul Davis [Wed, 5 Nov 2014 21:56:45 +0000 (16:56 -0500)]
add Rect::shrink(Distance) even though it arguably should be handled by Rect::expand()

9 years agoadd some more outline enums to ArdourCanvas::Rectangle
Paul Davis [Wed, 5 Nov 2014 21:56:02 +0000 (16:56 -0500)]
add some more outline enums to ArdourCanvas::Rectangle

9 years agoallow derived classes to access Item::{scroll,position}_offset(), mostly for debuggin...
Paul Davis [Wed, 5 Nov 2014 21:54:46 +0000 (16:54 -0500)]
allow derived classes to access Item::{scroll,position}_offset(), mostly for debugging purposes

9 years agocatch up with waves/tracks version of MIDI scene changer code
Paul Davis [Wed, 5 Nov 2014 18:14:10 +0000 (13:14 -0500)]
catch up with waves/tracks version of MIDI scene changer code

9 years agoalter implementation of ArdourCanvas::contrasting_text_color() to use gamma-adjusted...
Paul Davis [Wed, 5 Nov 2014 16:07:20 +0000 (11:07 -0500)]
alter implementation of ArdourCanvas::contrasting_text_color() to use gamma-adjusted luminance values rather than simple contrast

9 years agoadd ArdourCanvas::Fill::set_pattern() to allow any filled canvas item to be filled...
Paul Davis [Fri, 19 Sep 2014 20:21:19 +0000 (16:21 -0400)]
add ArdourCanvas::Fill::set_pattern() to allow any filled canvas item to be filled using an arbitrary Cairo Pattern

9 years agofix insane design for Location::next_available_name() so that it has no effective...
Paul Davis [Wed, 5 Nov 2014 12:40:35 +0000 (07:40 -0500)]
fix insane design for Location::next_available_name() so that it has no effective limit (other than UINT32_MAX)

9 years agopermit initial contents of a FloatingTextEntry
Paul Davis [Wed, 5 Nov 2014 12:08:17 +0000 (07:08 -0500)]
permit initial contents of a FloatingTextEntry

9 years agoAdd some newly introduced header files to our MSVC project (libs/ardour)
John Emmas [Tue, 4 Nov 2014 15:44:27 +0000 (15:44 +0000)]
Add some newly introduced header files to our MSVC project (libs/ardour)

9 years agoAdd some newly introduced source files to our MSVC project (gtk2_ardour)
John Emmas [Tue, 4 Nov 2014 15:43:32 +0000 (15:43 +0000)]
Add some newly introduced source files to our MSVC project (gtk2_ardour)

9 years agoWhen building with MSVC undef type VOID if we're declaring an enum called VOID
John Emmas [Tue, 4 Nov 2014 15:42:04 +0000 (15:42 +0000)]
When building with MSVC undef type VOID if we're declaring an enum called VOID

9 years agoModify 'msvc32-fixup.pl' for building the VST scanner app resources
John Emmas [Tue, 4 Nov 2014 13:09:48 +0000 (13:09 +0000)]
Modify 'msvc32-fixup.pl' for building the VST scanner app resources

9 years agoWhen building with MSVC, guard a declaration of 'strdup()' which conflicts slightly...
John Emmas [Tue, 4 Nov 2014 13:08:00 +0000 (13:08 +0000)]
When building with MSVC, guard a declaration of 'strdup()' which conflicts slightly with the MSVC declaration

(maybe we should just #include <string.h> ?)

9 years agoRemove an unneeded icon when building the VST scanner app with MSVC
John Emmas [Tue, 4 Nov 2014 13:02:27 +0000 (13:02 +0000)]
Remove an unneeded icon when building the VST scanner app with MSVC

9 years agoWhen running an (MSVC built) VST scanner app, make sure we can utilise debuggable...
John Emmas [Tue, 4 Nov 2014 12:41:04 +0000 (12:41 +0000)]
When running an (MSVC built) VST scanner app, make sure we can utilise debuggable versions if we need to

9 years agoAdd some new modules, needed for building the VST scanner app with MSVC
John Emmas [Tue, 4 Nov 2014 12:36:50 +0000 (12:36 +0000)]
Add some new modules, needed for building the VST scanner app with MSVC

9 years ago(gtk2_ardour) Remove the reliance on libfst, which we no longer build
John Emmas [Tue, 4 Nov 2014 12:30:07 +0000 (12:30 +0000)]
(gtk2_ardour) Remove the reliance on libfst, which we no longer build

(fst's functionality has now mostly been moved into libardour)

9 years agouse ArdourCanvas::TimeRectangle for regions, notes, markers
Paul Davis [Tue, 4 Nov 2014 02:48:02 +0000 (21:48 -0500)]
use ArdourCanvas::TimeRectangle for regions, notes, markers