ardour.git
9 years agoremove locate before loop, which was causing intermittent loop behavior
Ben Loftis [Fri, 30 Jan 2015 02:35:01 +0000 (20:35 -0600)]
remove locate before loop, which was causing intermittent loop behavior

9 years agouse Gtkmm2ext::possibly_translate_mod_to_make_legal_accelerator() in all cases where...
Paul Davis [Fri, 30 Jan 2015 16:08:56 +0000 (11:08 -0500)]
use Gtkmm2ext::possibly_translate_mod_to_make_legal_accelerator() in all cases where we use gtk_accel_groups_activate()

Because that function needs it, whereas the old gtk_window_activate_key() did not.

9 years agoIf 'force' is TRUE (when using 'Location::set_start()' or 'Location::set_end()')...
John Emmas [Fri, 30 Jan 2015 14:55:23 +0000 (14:55 +0000)]
If 'force' is TRUE (when using 'Location::set_start()' or 'Location::set_end()') make sure we do actually force the value to get set.

This gets us around a problem when converting a session from the old (Ardour2) format - where the Session Range (start) value was getting incorrectly set if we hadn't already set the end value.

9 years agofix “invalid use of incomplete type jack_client_t”
Robin Gareus [Fri, 30 Jan 2015 10:01:36 +0000 (11:01 +0100)]
fix “invalid use of incomplete type jack_client_t”

introduced in 66eef25

9 years agoclarify sync-lock and disable it by default.
Robin Gareus [Fri, 30 Jan 2015 09:42:43 +0000 (10:42 +0100)]
clarify sync-lock and disable it by default.

9 years agoamend 070818f
Robin Gareus [Fri, 30 Jan 2015 08:22:59 +0000 (09:22 +0100)]
amend 070818f

9 years agostop transport when process_routes fails, even when using the parallel graph executio...
Paul Davis [Thu, 29 Jan 2015 23:57:01 +0000 (18:57 -0500)]
stop transport when process_routes fails, even when using the parallel graph execution model

9 years agofix incorrect return value from sndfile_data_width()
Paul Davis [Thu, 29 Jan 2015 23:56:21 +0000 (18:56 -0500)]
fix incorrect return value from sndfile_data_width()

9 years agotake down backend specific threads with backend
Robin Gareus [Fri, 30 Jan 2015 00:26:47 +0000 (01:26 +0100)]
take down backend specific threads with backend

9 years agofix jack thread joining
Robin Gareus [Fri, 30 Jan 2015 00:25:54 +0000 (01:25 +0100)]
fix jack thread joining

at the time the graph gets around to takes down
client threads, the jack-backend’s jack_client has been reset.
But never mind: libjack does not care about it, anyway.

9 years agoreturn to old default disk chunk read size
Paul Davis [Thu, 29 Jan 2015 23:49:04 +0000 (18:49 -0500)]
return to old default disk chunk read size

9 years agodon't wipe out SHIFT from event state when processing keyboard events, as done in...
Paul Davis [Thu, 29 Jan 2015 17:15:36 +0000 (12:15 -0500)]
don't wipe out SHIFT from event state when processing keyboard events, as done in a recent commit

9 years agoin mixbus, treat the canvas rulers just like the canvas wrt mouse-wheel-zoom
Ben Loftis [Thu, 29 Jan 2015 17:23:49 +0000 (11:23 -0600)]
in mixbus, treat the canvas rulers just like the canvas wrt mouse-wheel-zoom

9 years agoconsolidate using SECONDARY+number bindings for region properties, such as gain,...
Ben Loftis [Thu, 29 Jan 2015 17:00:04 +0000 (11:00 -0600)]
consolidate using SECONDARY+number bindings for region properties, such as gain, mute, etc

9 years agoswitch WINDOW bindings to use SECONDARY instead and displace any bindings that conflicted
Ben Loftis [Thu, 29 Jan 2015 16:50:07 +0000 (10:50 -0600)]
switch WINDOW bindings to use SECONDARY instead and displace any bindings that conflicted

9 years agofix up and comment fmt-bindings tool
Paul Davis [Thu, 29 Jan 2015 02:02:57 +0000 (21:02 -0500)]
fix up and comment fmt-bindings tool

9 years agouse gtk_accel_groups_active() in preference to gtk_window_activate_key() since the...
Paul Davis [Thu, 29 Jan 2015 02:02:44 +0000 (21:02 -0500)]
use gtk_accel_groups_active() in preference to gtk_window_activate_key() since the latter behaves incorrectly

The window version will not activate bindings like <Mod4><Super>-space, whereas the former one works correctly. We already used
the former one just above, when handling "fakekeys".

Also add a utility function to show modifier state.

9 years agofix -Wreorder in 6377fe89
Robin Gareus [Thu, 29 Jan 2015 01:28:25 +0000 (02:28 +0100)]
fix -Wreorder in 6377fe89

9 years agoallow bundling of lv2core
Robin Gareus [Thu, 29 Jan 2015 01:12:15 +0000 (02:12 +0100)]
allow bundling of lv2core

Don’t statically initiate the lv2 world, use explicit call after
scanning bundles.

lilv_world_load_specifications() and lilv_world_load_plugin_classes()
are only ever called after lilv_world_load_all(), so we postpone
the call to it.

9 years agoMap window bindings to alt.
David Robillard [Wed, 28 Jan 2015 23:52:54 +0000 (18:52 -0500)]
Map window bindings to alt.

As they were before, got caught in the crossfire of super key bindings fix.

9 years agoguess what?!
Robin Gareus [Wed, 28 Jan 2015 22:50:07 +0000 (23:50 +0100)]
guess what?!

9 years agoadd lv2core to bundles
Robin Gareus [Wed, 28 Jan 2015 22:08:06 +0000 (23:08 +0100)]
add lv2core to bundles

The ontology is needed for plugin classification.

9 years agoreadtest: calculate running average and stddev
Robin Gareus [Wed, 28 Jan 2015 16:29:33 +0000 (17:29 +0100)]
readtest: calculate running average and stddev

9 years agoread-test format directly for gnuplot
Robin Gareus [Wed, 28 Jan 2015 13:35:17 +0000 (14:35 +0100)]
read-test format directly for gnuplot

9 years agoALSA-backend separate report for error and x-run
Robin Gareus [Wed, 28 Jan 2015 12:19:03 +0000 (13:19 +0100)]
ALSA-backend separate report for error and x-run

9 years agoALSA-Backend prefer ppoll()
Robin Gareus [Wed, 28 Jan 2015 12:17:40 +0000 (13:17 +0100)]
ALSA-Backend prefer ppoll()

9 years agofix #6117 - fader prelight
Robin Gareus [Wed, 28 Jan 2015 01:22:52 +0000 (02:22 +0100)]
fix #6117 - fader prelight

9 years agotowards fixing #5711
Robin Gareus [Tue, 27 Jan 2015 22:13:29 +0000 (23:13 +0100)]
towards fixing #5711

Don’t call ::output() [here: SilenceTrimmer::process()]
with no data to process.

If (position + N * period-size) % chunksize == 0;
frames_left == 0 before the last call to ::output().
chunker.h:60 keeps the ProcessContext<T>::EndOfInput
flag and the SilenceTrimmer will already have done ‘in_end’ processing.

9 years ago[Summary] Adding missing initialization of the date &time formats. “Init trashes...
Valeriy Kamyshniy [Tue, 27 Jan 2015 21:54:15 +0000 (23:54 +0200)]
[Summary] Adding missing initialization of the date &time formats. “Init trashes” caused a bit ruined logic of the export dialog.

9 years agofix printf format-security warning.
Robin Gareus [Tue, 27 Jan 2015 13:04:19 +0000 (14:04 +0100)]
fix printf format-security warning.

 warning: format string is not a string literal (potentially insecure) [-Wformat-security]

9 years agoDon't try to dereference a NULL ptr (the function 'ARDOUR::IO::nth()' can return...
John Emmas [Tue, 27 Jan 2015 11:59:23 +0000 (11:59 +0000)]
Don't try to dereference a NULL ptr (the function 'ARDOUR::IO::nth()' can return an invalid ptr, so let's make sure we test for it)

Note 1: Potentially we could have the same issue with 'AutomationLine::nth()' (although the current code seems okay)

Note 2: This (specific) problem seems mostly to affect Mixbus3 when it tries to load an old (version2) session from Ardour2. Mixbus can mark certain IO ports as being 'unused'. While loading sessions, function 'ARDOUR::IO::ensure_ports_locked()' deletes any unused ports. But later, the function 'ARDOUR::IO::make_connections_2X()' was crashing while trying to connect those (now NULL) ports. This commit fixes that crash but there's some evidence that it might only have moved the problem elsewhere. The version2 sessions now open successfully - but an MSVC (Debug) build now crashes whilst closing them (the Release build however, is okay). Someone who's more familiar with the code than me should review the Mixbus3/Ardour2 loading procedure to make sure it's safe.

9 years agoignore context menu click events, notably during drag but also for a couple of other...
Paul Davis [Mon, 26 Jan 2015 21:37:53 +0000 (16:37 -0500)]
ignore context menu click events, notably during drag but also for a couple of other purposes

Conflicts:
gtk2_ardour/editor_canvas_events.cc

9 years agoremove unnecessary commented-out line.
Paul Davis [Mon, 26 Jan 2015 16:58:35 +0000 (11:58 -0500)]
remove unnecessary commented-out line.

Session is marked as in-deletion during deletion itself

9 years agoon OS X, do not require click to activate the application
Paul Davis [Mon, 26 Jan 2015 16:55:48 +0000 (11:55 -0500)]
on OS X, do not require click to activate the application

9 years agoamend e3da18fd
Robin Gareus [Mon, 26 Jan 2015 16:12:09 +0000 (17:12 +0100)]
amend e3da18fd

9 years agorename ARDOUR_UI::idle_load() to ARDOUR_UI::load_from_application_api() to correctly...
Paul Davis [Mon, 26 Jan 2015 15:39:14 +0000 (10:39 -0500)]
rename ARDOUR_UI::idle_load() to ARDOUR_UI::load_from_application_api() to correctly indicate function

9 years agofix incorrect logic when loading session via NextStep document API
Paul Davis [Sun, 25 Jan 2015 17:53:48 +0000 (12:53 -0500)]
fix incorrect logic when loading session via NextStep document API

9 years agofix declaration of Cocoa NSApplicationDelegate methods
Paul Davis [Sun, 25 Jan 2015 17:51:59 +0000 (12:51 -0500)]
fix declaration of Cocoa NSApplicationDelegate methods

9 years agoRevert "alter default disk chunk sizes"
Paul Davis [Sun, 25 Jan 2015 16:42:14 +0000 (11:42 -0500)]
Revert "alter default disk chunk sizes"

This reverts commit 3068e55e5141eb95f7b9ff49ac711d42fba7a753.

9 years agoadd a simple status indicator to the Engine Dialog
Robin Gareus [Sun, 25 Jan 2015 09:19:46 +0000 (10:19 +0100)]
add a simple status indicator to the Engine Dialog

9 years agoaudio-engine use internal API to stop
Robin Gareus [Sun, 25 Jan 2015 09:19:06 +0000 (10:19 +0100)]
audio-engine use internal API to stop

emit signal(s) when engine is stopped due to backend
change.

9 years agofix latency measurement result display
Robin Gareus [Sun, 25 Jan 2015 09:18:33 +0000 (10:18 +0100)]
fix latency measurement result display

If measurement is fast (<100ms), the GUI timeout function
never displayed the measured value.

9 years agomidi note paste undo fix.
Robin Gareus [Sun, 25 Jan 2015 00:55:36 +0000 (01:55 +0100)]
midi note paste undo fix.

9 years agomake butler thread merely ask for session state save, not actually do the save itself.
Paul Davis [Sun, 25 Jan 2015 00:27:28 +0000 (19:27 -0500)]
make butler thread merely ask for session state save, not actually do the save itself.

This prevents the possibility of cross-thread calls in the GUI when it adds its state
to the session via extra XML

9 years agoadd handler for, and connect to, Session::SaveSessionRequested
Paul Davis [Sun, 25 Jan 2015 00:17:13 +0000 (19:17 -0500)]
add handler for, and connect to, Session::SaveSessionRequested

9 years agoAdd a new signal (not yet used) to initiate session saves; alter signal name for...
Paul Davis [Sun, 25 Jan 2015 00:06:31 +0000 (19:06 -0500)]
Add a new signal (not yet used) to initiate session saves; alter signal name for existing signal used to allow other objects to add XML state to session

9 years agoalter default disk chunk sizes
Paul Davis [Sun, 25 Jan 2015 00:05:05 +0000 (19:05 -0500)]
alter default disk chunk sizes

9 years agoadd function to get data width for ARDOUR::SampleFormat
Paul Davis [Sat, 24 Jan 2015 23:53:10 +0000 (18:53 -0500)]
add function to get data width for ARDOUR::SampleFormat

9 years agoScrollGroup::covers_{window,canvas}() need to account for possible non-zero position...
Paul Davis [Sat, 24 Jan 2015 19:08:19 +0000 (14:08 -0500)]
ScrollGroup::covers_{window,canvas}() need to account for possible non-zero position of the group.

They also do NOT need to consider scroll offset

9 years agoScrollGroups are kept in their own list, so ::window_to_canvas() does not need to...
Paul Davis [Sat, 24 Jan 2015 19:07:36 +0000 (14:07 -0500)]
ScrollGroups are kept in their own list, so ::window_to_canvas() does not need to inspect root group children to find them

Conflicts:
libs/canvas/canvas.cc

9 years agoALSA backend: synchronous switch to/from freewheeling
Robin Gareus [Sat, 24 Jan 2015 22:39:34 +0000 (23:39 +0100)]
ALSA backend: synchronous switch to/from freewheeling

9 years agoDummyBackend: sync switch to freewheeling
Robin Gareus [Sat, 24 Jan 2015 21:45:42 +0000 (22:45 +0100)]
DummyBackend: sync switch to freewheeling

9 years agofix copy/drag abort.
Robin Gareus [Sat, 24 Jan 2015 19:40:07 +0000 (20:40 +0100)]
fix copy/drag abort.

9 years agomake MouseCursors invalid cursor API be static; use to initialize default cursor...
Paul Davis [Sat, 24 Jan 2015 17:26:58 +0000 (12:26 -0500)]
make MouseCursors invalid cursor API be static; use to initialize default cursor value in Drag API; use C API to set canvas cursor

9 years agomake -n (numfiles) argument do something
Paul Davis [Fri, 23 Jan 2015 21:17:35 +0000 (16:17 -0500)]
make -n (numfiles) argument do something

9 years agoallow use of null pointer as a valid cursor (implies using cursor of parent window)
Paul Davis [Fri, 23 Jan 2015 20:15:29 +0000 (15:15 -0500)]
allow use of null pointer as a valid cursor (implies using cursor of parent window)

9 years agofix indentation from prior commit
Paul Davis [Fri, 23 Jan 2015 18:45:21 +0000 (13:45 -0500)]
fix indentation from prior commit

9 years ago[Summary] Fixed bug 45163: Trim range from right corner of timeline leads Tracks...
GZharun [Fri, 23 Jan 2015 12:46:23 +0000 (14:46 +0200)]
[Summary] Fixed bug 45163: Trim range from right corner of timeline leads Tracks to crash
[Details] Crash was provoked because of an attempt to add commands to the session reversible command, but when autoscroll started and trim began with autoscroll the session reversible command was not created for for Trim Drag.

9 years agoadd write tester script
Paul Davis [Fri, 23 Jan 2015 17:25:24 +0000 (12:25 -0500)]
add write tester script

9 years agoadjust sftest.cc to be more usable as a write-bandwidth tester
Paul Davis [Fri, 23 Jan 2015 17:25:14 +0000 (12:25 -0500)]
adjust sftest.cc to be more usable as a write-bandwidth tester

9 years agofix small bug when using -N for nocache
Paul Davis [Fri, 23 Jan 2015 17:24:53 +0000 (12:24 -0500)]
fix small bug when using -N for nocache

9 years agosplit apart read and write chunk size and offer platform-dependent sizes for reading...
Paul Davis [Thu, 22 Jan 2015 17:52:06 +0000 (12:52 -0500)]
split apart read and write chunk size and offer platform-dependent sizes for reading. Write chunk size should remain unchanged from before.

9 years agofix crash at exit if location-ui was used
Robin Gareus [Fri, 23 Jan 2015 01:16:21 +0000 (02:16 +0100)]
fix crash at exit if location-ui was used

LocationEditRow members are destroyed after ~LocationUI()
destroys the clock_group. -> segfault in ~LocationEditRow()

9 years agomove control app button adjacent to sample rate and bufsize settings
Ben Loftis [Thu, 22 Jan 2015 21:00:13 +0000 (15:00 -0600)]
move control app button adjacent to sample rate and bufsize settings

9 years agoremove channelcount selectors for mixbus
Ben Loftis [Thu, 22 Jan 2015 20:54:56 +0000 (14:54 -0600)]
remove channelcount selectors for mixbus

9 years agoreally re-fix linux cache clear
Paul Davis [Thu, 22 Jan 2015 17:21:15 +0000 (12:21 -0500)]
really re-fix linux cache clear

9 years agocalculus is a lost art.
Robin Gareus [Thu, 22 Jan 2015 17:16:07 +0000 (18:16 +0100)]
calculus is a lost art.

9 years agofix buffer cache flush for linux, and avoid incorrect indirection in interleaved...
Paul Davis [Thu, 22 Jan 2015 17:15:39 +0000 (12:15 -0500)]
fix buffer cache flush for linux, and avoid incorrect indirection in interleaved case

9 years agoRevert "use product-neutral name for LV2 install dir"
Paul Davis [Thu, 22 Jan 2015 16:38:28 +0000 (11:38 -0500)]
Revert "use product-neutral name for LV2 install dir"

This reverts commit 44ca3c948c00a5403400d8cd46e5258ab13ff5be.

9 years agoadjust run-readtest.sh so that it can be used as-is for testing multiple blocksizes
Paul Davis [Thu, 22 Jan 2015 16:27:49 +0000 (11:27 -0500)]
adjust run-readtest.sh so that it can be used as-is for testing multiple blocksizes

9 years agoremove useless error output
Paul Davis [Thu, 22 Jan 2015 16:22:29 +0000 (11:22 -0500)]
remove useless error output

9 years agouse product-neutral name for LV2 install dir
Paul Davis [Thu, 22 Jan 2015 02:20:07 +0000 (21:20 -0500)]
use product-neutral name for LV2 install dir

9 years agoupdate selection clock
Robin Gareus [Wed, 21 Jan 2015 21:26:14 +0000 (22:26 +0100)]
update selection clock

9 years agoset Theme buttons on state reset
Robin Gareus [Wed, 21 Jan 2015 19:24:39 +0000 (20:24 +0100)]
set Theme buttons on state reset

cleaner version of last commit, set GUI elements
on state-reset.

9 years agoinitialize theme > gradient sliders.
Robin Gareus [Wed, 21 Jan 2015 18:41:15 +0000 (19:41 +0100)]
initialize theme > gradient sliders.

9 years agoapply Theme > “Show waveform clipping”
Robin Gareus [Wed, 21 Jan 2015 18:35:04 +0000 (19:35 +0100)]
apply Theme > “Show waveform clipping”

fixes http://tracker.ardour.org/view.php?id=5589#c15515

9 years agocorrect run-readtest.sh for use on OS X as well
Paul Davis [Tue, 20 Jan 2015 22:19:23 +0000 (17:19 -0500)]
correct run-readtest.sh for use on OS X as well

9 years agotweaks to make more C-like and quieten down if desired; plus additional output at end
Paul Davis [Tue, 20 Jan 2015 21:17:53 +0000 (16:17 -0500)]
tweaks to make more C-like and quieten down if desired; plus additional output at end

9 years agoadd script for running readtest
Paul Davis [Tue, 20 Jan 2015 21:17:32 +0000 (16:17 -0500)]
add script for running readtest

9 years agoclarify reasonable synth description.
Robin Gareus [Tue, 20 Jan 2015 20:25:59 +0000 (21:25 +0100)]
clarify reasonable synth description.

9 years agofew more read-test tweaks:
Robin Gareus [Tue, 20 Jan 2015 17:29:35 +0000 (18:29 +0100)]
few more read-test tweaks:

* add a file-limit option
* print max elapsed read time

9 years agofix bundled LV2 installation path (waf install)
Robin Gareus [Tue, 20 Jan 2015 17:01:38 +0000 (18:01 +0100)]
fix bundled LV2 installation path (waf install)

9 years agoreadtest: print min/avg report at end
Robin Gareus [Tue, 20 Jan 2015 00:27:47 +0000 (01:27 +0100)]
readtest: print min/avg report at end

9 years agoNOOP, re-indent
Robin Gareus [Mon, 19 Jan 2015 23:57:22 +0000 (00:57 +0100)]
NOOP, re-indent

9 years agofix to compile with gcc on linux
Robin Gareus [Mon, 19 Jan 2015 23:55:11 +0000 (00:55 +0100)]
fix to compile with gcc on linux

9 years agorename readtest (.c not .cc)
Robin Gareus [Mon, 19 Jan 2015 23:54:48 +0000 (00:54 +0100)]
rename readtest (.c not .cc)

9 years agofew more basic ControList/Curve Tests
Robin Gareus [Mon, 19 Jan 2015 23:46:58 +0000 (00:46 +0100)]
few more basic ControList/Curve Tests

9 years agoCurve::_get_vector: fix return value when veclen == 1
Guido Aulisi [Sat, 16 Aug 2014 10:26:33 +0000 (12:26 +0200)]
Curve::_get_vector: fix return value when veclen == 1

When the crossfade length is only 1 frame, I got strange
gain coefficients from get_vector (63 in my case).
The function wrongly returned the x axis value.

9 years ago2-point Curve Linear Interpolation Test
Robin Gareus [Mon, 19 Jan 2015 22:53:52 +0000 (23:53 +0100)]
2-point Curve Linear Interpolation Test

9 years agoC fix for readtest (git command ordering caused this)
Paul Davis [Mon, 19 Jan 2015 21:18:48 +0000 (16:18 -0500)]
C fix for readtest (git command ordering caused this)

9 years agovarious fixes and improvements
Paul Davis [Mon, 19 Jan 2015 21:17:16 +0000 (16:17 -0500)]
various fixes and improvements

9 years agonew C version of readtester, without libsndfile
Paul Davis [Mon, 19 Jan 2015 21:16:51 +0000 (16:16 -0500)]
new C version of readtester, without libsndfile

9 years agominimalistic Evoral::Curve Unit Test.
Robin Gareus [Mon, 19 Jan 2015 21:14:58 +0000 (22:14 +0100)]
minimalistic Evoral::Curve Unit Test.

9 years agonew read tester for investigating read bandwidth issues
Paul Davis [Mon, 19 Jan 2015 19:57:24 +0000 (14:57 -0500)]
new read tester for investigating read bandwidth issues

9 years agoFixes for when rubberbanding_snaps_to_grid config setting is off.
nick_m [Mon, 19 Jan 2015 17:49:44 +0000 (04:49 +1100)]
Fixes for when rubberbanding_snaps_to_grid config setting is off.
The initial point and the ultimately selected items were always following
the snap settings. Also the VCC was displaying incorrectly on button press.

9 years agoHotfix crash in OSX engine dialog.
Robin Gareus [Mon, 19 Jan 2015 16:50:50 +0000 (17:50 +0100)]
Hotfix crash in OSX engine dialog.

This is not really a fix, just some quick hack
to make ardour start at all if there’s no prior
CoreAudio EngineState in the config.

9 years agouse C locale, because POSIX locale is not supported on windows, and operation is...
Ben Loftis [Mon, 19 Jan 2015 13:29:25 +0000 (07:29 -0600)]
use C locale, because POSIX locale is not supported on windows, and operation is undefined.  C works on all platforms

9 years agoOn Windows, #include <shellapi.h> so we can use ShellExecute()
John Emmas [Sun, 18 Jan 2015 18:52:24 +0000 (18:52 +0000)]
On Windows, #include <shellapi.h> so we can use ShellExecute()

9 years agofix open_uri for windows
Ben Loftis [Sun, 18 Jan 2015 17:16:28 +0000 (11:16 -0600)]
fix open_uri for windows

9 years agoDramatically improve windows session-save-time by avoiding recursive calls to set_locale.
Ben Loftis [Sun, 18 Jan 2015 15:43:05 +0000 (09:43 -0600)]
Dramatically improve windows session-save-time by avoiding recursive calls to set_locale.