ardour.git
9 years agouse fixed number of steps for dB-scale x-fade curves.
Robin Gareus [Thu, 29 May 2014 20:40:40 +0000 (22:40 +0200)]
use fixed number of steps for dB-scale x-fade curves.

32 steps is sufficient for all practical musical purposes.

9 years agofixed number of steps for symmetric fades:
Robin Gareus [Thu, 29 May 2014 19:03:46 +0000 (21:03 +0200)]
fixed number of steps for symmetric fades:

Extra steps are all below -20dB vs inverse signal being over -2dB.
linear interpolation -6dB steps is sufficient for the tail.

9 years agofix data loss/file deletion caused by mistaken used of Session::source_by_path()...
Paul Davis [Thu, 29 May 2014 20:27:33 +0000 (16:27 -0400)]
fix data loss/file deletion caused by mistaken used of Session::source_by_path() to check if an AUDIO filesource with a given path already exists.

::source_by_path() was written for MIDI files only. I fixed the call and renamed the two similar functions (one for audio and one for MIDI) to make it more clear.

9 years agofix symmetric fade-shape (still variable number of steps)
Robin Gareus [Thu, 29 May 2014 18:53:18 +0000 (20:53 +0200)]
fix symmetric fade-shape (still variable number of steps)

9 years agoSymmetric x-fade, use equivalent of -6dB per step for 7 steps.
Robin Gareus [Thu, 29 May 2014 14:59:04 +0000 (16:59 +0200)]
Symmetric x-fade, use equivalent of -6dB per step for 7 steps.

9 years agoset Gtk::RadioAction state on instant.xml load.
Robin Gareus [Thu, 29 May 2014 12:16:15 +0000 (14:16 +0200)]
set Gtk::RadioAction state on instant.xml load.

This should really be done in ArdourDropdown somehow.

Fixes issues introduced at b9708d5: If after session-load some
radio-item other than the first one is set active, it is
impossible to switch to the first.
e.g. set "Snap to Grid", Save Session, Load Session, trying to
switch to "Snap to None" fails until another mode is selected first.

9 years agomore new fade icons from Chris Goddard
Robin Gareus [Thu, 29 May 2014 11:19:47 +0000 (13:19 +0200)]
more new fade icons from Chris Goddard

9 years agofix typo in vst doc.
Robin Gareus [Thu, 29 May 2014 05:49:36 +0000 (07:49 +0200)]
fix typo in vst doc.

9 years agoupdate x-fade context-menu
Robin Gareus [Thu, 29 May 2014 05:49:26 +0000 (07:49 +0200)]
update x-fade context-menu

9 years agosmoothen rendering of x-fades
Robin Gareus [Thu, 29 May 2014 05:48:43 +0000 (07:48 +0200)]
smoothen rendering of x-fades

9 years agoincrease accuracy of fades.
Robin Gareus [Thu, 29 May 2014 05:48:25 +0000 (07:48 +0200)]
increase accuracy of fades.

9 years agofix prev commit
Robin Gareus [Thu, 29 May 2014 03:30:13 +0000 (05:30 +0200)]
fix prev commit

9 years agorenice x-fade rendering w/cairo-antialiasing
Robin Gareus [Thu, 29 May 2014 03:06:02 +0000 (05:06 +0200)]
renice x-fade rendering w/cairo-antialiasing

9 years agorevert x-fade curves to Mixbus2.
Robin Gareus [Thu, 29 May 2014 02:37:13 +0000 (04:37 +0200)]
revert x-fade curves to Mixbus2.

9 years agomake building the dummy backend be a configure-time option. defaults to False for...
Paul Davis [Thu, 29 May 2014 02:30:06 +0000 (22:30 -0400)]
make building the dummy backend be a configure-time option. defaults to False for the time being

9 years agoreplace use of Curve with XFadeCurve.
Robin Gareus [Thu, 29 May 2014 01:10:22 +0000 (03:10 +0200)]
replace use of Curve with XFadeCurve.

9 years agoCanvas: new x-fade drawing, two curve widget
Robin Gareus [Thu, 29 May 2014 01:09:57 +0000 (03:09 +0200)]
Canvas: new x-fade drawing, two curve widget

9 years agoupdate fade icons
Robin Gareus [Wed, 28 May 2014 20:20:28 +0000 (22:20 +0200)]
update fade icons

9 years agofix wscript to handle git revision ID that consists of just MAJOR.MINOR, as will...
Paul Davis [Wed, 28 May 2014 19:53:25 +0000 (15:53 -0400)]
fix wscript to handle git revision ID that consists of just MAJOR.MINOR, as will happen if the repo is at the exact same rev as the MAJOR.MINOR tag

9 years agofix x-fade icons in context menu
Robin Gareus [Wed, 28 May 2014 17:46:31 +0000 (19:46 +0200)]
fix x-fade icons in context menu

9 years agoRevert "cairo sub-surface prototype & example
Robin Gareus [Wed, 28 May 2014 17:12:32 +0000 (19:12 +0200)]
Revert "cairo sub-surface prototype & example

This reverts commit c57fcde78cc0fb393fb7420f1edbc71edf572bd0.
and also     commit f1f8f89fcb9312065a818233dff4a3f1871fa7fe.

9 years agofix up operation of Editor::temporal_zoom_to_frame() which had not been updated since...
Paul Davis [Wed, 28 May 2014 16:18:30 +0000 (12:18 -0400)]
fix up operation of Editor::temporal_zoom_to_frame() which had not been updated since samples_per_pixel was changed to an integer (framecnt_t)

9 years agoexercise subsurface rendering for x-fade curves
Robin Gareus [Wed, 28 May 2014 15:12:33 +0000 (17:12 +0200)]
exercise subsurface rendering for x-fade curves

9 years agocairo sub-surface prototype - intermediate flattened group renderer.
Robin Gareus [Wed, 28 May 2014 15:12:03 +0000 (17:12 +0200)]
cairo sub-surface prototype - intermediate flattened group renderer.

9 years agoVST: fix name detection if effGetEffectName is N/A, remove superfluous \0.
Robin Gareus [Wed, 28 May 2014 00:15:52 +0000 (02:15 +0200)]
VST: fix name detection if effGetEffectName is N/A, remove superfluous \0.

9 years agoVST: properly query name from plugin
Robin Gareus [Tue, 27 May 2014 23:59:19 +0000 (01:59 +0200)]
VST: properly query name from plugin

9 years agoCurve: anti-aliasing.
Robin Gareus [Tue, 27 May 2014 17:28:56 +0000 (19:28 +0200)]
Curve: anti-aliasing.

use cairo for anti-aliasing, and ignore explicit Catmull-Rom
points for that fall on the same x-cordinate.

9 years agofor trx, use the primary clock for verbose cursor units
Paul Davis [Tue, 27 May 2014 17:25:46 +0000 (13:25 -0400)]
for trx, use the primary clock for verbose cursor units

9 years agox-fade drawing rework, part one
Robin Gareus [Tue, 27 May 2014 14:28:28 +0000 (16:28 +0200)]
x-fade drawing rework, part one

9 years agoimplement Curve in/outside fill
Robin Gareus [Tue, 27 May 2014 14:27:20 +0000 (16:27 +0200)]
implement Curve in/outside fill

9 years agoglobal one-time setup of waveform preferences.
Robin Gareus [Mon, 26 May 2014 22:34:27 +0000 (00:34 +0200)]
global one-time setup of waveform preferences.

see note in previous commit.

9 years agopersistent waveform shape setting.
Robin Gareus [Mon, 26 May 2014 22:33:42 +0000 (00:33 +0200)]
persistent waveform shape setting.

NOTE: the call to set_global_shape() only needs to happen once,
presumably in a hook in the editor that catches Config::Changed

The same is true for waveform-scale and clipping. But for now it's
at least consistent.

9 years agodirectly apply waveform clip-level changes
Robin Gareus [Mon, 26 May 2014 22:33:15 +0000 (00:33 +0200)]
directly apply waveform clip-level changes

9 years ago(Windows) Add support for finding the bundled version of Jack which comes with Mixbus
John Emmas [Tue, 27 May 2014 13:48:44 +0000 (14:48 +0100)]
(Windows) Add support for finding the bundled version of Jack which comes with Mixbus

A few things need to be tested / completed:-
    1) The code is currently guarded by #ifdef COMPILER_MSVC. This is just precautionary. If it builds okay with MinGW ,the guard can be removed.
    2) Windows Playback and Capture devices almost always have different names. This needs to get accommodated in our Backend dialog (as in Mixbus)
    3) Windows Playback and Capture devices will almost always contain spaces. We need to accommodate this when writing to .jackdrc (surround them in quote marks)

9 years agoRemove an unnecessary #define
John Emmas [Tue, 27 May 2014 12:24:51 +0000 (13:24 +0100)]
Remove an unnecessary #define

9 years agoUse PLATFORM_WINDOWS (in preference to WIN32) for consistency with the other libraries
John Emmas [Tue, 27 May 2014 08:51:39 +0000 (09:51 +0100)]
Use PLATFORM_WINDOWS (in preference to WIN32) for consistency with the other libraries

9 years ago"We brake for nobody." oh wait. - fixes Rectified Waveform view.
Robin Gareus [Mon, 26 May 2014 20:45:42 +0000 (22:45 +0200)]
"We brake for nobody." oh wait. - fixes Rectified Waveform view.

9 years agofix region export with fades and gain.
Robin Gareus [Mon, 26 May 2014 19:30:58 +0000 (21:30 +0200)]
fix region export with fades and gain.

region.read_at() is additive - it assumes the buffer may already contain
data from from lower regions.

9 years agoNOOP, just re-indent diagram
Robin Gareus [Mon, 26 May 2014 19:22:30 +0000 (21:22 +0200)]
NOOP, just re-indent diagram

9 years agofix prev commit, window-offset for x-fade drawing
Robin Gareus [Mon, 26 May 2014 16:22:21 +0000 (18:22 +0200)]
fix prev commit, window-offset for x-fade drawing

9 years agofix x-fade drawing
Robin Gareus [Mon, 26 May 2014 15:02:21 +0000 (17:02 +0200)]
fix x-fade drawing

Catmull-Rom curve samples are not equally spaced on the x-axis.
Furthermore, Curve::map_value() is not needed, cairo line_to
already interpolates.

9 years agofixup freeze operation.
Robin Gareus [Mon, 26 May 2014 05:00:00 +0000 (07:00 +0200)]
fixup freeze operation.

since rev. 1e3a955, Session::write_one_track() gets and drops
thread buffers.

9 years agoapply gain automation on bounce - fixes 5887
Robin Gareus [Mon, 26 May 2014 04:58:44 +0000 (06:58 +0200)]
apply gain automation on bounce - fixes 5887

9 years agoallow to set custom thread-buffer size
Robin Gareus [Mon, 26 May 2014 04:21:05 +0000 (06:21 +0200)]
allow to set custom thread-buffer size

This is needed for gain and pan automation buffers
as well as silent and scratch buffers when bouncing or
exporting with larger chunk size than the current engine
period.

9 years agoprocess effect-automation when bouncing w/processing
Robin Gareus [Mon, 26 May 2014 04:17:49 +0000 (06:17 +0200)]
process effect-automation when bouncing w/processing

9 years agoignore sends when bouncing w/processing - only break on inserts.
Robin Gareus [Sun, 25 May 2014 19:18:25 +0000 (21:18 +0200)]
ignore sends when bouncing w/processing - only break on inserts.

9 years agobounce to target number of channels
Robin Gareus [Sun, 25 May 2014 16:10:01 +0000 (18:10 +0200)]
bounce to target number of channels

9 years agocompensate for processor latency during bounce
Robin Gareus [Sun, 25 May 2014 17:43:37 +0000 (19:43 +0200)]
compensate for processor latency during bounce

9 years agofix bounce with processing (thread buffers) fixes #5920
Robin Gareus [Sun, 25 May 2014 06:23:36 +0000 (08:23 +0200)]
fix bounce with processing (thread buffers) fixes #5920

9 years agocosmetic fix to OSX packaging temp file
Robin Gareus [Sun, 25 May 2014 06:22:29 +0000 (08:22 +0200)]
cosmetic fix to OSX packaging temp file

9 years agoallow to switch from/to dummy-backend
Robin Gareus [Sat, 24 May 2014 22:23:14 +0000 (00:23 +0200)]
allow to switch from/to dummy-backend

partos of this may become unnecessary once
libardour handles backend changes properly^Wdifferently.

9 years agoDummyBackend: implement port connect_callback()
Robin Gareus [Sat, 24 May 2014 22:21:44 +0000 (00:21 +0200)]
DummyBackend: implement port connect_callback()

9 years agoreally fix osx mavericks detection
Robin Gareus [Sat, 24 May 2014 22:21:20 +0000 (00:21 +0200)]
really fix osx mavericks detection

9 years agofix script breakage
Paul Davis [Sat, 24 May 2014 20:20:58 +0000 (16:20 -0400)]
fix script breakage

9 years agofix sensitivity of engine dialog driver_combo.
Robin Gareus [Sat, 24 May 2014 18:09:29 +0000 (20:09 +0200)]
fix sensitivity of engine dialog driver_combo.

9 years agoosx 10.9 needs c++11 (it's now default and used for the build-stack)
Robin Gareus [Sat, 24 May 2014 18:09:11 +0000 (20:09 +0200)]
osx 10.9 needs c++11 (it's now default and used for the build-stack)

9 years agofix typo link*er*_flags for OSX w/c++11
Robin Gareus [Sat, 24 May 2014 18:08:15 +0000 (20:08 +0200)]
fix typo link*er*_flags for OSX w/c++11

9 years agoInitialise _soundcloud_upload to false in ExportFormatSpecification
Colin Fletcher [Fri, 23 May 2014 19:21:56 +0000 (20:21 +0100)]
Initialise _soundcloud_upload to false in ExportFormatSpecification

9 years agofix for OSX 10.0/clang (missing symbol) by cth
Robin Gareus [Fri, 23 May 2014 18:48:56 +0000 (20:48 +0200)]
fix for OSX 10.0/clang (missing symbol) by cth

9 years agoAdd and use a DEBUG flag for Soundcloud uploads.
Colin Fletcher [Fri, 23 May 2014 18:36:47 +0000 (19:36 +0100)]
Add and use a DEBUG flag for Soundcloud uploads.

Replace output to stdout/stderr from Soundcloud upload functions with
DEBUG_TRACE (DEBUG::Soundcloud, ...).

9 years agoRemove Soundcloud export format presets
Colin Fletcher [Fri, 23 May 2014 18:05:33 +0000 (19:05 +0100)]
Remove Soundcloud export format presets

Now that Soundcloud export isn't a persistent property of export presets,
these are of no use whatsoever.

9 years agoSet 'downloadable' property on Soundcloud uploads
Colin Fletcher [Fri, 23 May 2014 17:59:53 +0000 (18:59 +0100)]
Set 'downloadable' property on Soundcloud uploads

Set the downloadable property according to what the user chose on files
uploaded to Soundcloud.

9 years agoShow URI of file uploaded to Soundcloud in log window.
Colin Fletcher [Fri, 23 May 2014 17:47:33 +0000 (18:47 +0100)]
Show URI of file uploaded to Soundcloud in log window.

9 years agoVisual tweaks to Soundcloud panel
Colin Fletcher [Fri, 23 May 2014 17:45:40 +0000 (18:45 +0100)]
Visual tweaks to Soundcloud panel

Re-arrange the items in the Soundcloud panel into a more sensible order &
arrangement, and add a (not-yet functional) tick-box to set the uploaded
files to be downloadable.

9 years agoBetter names for Soundcloud-related members of ExportHandler
Colin Fletcher [Fri, 23 May 2014 17:33:43 +0000 (18:33 +0100)]
Better names for Soundcloud-related members of ExportHandler

Rename the Soundcloud-related members of ExportHandler to all begin with
soundcloud_, and rename a couple of members of SoundcloudExportSelector
too for consistency.

9 years agoMake Soundcloud upload applicable to any export format.
Colin Fletcher [Fri, 23 May 2014 17:14:37 +0000 (18:14 +0100)]
Make Soundcloud upload applicable to any export format.

Add soundcloud_upload property back into ExportFormatSpecification, but
instead of making it settable in the export format specification dialog,
add a tick-box in each tab of ExportFileNotebook to allow setting it.

9 years agoRemove Soundcloud upload from export format specification
Colin Fletcher [Wed, 21 May 2014 16:52:42 +0000 (17:52 +0100)]
Remove Soundcloud upload from export format specification

Remove the Soundcloud upload property from export formats - it doesn't
belong there, since it's a thing which can apply (or not) to any format
preset.

9 years agoFix MS-DOS line endings
Colin Fletcher [Wed, 21 May 2014 17:07:31 +0000 (18:07 +0100)]
Fix MS-DOS line endings

Somehow sfdb_freesound_mootcher.cc has ended up with MS-DOS style line
endings again. Put it back to UNIX-style.

9 years agometerbridge: don't include disk/input buttons on busses; fixes #5935
Robin Gareus [Thu, 22 May 2014 22:41:43 +0000 (00:41 +0200)]
meterbridge: don't include disk/input buttons on busses; fixes #5935

9 years agoadd GPLv2 to exec_wrapper
Robin Gareus [Thu, 22 May 2014 21:44:28 +0000 (23:44 +0200)]
add GPLv2 to exec_wrapper

10 years agowaves_backend (MSVC project) - Adapt for using Waves's (customized) portaudio_x86...
John Emmas [Wed, 21 May 2014 11:50:31 +0000 (12:50 +0100)]
waves_backend (MSVC project) - Adapt for using Waves's (customized) portaudio_x86 library (Windows)

10 years agojack_backend (MSVC project) - Adapt for using portaudio_x86 library (Windows)
John Emmas [Wed, 21 May 2014 11:49:24 +0000 (12:49 +0100)]
jack_backend (MSVC project) - Adapt for using portaudio_x86 library (Windows)

10 years agoAdd newly introduced sources to MSVC projects
John Emmas [Wed, 21 May 2014 11:47:03 +0000 (12:47 +0100)]
Add newly introduced sources to MSVC projects

(SoundCloud export stuff)

10 years agoUse Glib::usleep() for consistency
John Emmas [Wed, 21 May 2014 11:45:13 +0000 (12:45 +0100)]
Use Glib::usleep() for consistency

10 years agoenforce style-guide #3, #26 and #27
Robin Gareus [Wed, 21 May 2014 00:25:45 +0000 (02:25 +0200)]
enforce style-guide #3, #26 and #27

10 years agoCoreMidi is also needed on OSX.6
Robin Gareus [Wed, 21 May 2014 00:17:35 +0000 (02:17 +0200)]
CoreMidi is also needed on OSX.6

10 years agoosx-bundle: fix vfork
Robin Gareus [Wed, 21 May 2014 00:13:00 +0000 (02:13 +0200)]
osx-bundle: fix vfork

10 years agofix type typo
Robin Gareus [Tue, 20 May 2014 22:19:15 +0000 (00:19 +0200)]
fix type typo

10 years agoremove debug output from system_exec
Colin Fletcher [Mon, 19 May 2014 21:48:28 +0000 (22:48 +0100)]
remove debug output from system_exec

remove the debug output from pbd/system_exec: it's of no further use, and
also breaks optimised builds.

10 years agoMerge branch 'noppc' of https://github.com/mojofunk/ardour into cairocanvas
Paul Davis [Mon, 19 May 2014 21:45:01 +0000 (17:45 -0400)]
Merge branch 'noppc' of https://github.com/mojofunk/ardour into cairocanvas

10 years agoMerge branch 'mingw-updates' of https://github.com/mojofunk/ardour into cairocanvas
Paul Davis [Mon, 19 May 2014 21:19:43 +0000 (17:19 -0400)]
Merge branch 'mingw-updates' of https://github.com/mojofunk/ardour into cairocanvas

10 years agoMerge branch 'export-dialog' into cairocanvas
Colin Fletcher [Mon, 19 May 2014 19:54:36 +0000 (20:54 +0100)]
Merge branch 'export-dialog' into cairocanvas

Fix merge conflicts in:
gtk2_ardour/export_range_markers_dialog.cc
gtk2_ardour/wscript
libs/ardour/ardour/export_handler.h
libs/ardour/system_exec.cc
libs/pbd/pbd/system_exec.h
libs/pbd/system_exec.cc

10 years agoindent in wscript uses spaces
Colin Fletcher [Mon, 19 May 2014 19:50:37 +0000 (20:50 +0100)]
indent in wscript uses spaces

10 years agoUse libardour SystemExec wrapper in gtk2_ardour
Colin Fletcher [Mon, 19 May 2014 18:52:32 +0000 (19:52 +0100)]
Use libardour SystemExec wrapper in gtk2_ardour

#include ardour/system_exec.h where SystemExec is used in gtk2_ardour to
get the libardour wrapper class, and remove the include completely where
it's no longer required.

10 years agoremove unnecessary and wierd constant for bottom rect (drop zone) of track canvas
Paul Davis [Sat, 17 May 2014 22:46:22 +0000 (18:46 -0400)]
remove unnecessary and wierd constant for bottom rect (drop zone) of track canvas

10 years agocomment tweak
Paul Davis [Sat, 17 May 2014 21:31:11 +0000 (17:31 -0400)]
comment tweak

10 years agoadding a new track via copy-region-drag now works (and shares code with the non-copy...
Paul Davis [Sat, 17 May 2014 21:24:42 +0000 (17:24 -0400)]
adding a new track via copy-region-drag now works (and shares code with the non-copy case

10 years agonon-copy region drag now creates a new track when a region is dragged to the drop...
Paul Davis [Sat, 17 May 2014 19:51:08 +0000 (15:51 -0400)]
non-copy region drag now creates a new track when a region is dragged to the drop zone

10 years agochange return type of Editor::axis_view_from_route()
Paul Davis [Sat, 17 May 2014 19:50:35 +0000 (15:50 -0400)]
change return type of Editor::axis_view_from_route()

10 years agoremove unused variable
Paul Davis [Sat, 17 May 2014 19:50:03 +0000 (15:50 -0400)]
remove unused variable

10 years agopart one of allowing region drag to the bottom (drop-zone) rect of track canvas
Paul Davis [Sat, 17 May 2014 16:17:16 +0000 (12:17 -0400)]
part one of allowing region drag to the bottom (drop-zone) rect of track canvas

10 years agoAdd back libardour wrappers for PBD::SystemExec
Colin Fletcher [Sun, 18 May 2014 22:02:24 +0000 (23:02 +0100)]
Add back libardour wrappers for PBD::SystemExec

Add back ARDOUR::SystemExec wrapper for PBD::SystemExec, and add
constructor for command line with parameter substitution.

10 years agoUse ARDOUR namespace for SystemExec
Colin Fletcher [Sun, 18 May 2014 21:33:25 +0000 (22:33 +0100)]
Use ARDOUR namespace for SystemExec

Explicitly use ARDOUR::SystemExec, and #include the right header for it
too.

10 years agoSystemExec: copy last argument from command line to argv[]
Colin Fletcher [Sun, 18 May 2014 19:49:58 +0000 (20:49 +0100)]
SystemExec: copy last argument from command line to argv[]

Make sure to copy any part of the command line after the last delimiter
to argv[] when creating a SystemExec with an escaped command line.

10 years agopartial fix for #5871 - midi-buffer size
Robin Gareus [Sat, 17 May 2014 20:13:03 +0000 (22:13 +0200)]
partial fix for #5871 - midi-buffer size

10 years agovst - fix effGetParameterProperties; label may be unset.
Robin Gareus [Sat, 17 May 2014 15:01:02 +0000 (17:01 +0200)]
vst - fix effGetParameterProperties; label may be unset.

10 years agovst-scanner app: properly init and use libpbd's Transmitter
Robin Gareus [Sat, 17 May 2014 14:54:12 +0000 (16:54 +0200)]
vst-scanner app: properly init and use libpbd's Transmitter

10 years agodon't load selected session if other-project is chosen:
Robin Gareus [Fri, 16 May 2014 21:16:03 +0000 (23:16 +0200)]
don't load selected session if other-project is chosen:

1) Open Ardour
2) Select project from recent list
3) "Open Other" project
4) project from (2) is opened instead of the one chosen at (3)

10 years agomore gettimeofday() -> g_get_monotonic_time()
Robin Gareus [Fri, 16 May 2014 17:58:46 +0000 (19:58 +0200)]
more gettimeofday() -> g_get_monotonic_time()

10 years agoand one more gettimeofday() transition (mackie timers)
Robin Gareus [Fri, 16 May 2014 16:35:42 +0000 (18:35 +0200)]
and one more gettimeofday() transition (mackie timers)