13
0
Commit Graph

8335 Commits

Author SHA1 Message Date
ce818efe37 avoid a set of calls to gettext() and/or cousins from global constructor scope 2014-10-07 14:27:12 -04:00
a7da906a79 NOOP, proper label for flat carbon header includes 2014-10-07 16:53:10 +02:00
7bfa25777b OSX 10.9.5 compile fixes - part one 2014-10-07 14:46:06 +02:00
94e7015c70 64bit windows VSTs 2014-10-05 18:11:11 +02:00
114296d958 fix VST user cache typo: info/blacklist 2014-10-05 02:57:14 +02:00
adefca9dd2 use single newline char in VST info files.
windows writes \r\n to non-binary files and the VST
info parser does not handle that case.
2014-10-04 18:01:43 +02:00
29d89f0128 update VST scanner lookup (prepare for moving to BINDIR) 2014-10-04 17:57:05 +02:00
0af091edf3 fix ming32 build&install for asio backend 2014-10-03 00:46:34 +02:00
b376042166 Add UK English translation for libardour 2014-10-02 18:03:19 +01:00
44f71ce599 Text tweaks and typo fixes 2014-10-02 18:03:19 +01:00
8fe3360c35 fix clock_gettime detection
fixes compilation with mingw64 gcc-4.9.1
2014-10-02 02:53:35 +02:00
aeda6cbea9 add --with-wavesbackend config option (disabled by default) 2014-10-01 18:28:47 +02:00
3d12a4da82 fix deep obscure problem with loading multiple backends on OS X
all backends export a symbol declared as "extern "C" ARDOURBACKEND_API ARDOUR::AudioBackendInfo* descriptor ()".
dlopen'ing the backend apparently pushes the symbol "descriptor" into the single flat global namespace that we use
to be like other unix-like systems. this means that if a backend calls its OWN function named "descriptor", it
is indeterminate which one it will be, since the symbol will refer to the function first loaded by the runtime
linker. If the backend is not the first one discovered, this call to its own "descriptor" function will invoke
the function defined by another backend, even though these are supposed to have local scope only according
to our arguments to dlopen().

This fix doesn't try to fix the linker or namespace - it just makes sure that the WavesAudio backend doesn't
invoke its own descriptor() function, which it never really needed to do anyway.
2014-09-30 22:57:05 -04:00
cd60fd9dfe untested fix for compiling waves audiobackend on case-sensitive FS with mingw. 2014-10-01 04:02:30 +02:00
9838616679 NOOP, re-indent 2014-10-01 03:25:03 +02:00
32e05fa640 update backends for API change in 8d59afb048 2014-10-01 03:24:54 +02:00
a927b79c26 Implement the new pthread macros (for the Waves audio backend) 2014-09-30 21:00:35 -04:00
3033c1cc54 Re-introduce our pthread macros (after fixing an earlier typo)
these are so we can differentiate between 'libpthread' and 'libpthread-win32' (whose implementation is subtlely - though annoyingly! - different)
2014-09-30 21:00:35 -04:00
8d59afb048 copy over current Waves version of their backend, along with minor changes in libs/ardour and libs/backend/jack to fit with API changes 2014-09-30 21:00:34 -04:00
38e975d6b1 tweak backends wscript for cross-compiling with mingw 2014-09-30 21:00:34 -04:00
8e01b411b2 copy over current Waves version of their backend, along with minor changes in libs/ardour and libs/backend/jack to fit with API changes-a 2014-09-30 20:23:45 -04:00
fdf83c620d use .exe suffix for VST pluin scanner app on windows 2014-10-01 00:12:45 +02:00
5b4c3aa226 win32_pthread is relevant for both: MSVC & MINGW 2014-09-30 19:08:16 +02:00
1bde96be09 there's no random() on window, but no matter 2014-09-30 19:08:16 +02:00
822b5443fe add missing header include (for snprintf) 2014-09-30 19:08:16 +02:00
f44501504c partial fix for #5973 (multi-track midi file import) 2014-09-28 20:36:04 +02:00
56f5bcffce copy plugin-state from template on session creation (amend 3353b48) 2014-09-28 19:25:40 +02:00
3353b48646 fix templates: copy plugin state 2014-09-28 18:24:08 +02:00
6fbd0a62e4 recursive file copy function 2014-09-28 18:24:08 +02:00
b4438942ca fix compiler warning from missing default statement in switch 2014-09-27 18:09:22 -04:00
2a53154892 end tooltip timeout and display for relevant leave notify events 2014-09-26 17:06:38 -04:00
df5a188825 further tweaks to canvas tooltip mechanism 2014-09-26 12:24:47 -04:00
bb68d83e43 display and position canvas tooltip window 2014-09-26 11:05:24 -04:00
d0dafc171c basic design of Canvas item tooltip mechanism.
No window yet to actually display the tooltip.
2014-09-25 21:43:15 -04:00
3ec0f367c1 next (final?) part of handling missing MIDI files.
If an external-to-session file is missing, consider it a fatal error in session loading.
If an internal-to-session file is missing, just create a new MIDI source with the same path and ID, and use that instead.
2014-09-24 19:04:05 -04:00
186493687b DummyBackend: symmetric freq sweep: up/down 2014-09-24 18:46:54 +02:00
6dfb8c5c8a DummyBackend: add sine-sweep generators 2014-09-24 17:24:25 +02:00
86672a5c5c fix some double promotion 2014-09-24 17:18:20 +02:00
3f9e916fe2 DummyBackend: two more audio-signal generators (useful for waveform check) 2014-09-24 01:26:51 +02:00
b355f01aa5 DummyBackend: MIDI Event Generators 2014-09-24 01:26:51 +02:00
99a484f193 ALSA backend: initial device selection 2014-09-24 01:26:51 +02:00
a72536dbb0 fix typo that selected wrong sample rate for 22050Hz export 2014-09-22 14:31:06 -04:00
2e2390d053 alter the way the border of Canvas::Rectangle is drawn to meet the intent that a single pixel border passes through the corner coordinates 2014-09-22 11:36:04 -04:00
45fd3593eb Fix finding session templates
Session templates are directories: use find_paths_matching_filter() rather
that find_files_matching_filter() to search for them. Fix a tiny comment
typo I spotted along the way too.
2014-09-22 13:21:14 +01:00
5c7d6ae004 add Location::set_skip() to allow toggling of skip-functionality for a given Location 2014-09-19 23:21:31 -04:00
5bdc9a9a23 duplicate all ARDOUR::Location signals so that we have one static signal that identifies the subject location and one member signal that does not 2014-09-19 22:51:27 -04:00
ceff2e3a62 plugin widgets were written to use Internal values, so use that for now 2014-09-18 17:25:11 -05:00
41f13c0109 Fix some inconsistent usage of a Controllables Interface value.
This breaks a lot of controls, because they are misusing it as well.
2014-09-18 16:35:03 -05:00
cfc658de04 do not mark session dirty during loading process; sync with loaded locations state using standard method 2014-09-17 12:28:09 -04:00
69bfc841a2 use Config->get_skip_playback() when handling Skip events 2014-09-17 12:27:21 -04:00
dd4d7cf8be new Config var to control whether skip playback is used or not 2014-09-17 12:26:52 -04:00
7021ac07d8 add IsSkip enum to enums.cc 2014-09-17 12:26:28 -04:00
ebd7bc7447 add new Skip event to SessionEvents 2014-09-17 10:31:33 -04:00
73f2baf5c6 Locations::clear_ranges() leaves punch/loop/session ranges intact if they exist 2014-09-17 09:38:42 -04:00
2e81bab899 add new type of location, with _flags & IsSkip being non-zero 2014-09-16 21:40:12 -04:00
99ac4755af header file part of initial attempt to push certain kinds of Locations into LocateRoll events on the timeline for skip lists 2014-09-16 21:33:18 -04:00
80c0400cda initial attempt to push certain kinds of Locations into LocateRoll events on the timeline for skip lists 2014-09-16 21:32:58 -04:00
b592ce3e44 Locations should listen to location changed signals, and emit its own changed() signal 2014-09-16 21:31:19 -04:00
78f55f2e4d change Location "change" signals of various kinds to be static 2014-09-16 21:30:16 -04:00
9be64f2648 add a focus handling callback so that all button press events on CairoWidgets will cause a focus reset. 2014-09-16 12:42:39 -04:00
b3c78e906c if a (file) source really cannot be found, differentiate between audio & MIDI.
For now, recovering from missing MIDI is a no-can-do situation (because MIDI is inherently data-editable).
2014-09-15 14:09:12 -04:00
9a3cf7a10b fix up condition where a MIDI filesource is marked empty, not found, and its _path member is not set correctly 2014-09-15 14:09:12 -04:00
596a9247bd FileSource should not generate its own error message when a file is missing 2014-09-15 14:09:12 -04:00
c96ec968c7 tentative fix for losing (empty) MIDI files. Incomplete because testing shows issues with some workflows 2014-09-15 14:09:12 -04:00
dbc34ab4da fix compiler warning 2014-09-15 14:09:12 -04:00
076bb0b488 change dummy backend to default to _("Silence"). 2014-09-13 22:51:42 +02:00
d8e64103a6 fix CPI window handling:
Move control-surface editor-window management to the control surface.
The Preferences-Dialog is not aware of session specific or surface
specific actions and cannot properly manage the window.
2014-09-13 16:59:02 +02:00
c3a5cd487a Return playhead to last start position when aborting capture 2014-09-13 15:27:30 +01:00
6549fcbd86 Fix spurious 'You cannot put a CD marker at this location' error
Fix the spurious error that occurs when loading a session where any marker
(not necessarily a CD marker) is located at 0 on the timeline.
2014-09-13 15:27:30 +01:00
982b95fb47 Be sure to initialise ExportFormatSpecification::_soundcloud_upload
Initialise _soundcloud_upload in all constructors of
ExportFormatSpecification.
2014-09-13 15:27:30 +01:00
e5a20e1f9e Add 2 new source files to our 'gtkmm2ext' project (MSVC) 2014-09-13 09:56:58 +01:00
3da9c3b740 NOOP, remove trailing whitespace 2014-09-13 01:48:10 +02:00
aa83f1a8c7 waveform drawing details:
* proper y-pixel alignment (+.5px offset)
* outline: draw dots (not 1px lines)
* shape: round towards peak (use signal, not top/bot)
* honor 2px red selection border
* work-around canvas rect +1 issue
* always draw clipping line towards center
* draw at most one clip-line at either side of 0.
* exact 1px wide zero line
* fix spread calculation for rectified view
2014-09-13 01:48:10 +02:00
e3d063004b add required visibility macros to Gtkmm2ext::CursorInfo 2014-09-12 14:33:36 -04:00
878797d13e waveform: really draw 1px lines. 2014-09-12 16:43:20 +02:00
98249a2563 update waveform drawing for zoomed-in, non-overlapping min/max peaks 2014-09-12 16:42:55 +02:00
f3f80900f1 fix crash at session close/exit if a midi-control-surface is used
The "real" problem was that MidiControlUI is destroyed
while there are still MIDIControllables around that
still have a signal connection to a Controllable:
  controllable->Destroyed(..., MidiControlUI::instance())
If a Contrallable is deleted after the MidiControlUI
event loop is gone, the Destroyed() signal can create odd
situations...
2014-09-11 19:30:33 +02:00
01974b5769 API flush static cairo pattern cache
(should probably be cleaned regularly
e.g. meterbridge resize)
2014-09-11 19:30:33 +02:00
56f4e1513e provide compile-time-enabled/disabled debugging of connections being made to PBD::Signal via PBD::SignalBase::set_debug_connection() 2014-09-11 12:04:14 -04:00
5dd5bb7830 make valgrind output a bit more readable. 2014-09-11 03:04:12 +02:00
bfcd96533c fix memory leak, changing semantics of PatchManager (needs x-check) 2014-09-11 03:04:12 +02:00
df19c576c7 fix a bunch of memory leaks 2014-09-11 03:04:11 +02:00
c4a7d25b34 properly retain LV2PluginInfo 2014-09-11 03:04:11 +02:00
7449de6e8f fix/improve/test hotspot file parsing 2014-09-10 19:39:52 -04:00
13cd2110e6 add copyright header comments 2014-09-10 18:50:58 -04:00
90059a9504 move CursorInfo members into public access 2014-09-10 18:38:30 -04:00
c4f7aae7d5 add new (mostly) static class to permit lookup of cursor image hotspots 2014-09-10 16:50:10 -04:00
6f59288f9e print "Scanning folders for bundled LV2s" only once. 2014-09-10 20:44:17 +02:00
f6766d4a2f delete route-groups before flushing routes. 2014-09-10 20:43:30 +02:00
2498495523 disable Midi Audition Synth if it cannot be found
no repetitive messages.
2014-09-10 16:55:49 +02:00
d383205fe7 better safe than sorry. 2014-09-10 13:11:22 +02:00
b26ecdda63 fix d421602c24 2014-09-10 12:49:21 +02:00
d421602c24 delete session XML object after loading and setting state. 2014-09-10 05:18:09 +02:00
cab09d87b8 free LV2 world after initial scan 2014-09-10 03:31:03 +02:00
a361781e08 plug a major mem hog.
(default empty session is now ~140MB RSS, was 280MB)
libXML memory was only free() at exit
2014-09-09 23:53:27 +02:00
e60f03c54c fix scoomer scroll-wheel max value 2014-09-09 14:35:06 +02:00
2967226317 Add 'libs/pbd/pbd/pthread_utils.h' to our pbd project (msvc) 2014-09-09 12:06:47 +01:00
16b25a3028 Implement the new pthread macros (for the Waves audio backend) 2014-09-09 12:05:14 +01:00
61e0705a94 Re-introduce our pthread macros (after fixing an earlier typo)
these are so we can differentiate between 'libpthread' and 'libpthread-win32' (whose implementation is subtlely - though annoyingly! - different)
2014-09-09 12:03:52 +01:00
83b6825bd0 Revert "Add a couple of pthread helper macros"
This reverts commit 8d0ec2403f.
2014-09-09 08:26:26 +01:00
1c6c3514ba don't start track-resize on scroomer click 2014-09-08 18:43:28 +02:00
b1da9af8de ALSA|Dummy: ignore port unregistration when engine is stopped
When changing Engine parameters, ardour first stops
the engine and only later when re-etablishing ports
unregisters/re-registers them.

ALSA: silently ignore port unregs and silently accept registrations
Dummy: print a PBD::info message,
2014-09-08 01:25:56 +02:00
dc318e6e74 ALSA|Dummy Backend: do as jack does:
when the backend is closed, unregister all ports.
2014-09-07 22:50:57 +02:00
330f5fdf2e fix midi audition port-connect warning 2014-09-07 22:21:12 +02:00
a780e70f2a add Session::record_location() 2014-09-07 11:33:47 -04:00
9ad3feaba0 rename system and user config files with product-neutral names 2014-09-07 10:20:29 -04:00
94adde7ebb add Canvas::Ruler::set_metric() to allow ruler metrics to be changed dynamically 2014-09-07 10:19:42 -04:00
1a6136e1e3 change Metric element of a Canvas::Ruler item into a pointer internally 2014-09-07 10:19:31 -04:00
d68275cefc one less annoying compiler warning. 2014-09-06 21:18:08 +02:00
404a77adb8 get installdir for libardouralsautil correct 2014-09-06 14:42:25 -04:00
a686374b9d check for _port_handle == null throughout Port:: methods 2014-09-06 12:36:57 -04:00
d63a4edfbf pass-though PixFader tweaks API for scroll events 2014-09-06 12:46:03 +02:00
6af935a3b8 updated .po files 2014-09-04 22:24:41 -04:00
48a851011b add pixfader tweaks API:
* change API to hide unity/default value line
* allow to override vertical scroll [1]
* allow changing button event forwarding [2]

[1] override scrolling in track-headers
[2] dbl-click is needed for BarControllers -> switch to SpinBtn
    but a plain Slider on a track-header should not forward
    these events to the TAV (they may trigger name-edit)
2014-09-05 02:24:19 +02:00
6408d90258 fix waf thinko in backends wscript 2014-09-03 18:44:34 -04:00
f2c0b2e318 revert pixfader to sane state (reverts parts of bb70d426) 2014-09-03 20:48:20 +02:00
bb70d426ba bring back old pixfader outline radius to demonstrate its issues 2014-09-03 15:35:11 +02:00
73357c1923 revert pixfader radius to default 2014-09-03 15:09:54 +02:00
07a651d2ec release shared route pointer kept by InternalSend when dropping refs.
fixes "SessionHandleRef exists across session deletion"
when using AuxSends
2014-09-03 05:20:28 +02:00
f684cc24ec allow to set gtk style for BarController's pixfader. 2014-09-03 02:40:27 +02:00
1cd366b606 pixfader bg has reverse gradient from fg 2014-09-02 15:58:55 -05:00
9ecdb765aa don't show 'unity-line' (default value) for barcontrollers 2014-09-02 16:05:54 +02:00
3b9b65879a Barcontroller: no double expose when text chages 2014-09-02 16:05:21 +02:00
ecf5d5f137 tweak pixfader:
* update reserve so that round corners don't overlap
* draw complete 1px outline
* add API to hide/show the unity line
* don't show unity line at either end
* allow to shrink when the font-scaling changes
2014-09-02 16:00:24 +02:00
efb03f4596 unify BarController with Slider/Pixfader. 2014-09-02 05:14:19 +02:00
41ccf6a806 clean up pixfader API, prepare for merge w/BarController 2014-09-02 05:14:14 +02:00
3bfe91c010 remove cruft from SliderController 2014-09-02 05:14:06 +02:00
9f0caacc5c rework pixfader:
* re-introduce static pattern cache
  (cairo's cache is not nearly large enough for A3 + plugins)
* only use cairo_clip on rectangles (not arbitrary paths
  -> major performance boost
* re-add fader pixel reserve
* fix mouse + scroll interaction
* fix unity line display (1px wider, brighten by 150%)
* cache text size
* fix various other issues and consistent whitespace

This reverts large parts of commit d439e93b1e.
2014-09-01 22:02:51 +02:00
158037bba2 Match canvas outline to rectangle
It looks like we're currently [consistently] off by 1px
everywhere. The width-1 is compensated by
TimeAxisViewItem::RIGHT_EDGE_SHIFT = 1
2014-09-01 18:05:09 +02:00
34c1465cf9 Fix crash when changing automation mode for MIDI track control automation.
Also some work towards tolerating automation controls with no automation list,
towards actually doing something for these cases, though not required just to
fix this crash (MidiTrack::set_parameter_automation_state() avoids those
paths).
2014-08-31 18:57:22 -04:00
885f1c71ec Remove unused variables (fix warnings). 2014-08-31 17:54:16 -04:00
c95c221493 Fix mismatched initialisation order. 2014-08-31 17:54:16 -04:00
154621978a track-header fader tweaks:
* align height to button-height.
* align width to label text-entry
* increase min width
2014-08-31 21:32:22 +02:00
758c988e51 shadow-less Frame: explicitly draw background colored border. 2014-08-31 20:07:17 +02:00
50c3177a5e remove frame from barcontroller 2014-08-31 19:36:41 +02:00
db34d9a556 proper round corners on focused TextEntry
IFF [xy]thickness is set > 2 for given Entry.

It seems gtk draws a base-color rectangle on
top, after clearlooks_draw_entry() is called.
This fills the complete area and voids previous
rounded rectangles in clearlooks_draw_entry().
setting [xy]thickness decreases the size of the
base rectangle.
2014-08-31 12:46:45 +02:00
7d3f0bfd75 prepare for clang static analysis of RT-functions:
see: https://github.com/fundamental/stoat
eventually more functions should be annotated, and
a common header file should be used to
  #define REALTIME __attribute__((annotate("realtime")))
2014-08-31 07:50:17 +02:00
ca97569c55 disconnect pixfader style-change signal in dtor (amend 5a688b672) 2014-08-30 20:58:03 +02:00
5a688b672c pixfader: use parent's background color 2014-08-30 04:19:42 +02:00
f5533213c0 fix some compiler warnings 2014-08-30 02:26:36 +02:00
585fa45b62 fix cairo widget background 2014-08-30 01:43:10 +02:00
40c3e4122c try a different method of text display on automation bars 2014-08-29 16:35:20 -05:00
b0477f7f1e fix plugin bypass button action 2014-08-28 15:29:18 -05:00
3f297f7dab Fix ArdourButton event sequence.
Always give ArdourButton a chance to handle Press or Release events if you override them.
This allows ArdourButtons to do the "Pressed" animation
And it now correctly eats the event so button clicks don't select the channelstrip.
2014-08-28 10:31:57 -05:00
670f55f5e4 Add an extra folder to get searched (on Windows only) when looking for config files.
This is a preliminary test to find out if 'All Users' would be a better place for our (writable) config files, as opposed to the user's personal 'AppData' folder (which we used in Mixbus2). N.B. this should not effect any previous operations on Windows or non-Windows platforms.
2014-08-28 08:08:43 +01:00
65715dd298 Make sure all our VC projects agree that the product is called 'Mixbus3' (as opposed to just 'Mixbus')
It'd be nice if we could use 'ARDOUR::config_dir_name' for this purpose (or perhaps 'PROGRAM_VERSION'). However, neither is implemented widely enough at present to make this practical. Keep an eye on them though, as possible future strategies.
2014-08-28 07:57:20 +01:00
d439e93b1e Standardize drawing of PixFader and BarController; implement flat_buttons and prelight.
Prepare for using Controllable interfaces, instead of passing in Adjustments.
ToDo:  reimplement image caching in a standardized way across widgets
2014-08-27 11:58:09 -05:00
e7a15027e8 refactor flat_buttons into cairowidget, and add a canvas-like convenience function for setting cairo color with a Gtk::Color 2014-08-27 10:55:01 -05:00
a7226133a9 refactor _grabbed into cairo_widget 2014-08-22 11:49:59 -05:00
nick_m
7099f0ec4e Add backwards compatibility for instant.xml changes. 2014-08-14 03:19:40 +10:00
nick_m
34bf7457c6 Move ExportProfile xml from Session instant.xml to session file. 2014-08-14 02:52:42 +10:00
126d6d3aae fix new backends wscript to work correctly in the Ardour case 2014-08-08 11:00:30 -04:00
16e37d975f use some structured code to decide which backends to build (should have cherry picked from waves' code but ...) 2014-08-08 10:57:20 -04:00
1873bcfa9d More fixes for range-based automation editing.
-Remove redundant start_grab calls.
-Show gain curves in Range mode, so you can see the curves you are selecting
2014-08-06 14:43:40 -05:00
16ca4e0f9a Initial steps towards usable range-based automation editing.
TODO:  needs undo. only works in top quarter of automation lane.  selection model feels weird sometimes.  needs to show gain curve when you are using Range tool
2014-08-05 15:42:06 -05:00
45afed5e9a Modify our VC project files to work with msvc32-fixup.pl 2014-08-04 09:02:17 +01:00
f296389fe0 Enforce mixer strip widths, more case fixes, and minor theme changes 2014-08-01 15:44:42 -05:00
b128271f29 consistently use mixed-case labels 2014-08-01 14:31:18 -05:00
b75b88a1eb Use text to specify combo box padding for better font/display tolerance.
Consistent mixer strip button height.

The latter works by setting all the button size request heights to the
calculated height of the alphabet.  Thus, all buttons of the same class will be
the same height regardless of their actual text.
2014-07-30 18:30:42 -04:00
21ea94c000 grouped faders should have relative gain by default 2014-07-28 16:20:24 -05:00
ed07c53210 clean up cruft in some config variables 2014-07-28 15:55:20 -05:00
df2a8fccc7 disallow selection of the fader and meter processor entries 2014-07-28 10:08:26 -05:00
966ed85005 Add provision for 'PROGRAM_VERSION' (MSVC libardour project) 2014-07-27 11:37:04 +01:00
59822e8dd2 Minor change to 'pbd/controllable.h'
(in MSVC, 'min' & 'max' are not in namespace std)
2014-07-27 11:28:23 +01:00
576f39d6a0 Add the MSVC project file for building libs/surfaces/osc 2014-07-27 11:26:41 +01:00
e85ff4dad2 Cut and Copy should remember the white space at the end of a range.
This will be used when you paste with Ripple; it maintains the whitespace that you chose in the selection.
Also fix default setting of Dim contol by storing the default(normal) value for MPControl Controllables.
2014-07-23 14:36:21 -05:00
7984cd2321 Changes needed for building surfaces/osc (control surface protocol) with MSVC
(for testing on the non-Windows platforms)
2014-07-22 22:19:46 +01:00
fdaa6a151a 3 monitor tweaks for the_CLA. shift+click to default, and new preset vals 2014-07-22 16:05:51 -05:00
5424119b55 Merge branch 'waveview_hacks' of https://github.com/nmains/ardour into cairocanvas 2014-07-18 10:46:22 -04:00
5044feec95 more canvas debugging for current item tracing 2014-07-18 10:43:52 -04:00
b2b736d596 tweaks for the monitor section. refactoring of some buttons, using new ArdourKnob instead of VolumeController. New ArdourDisplay shows a controllables user value, and provides support for preset values (hardcoded at present). Further refactoring to come, so that ArdourWidgets are derived from a common class. Controllable now has more responsibility for scaling between internal, user, and interface (knob percent) values. This also needs more refactoring and might have some unintended consequences. tested with audio and nothing seems amiss, yet. 2014-07-18 08:47:45 -05:00
ac9219a3c8 LV2: don't leave active plugins deactivated after latency-compute-run 2014-07-16 17:08:42 +02:00
692f69ba14 parameterize the version number used to define the config directory name 2014-07-16 08:15:18 -04:00
67788b7136 monitor knobs tweaked to better match the theme of other buttons 2014-07-15 14:58:43 -05:00
928881b24a Update vcproj files for changed LILV config define. 2014-07-15 15:50:12 -04:00
9869e2704a Support saving LV2 presets multiple times (fix #0005949). 2014-07-15 15:49:47 -04:00
fe9f2b15b1 Support midnam files with a channel (not patch) NoteNameList. 2014-07-15 15:18:18 -04:00
nick_m
d3408844be Render waveview components onto alpha masks to simplify drawing.
Reduce user panic by removing ! from missing file dialog title.
Use justify left in missing file dialog.
2014-07-15 21:59:22 +10:00
849d80bfcc Group the Rec and Monitor buttons together. Group the Solo Isolate and Lock buttons together. And add a method to show/hide each group in the Preferences 2014-07-14 10:08:55 -05:00
4af088c251 DummyBackend: add Uniform White Noise Generator. 2014-07-11 18:05:59 +02:00
12025d4ffa possible fix for win SystemExec::wait()
if it does not help, use CREATE_NO_WINDOW and/or peek/pump messages :(
2014-07-11 17:03:55 +02:00
c83b7ebc3c fatal error if vfork-exec-wrapper cannot be found (on unix systems). 2014-07-11 16:43:50 +02:00
6990c31ed5 Merge branch 'cairocanvas' of git.ardour.org:ardour/ardour into cairocanvas 2014-07-11 09:59:59 -04:00
94e0841625 catch null vfork_exec_wrapper before it is too late 2014-07-11 09:58:45 -04:00
15de7aa433 Make our 'libs/timecode' project dependent on libpbd
This is needed because one of its source modules now references 'rint()' (which isn't available in MSVC, although we already simulate it in libbd).
2014-07-11 12:56:18 +01:00
c81604bc18 Add newly introduced (MD5) sources to our MSVC project (also, add visibility stuff to the new MD5 class) 2014-07-11 12:56:17 +01:00
8859ebe56e add Gtkmm2ext::Keyboard::reset_bindings() 2014-07-10 11:04:04 -04:00
0622a0cc30 add libardour infrastructure for "fade range" edit operation 2014-07-10 08:16:55 -04:00
94c8b672c4 do not call basename_nosuffix() before using matching_unsuffixed_filename_exists_in() because the latter does that call itself.
As the code used to be, if we are testing for a candidate filename of aaa.bbb.ccc, the call strips .ccc and matching_... strips .bbb
resulting in a match with aaa, which is not intended at all.
2014-07-10 08:16:27 -04:00
b9c53ea395 add std::string variant of set_size_request_to_display_given_string() 2014-07-09 16:48:36 -04:00
9f4a00fa89 add mixbus profile which removes the tearoffs 2014-07-09 15:12:05 -05:00
cfca056f19 make sure that copy constructors and operator= for ControlList pass along the _interpolation value 2014-07-09 14:30:38 -04:00
9e8b50f075 make AutomationList::operator==() private and abort() as its core, because it should never be called/used.
Also make AutomationList::operator=() use ControlList::operator=() rather than try to reimplement it
2014-07-09 14:30:38 -04:00
9bfe716239 remove debug output 2014-07-09 12:06:36 -04:00
3fae5f15af fix crash initiated by never configuring track write sources when reloading a session, caused by earlier commits to avoid unnecessary write source resets 2014-07-09 12:03:22 -04:00
f2699194d3 do not return auditioner as part of Session::get_tracks() 2014-07-09 12:02:22 -04:00
73d98df3d2 add Session::get_tracks() 2014-07-09 11:29:26 -04:00
1fd4d40dbb add mutex to prevent concurrent session state saves.
Why wasn't this done 10 years ago?
2014-07-09 10:18:28 -04:00
7364ca213a do not attempt to save undo history if it is empty, and do not do any part of history save if we're not going to write a new file 2014-07-09 10:10:44 -04:00
0e5d86a825 don't save state when removing sources during session loading (though this should no longer happen) 2014-07-09 10:09:49 -04:00
b37e3229f7 only reset AudioDiskstream write sources if the I/O configuration changed. Do not do this for connection changes etc. 2014-07-09 10:09:14 -04:00
2d63489196 Dummy Backend: optimize random-number implementation 2014-07-08 18:40:51 +02:00
941701574e fix and optimize DummyBackend generators
* use Wavetable for sine
* lock generator (concurrency issue)
* always initialize variables
2014-07-08 18:40:51 +02:00
b7f918bdb7 when merging external source files into session folder, if a collision occurs, use the original file suffix in conjunction with md5 hash 2014-07-08 12:25:36 -04:00
66684c6690 Add PBD::get_suffix() for ripping file suffixes from paths 2014-07-08 12:24:56 -04:00
fcabd5d8ee initial implementation of "bring all media into session folder". Incomplete but basically functional for audio files 2014-07-08 00:53:13 -04:00
d3e3f5f005 add operator-= variants for PBD::Searchpath 2014-07-08 00:53:13 -04:00
f4a84a0272 add MD5 implementation to wscript 2014-07-08 00:53:13 -04:00
6b9ef29597 add cleaned up MD5 C++ implementation for general use 2014-07-08 00:53:13 -04:00
185f06e7f7 add signal generator modules to Dummy Backend. 2014-07-07 16:31:58 +02:00
a1bc2cb10e fix potential crash if certain Canvas methods are used before its window is realized 2014-07-07 08:00:20 -04:00
69a92e67f0 Add Canvas::re_enter() which picks the current item again based on mouse pointer position and generates an enter event for it 2014-07-07 07:53:17 -04:00
4b0933938f optimize SystemExec::output_interposer() 2014-07-06 23:44:48 +02:00
cabed6ffce fix timecode > 2^31 samples calculation on 32bit systems 2014-07-06 22:44:22 +02:00
6d97d72999 remove some cruft with previous commits. remove option link-region-and-track-selection since they are now exclusive, and rename select-all-regions to select-all-objects to match the implementation 2014-07-06 14:02:13 -05:00
7d13a49761 remove cruft.
periodic save is done with maybe_write_autosave()
2014-07-06 14:43:07 +02:00
36135baaac change reasonable-synth to be sample accurate (note on/off)
at expense of slightly increased CPU load.
2014-07-06 13:24:53 +02:00
c03034b7d6 Make $PATH search in SystemExec actually work
Make searching of $PATH work when a SystemExec  is created from a
command-line, by making sure that argv[0] is set to the discovered path.
2014-07-05 21:47:49 +01:00
5edca6c96e Report an error when post-export hook fails. 2014-07-05 21:47:49 +01:00
c9b0f0fcb7 debug info to trace down "cannot rename temp session file" errors
..but actually, the real error may be concurrent
calls to Session::save_state()
2014-07-05 20:53:22 +02:00
8fa0f7bc0b disable latency-compensation preparations for now
Don't add delaylines to tracks by default just yet,
currently only sends are aligned with delaylines
2014-07-04 13:57:35 +02:00
08b1a9d520 add ActionManager::enable_accelerators(), which takes all known Actions and registers them via the UIManager as accelerators.
This makes them available for use with key bindings/shortcuts/accelerators even if they have no proxy widget
2014-07-04 07:48:41 -04:00
043b76569d fix the naming and behavior of always-play-range to match the button, which is follow-edits. when you select a range, the playhead should jump to the start of the range and begin to play the selection. BUT (unlike previous implementation) if the user wants to relocate the playhead, then that should be allowed. The user should always remain in charge of the playhead location. NOTE: your previous config setting will be invalidated. You must re-save a session to overwrite with the new config variable 2014-07-03 12:56:33 -05:00
53a5f5d8ca actually do something in WaveView::region_resized() which is called whenever the region is resized; implement WaveView::set_region_start() which could be used by an xfade editor etc. 2014-07-03 10:00:12 -04:00
a1c8e67e50 add a method to cancel a pending play_range. this is needed when we are modifying the range with keyboard commands. 2014-07-02 17:35:38 -05:00
007664c3db unique filenames across all searched folders 2014-07-02 23:36:06 +02:00
190542c1d0 splice mode is undefined, undocumented, and buggy. ripple does most of what we want. remove splice for now. leave code because it may be revived later 2014-07-01 16:43:00 -05:00
3f112f17c0 remove debug output 2014-07-01 15:11:09 -04:00
0a87bbc37b add partial support for mute automation (playback does not work, data is not recorded in the session) 2014-07-01 14:37:05 -04:00
e5e12acc56 Merge branch 'ripple-mode-cc' into cairocanvas
Fix up merge conflicts in
	gtk2_ardour/editor_mouse.cc
	gtk2_ardour/editor_ops.cc

Also fix up compile errors.
2014-07-01 19:10:47 +01:00
23e7cf1019 merge with master.
Manually resolved conflicts in import.cc and session.cc
2014-07-01 09:46:18 -04:00
d790881a84 remove cruft 2014-06-30 22:58:09 +02:00
0ec4784c2b change default take-name 2014-06-30 22:58:08 +02:00
d816c225a4 more extensive canvas debug message for canvas-enter-leave tracing 2014-06-30 16:32:01 -04:00
79b9a044b8 add event-insensitivity to the list of conditions that causes a container to NOT add its children to the list of items-at-point 2014-06-30 16:31:31 -04:00
bae86a2d90 Disallow empty names for Groups, automatically enumerate them 2014-06-30 18:33:05 +02:00
4eb565e0a9 verbose cursor text is always outlined 2014-06-30 10:39:41 -04:00
5974f4730b allow Canvas::Text to have outline drawn in a contrasting color (based on actual color) 2014-06-30 10:39:26 -04:00
471570705d move contrasting_text_color() into ArdourCanvas 2014-06-30 10:38:45 -04:00
33339090c3 invisible items/containers should not add their children to "items-at-point" 2014-06-30 08:32:26 -04:00
cf075743e4 additional DEBUG_TRACE message for canvas current item selection 2014-06-30 08:32:26 -04:00
8b216111da clean up after monitoring-section on session close 2014-06-30 04:04:35 +02:00
038d292c3f fix issue with track-deletion when the monitoring section is used. 2014-06-30 03:31:58 +02:00
c1ae35242b update ARD - allow to release it as standalone tool.
see https://github.com/x42/alsa_request_device
2014-06-29 21:19:04 +02:00
8df35b35ba allow to load/save default session-properties 2014-06-29 16:11:46 +02:00
cef26a4e1e Change some declarations from 'struct' to 'class' (and vice-versa) 2014-06-29 13:56:41 +01:00
4a7eb62bf8 use state Session::StateProtector 2014-06-28 22:02:20 +02:00
ecd11253c1 add Session::StateProtector
temp. disable save during batch updates, save once at
the end.
2014-06-28 22:02:20 +02:00
c0c68dbf4d consolidate session_dirs: use Searchpath instead of custom code 2014-06-28 22:02:20 +02:00
02e38bab16 search-path: filter out duplicates
Note: this does not yet take care of filtering dups
when directly combining two search-paths.
2014-06-28 22:02:20 +02:00
dcca72dabd Use 'GStatBuf' in preference to 'struct stat' (which isn't necessarily the same thing) 2014-06-28 13:33:28 +01:00
22ce7c0762 Add (newly introduced) sources to our MSVC projects 2014-06-28 11:56:19 +01:00
ef78ad0d83 Remove (no longer needed) sources from our MSVC projects 2014-06-28 11:48:08 +01:00
c2dcd7eacd slightly increase size of a Canvas::PolyItem, to avoid left-over pixels when dragging (as well as other general incorrectness 2014-06-27 10:30:09 -04:00
a0cb2f95f0 if CANVAS_DEBUG is defined, then the env variable CANVAS_HARLEQUIN_DEBUGGING will turn on drawing the expose areas for canvas render debugging 2014-06-27 10:27:04 -04:00
6cc673f0a6 in Canvas::window_to_canvas(), if either x or y coordinate is less than zero, search for the scroll group on the relevant edge.
If we don't do this then we find no scroll group covering the event coordinate, and the translation for scroll fails to be applied
2014-06-27 10:19:21 -04:00
3accf1d2af new API for TrackingText and similar items 2014-06-26 15:10:24 -04:00
ae4c4c8f90 add tracking_text.cc to canvas wscript 2014-06-26 15:10:24 -04:00
f5d62b1486 new TrackingText canvas item, to resolve conceptual issues with the Editor::VerboseCursor 2014-06-26 15:10:24 -04:00
789cf92a23 bump take-name after every recording 2014-06-26 19:16:20 +02:00
a74d7bd232 option to use track-number and take-name as part of file-name 2014-06-26 19:16:07 +02:00
b067a185f0 implement track numbering 2014-06-26 19:15:43 +02:00
7cb6e9065a allow to set custom file name for each diststream 2014-06-26 19:15:39 +02:00
b90d7a01fa consolidate SignalOrderRouteSorter 2014-06-25 21:47:54 +02:00
1bd4e448de namespace libardour utils 2014-06-25 21:47:54 +02:00
4da2fadb9e fix LTC slave delta formatting (long long) 2014-06-25 21:47:54 +02:00
3d0e36f579 Add unit tests for PBD::clear_directory and PBD::remove_directory 2014-06-25 12:40:11 -04:00
2ef5cefa6b Rename internal class to stop the wrong destructor from being called 2014-06-25 12:40:11 -04:00
7262e16216 Add a PBD::TextReceiver in pbd testrunner 2014-06-25 12:40:11 -04:00
24c40c0e88 Add simple test for PBD::find_files_matching_pattern
This helped fix a silly cut and paste error in pbd/file_utils.cc so
might as well included it.
2014-06-25 12:40:11 -04:00
31bceb7570 Use PBD::FdFileDescriptor in PBD::copy_file 2014-06-25 12:40:11 -04:00
8da304be09 Fix PBD::copy_file so it works with non-ASCII filenames on windows 2014-06-25 12:40:11 -04:00
4ced10bfe5 Add test utility function to PBD tests to return some utf-8 strings
This is currently unused
2014-06-25 12:40:11 -04:00
53c959ad8f Add a test for PBD::copy_file using test files with utf-8 encoded filenames 2014-06-25 12:40:11 -04:00
de4fc4843b Fix PBD::copy_files so that it uses O_BINARY on windows and doesn't add line endings to copied files 2014-06-25 12:40:11 -04:00
3000399ce1 Use PLATFORM_WINDOWS define instead of WIN32 in PBD::FileManager 2014-06-25 12:40:11 -04:00
7bf392060e Call PBD::init and PBD::cleanup in pbd test executable 2014-06-25 12:40:11 -04:00
7338c4e242 Add test for PBD::copy_file
From this I can see that PBD::copy_file is not working correctly on windows
as it is adding windows style line endings. Adding O_BINARY to ::open flags
would fix it, but perhaps there is a better way...
2014-06-25 12:40:11 -04:00
94d8dfa256 Add utility function to test lib to create a test directory
There is an identical function in libardour test support lib so we
should probably find a better place to put this at some point
2014-06-25 12:40:11 -04:00
3b1a98f0ec Change PBD::get_files and PBD::get_paths to take a Searchpath instead of directory path
Both these functions use the internal function run_functor_for_paths
which takes a Searchpath so this avoids a temporary variable in cases
where a Searchpath is passed directly.

The usage is the same as the compiler will generate a temporary Searchpath
from a string(directory path) if necessary.
2014-06-25 12:40:11 -04:00
6d0cce528e Add/Update docs in pbd/file_utils.h 2014-06-25 12:40:11 -04:00
851db83fc4 Use run_functor_for_paths in PBD::get_paths 2014-06-25 12:40:10 -04:00
04434f2b88 Rename PBD::get_files_in_directory to just PBD::get_files, change parameter order and fix docs 2014-06-25 12:40:10 -04:00
84d190b7cc Rename PBD::get_directory_contents to PBD::get_paths
shorter name and change order of parameters to match other functions
2014-06-25 12:40:10 -04:00
26ec4038af Use run_functor_for_paths in PBD::find_files_matching_pattern 2014-06-25 12:40:10 -04:00
a7ce765b0b Fix finding of bundled LV2 plugins 2014-06-25 12:40:10 -04:00
24599c552d Add function PBD::find_paths_matching_filter 2014-06-25 12:40:10 -04:00
54c0a0144c Use run_functor_for_paths in PBD::find_files_matching_filter 2014-06-25 12:40:10 -04:00
e7141d2b80 Add function to file_utils intended to be used internally 2014-06-25 12:40:10 -04:00
ab6837665f Add some debug output in file_utils.cc 2014-06-25 12:40:10 -04:00
e6c4b0e9e4 Remove reference to strtok_r now that it isn't used 2014-06-25 12:40:10 -04:00
a226068959 Change formatting of DEBUG_TRACE calls to match style guide 2014-06-25 12:40:10 -04:00
cb3a604936 Move functions in pbd/clear_dir.h/cc into pbd/file_utils.h/cc 2014-06-25 12:40:10 -04:00
257897392a Add remove_directory_internal function and use it in PBD::clear_directory and PBD::remove_directory 2014-06-25 12:40:10 -04:00
64856a5862 Reimplement PBD::clear_dir using PBD::get_directory_contents 2014-06-25 12:40:10 -04:00
cd12698b9c Rename PBD::find_file_in_search_path to just PBD::find_file
saves a bit of typing and not necessary if you look at how it is used.
2014-06-25 12:40:10 -04:00
8d0cba3384 Use PBD::find_files_matching_pattern instead of other variations 2014-06-25 12:40:10 -04:00
36fd67ab72 Add a variation of PBD::find_files_matching_pattern for convenience 2014-06-25 12:40:10 -04:00
077c09b105 Add new function PBD::find_files_matching_pattern
This new function is intended to replace the three existing
PBD::find_matching_files_* functions.

The order of parameters matches find_files_matching_regex and
find_files_matching_filter
2014-06-25 12:40:10 -04:00
d9a7d419b2 Change PBD::find_files_matching_regex and PBD::find_files_matching_filter to take a Searchpath 2014-06-25 12:40:10 -04:00
613162df6b Reimplement PBD::find_files_matching_filter using SearchPath and get_directory_contents 2014-06-25 12:40:10 -04:00
56337eade4 Remove limit parameter from PBD::find_files_matching_regex
This limit was not used or documented. The same functionality can be
performed when iterating through the results.
2014-06-25 12:40:10 -04:00
0189ad7e29 Remove parameters from PBD::find_files_matching_regex
The only users of this API always used the same options so just remove
them.
2014-06-25 12:40:09 -04:00
769ee5c1f2 Change PBD::get_files_in_directory to return full paths in result
get_files_in_directory uses get_directory_contents internally now
2014-06-25 12:40:09 -04:00
d1dd5d3ee7 Add PBD::get_directory_contents to pbd/file_utils.h 2014-06-25 12:40:09 -04:00
3f776ce7d9 fix incorrect cut-n-paste across synergy 2014-06-25 12:30:57 -04:00
9b7b5fc9bc wscript fix for wavesaudio backend - use correct name for CoreM[iI][dD][iI] framework on Lion and other versions 2014-06-25 08:29:23 -04:00
663f9827f9 last piece of scroll-wheel checkin, oops 2014-06-24 10:46:53 -05:00
2cc25a9d79 add scroll wheel handler to canvas 2014-06-24 10:33:28 -05:00
f147846863 add ability to save current action sensitivities and restore them, and to disable all action sensitivity.
This is needed to be able to lock the application fully on OS X, where the global menu bar would still allow interaction
even when a modal dialog is displayed.
2014-06-24 09:56:16 -04:00
5b5e8df627 fix f6aaa16 (boost shared pointer) 2014-06-24 01:09:12 +02:00
199ac89d40 return of the zero line 2014-06-23 15:24:08 -04:00
a743e68a0c revert drawing of rectified waves back to previous approach since it (might be) slightly more efficient and is simpler to understand; add comments 2014-06-23 15:12:30 -04:00
437099fff9 completely rethink waveform rendering (again)
There are 3 possible components to draw at each x-axis position: the waveform "line", the zero line and an outline/clip indicator.
We have to decide which of the 3 to draw at each position, pixel by pixel. This makes the rendering less efficient but it is
the only way I can see to do this correctly.
2014-06-23 14:57:55 -04:00
71c417948e fix logic error that meant one side of the waveform outline is not drawn; draw zero line before outline, for better effects with low amplitude waves 2014-06-23 10:06:59 -04:00
07fafac36e don't let enumerated device list strings go out of scope. 2014-06-23 12:16:35 +02:00
fb51bdb892 statically allocate midi-options
fixes possible segfault when the data in the vector
goes out of scope due to RVO.
2014-06-23 11:56:58 +02:00
c13b74cd76 when exporting regions, use ::legalize_for_path() on the playlist name so that filenames are legal.
Also, use Glib::build_filename() rather than hardcoding / as the separator. How did this escape the search for this error?
2014-06-22 21:58:16 -04:00
f6aaa1660b en/disable internal send+returns with tracks en/disable. 2014-06-23 00:48:47 +02:00
14c6dfab07 Do not allow to de/activate a track while the transport is rolling.
roll_delay and latency are only re-calculated when the transport is stopped.
de/activating a track is also not RT-safe.
2014-06-22 23:18:00 +02:00
16ffff10cd ALSA-backend: dedicated Midi-Buffer n-periods (only use for HW output) 2014-06-22 18:28:24 +02:00
6a5d805b38 more canvas refactoring.
Remove Canvas::Layout, use Canvas::Container for the same purpose, move child-rendering into Item::render_children() so that it
could theoretically be used by any derived type.
2014-06-22 11:41:05 -04:00
f0933bf005 add missing new files for canvas redesign 2014-06-22 09:53:14 -04:00
ff46a3c3a2 Merge branch 'canvasredesign' into cairocanvas 2014-06-22 09:34:39 -04:00
99f9b3456a explicitly qualify cast to ArdourCanvas::Container so that it works.
I assume that gcc is failing to complain about ambiguity with Gtk::Container even though there should
really be no ambiguity
2014-06-22 09:29:16 -04:00
88caf84b81 Rename all 3 backends for the MSVC sln file 2014-06-22 13:29:17 +01:00
436302fd16 Rename dummy backend to match Tim's name 2014-06-22 13:11:59 +01:00
f46a1508d9 Rename jack backend to match Tim's name 2014-06-22 12:53:13 +01:00
07b71fd005 Rename waves backend to match Tim's name 2014-06-22 12:51:43 +01:00
a8bd6ecc4f refactor Canvas so that all Items have children; add Container abstract base class; rename Group as "Layout" and retain only drawing semantics 2014-06-21 11:43:42 -04:00
6648074a13 virtual abstraction of Alsa Raw+Seq 2014-06-21 13:51:46 +02:00
5e436fc8fc prepare ALSA sequencer 2014-06-21 11:51:11 +02:00
359a968e61 alsa sequencer device/port listing 2014-06-21 11:51:11 +02:00
8c8928a99c no more stack smashing, renice debug messages 2014-06-19 19:44:15 +02:00
bc67e47048 rework raw-midi drain strategy (workaround for sync devices) 2014-06-19 19:44:14 +02:00
157161e482 fix port-unregister (on failed latency measurement) 2014-06-19 19:44:14 +02:00
592654936e Remove (no longer needed) sources from an MSVC project 2014-06-19 11:49:51 +01:00
126ef72d05 Move the definition for 'strtok_r' (to avoid clashing with a different definition in pthread_win32) 2014-06-19 11:47:49 +01:00
c1045881dd if we're not going to notify parents of bbox changes while an item is hidden, we need to remind it when the item is hidden or shown 2014-06-18 21:02:30 -04:00
36a34dc1a4 Merge branch 'canvas_tweaks' of https://github.com/nmains/ardour into cairocanvas 2014-06-18 11:20:10 -04:00
becf857f48 a whole slew of changes related to centralizing and rationalizing cursor management.
Debugging output left in place to help address the reports that will come in as people test this more
2014-06-18 10:24:59 -04:00
nick_m
0bd17ed2e4 Canvas tweaks.
* Only queue a draw for changed items that are set visible and in-window.
2014-06-19 00:06:32 +10:00
47efeb9f21 Merge branch 'cache_fixes' of https://github.com/nmains/ardour into cairocanvas 2014-06-17 11:35:13 -04:00
93bc93b6f6 a set of 3 fixes that cure Canvas::Text leaving dirty pixels when being dragged. or might not - testing is non-deterministic, which is alarming 2014-06-17 11:34:54 -04:00
f98e0a0707 use a different approach for indicating expose rects (from robin gareus). #ifdef'd out by default 2014-06-17 11:34:54 -04:00
b4dd5b737f prepare midi-latency measurement using sysex messages 2014-06-17 16:19:59 +02:00
nick_m
b31608f64e Cache entries are now region colour aware. 2014-06-18 00:16:51 +10:00
3aa2a4ac8c Remove PathScanner class from libpbd 2014-06-17 21:43:30 +10:00
547689a055 Replace all use of PathScanner with equivalent functions from pbd/file_utils.h 2014-06-17 21:41:29 +10:00
cb6934a189 Remove unused header includes 2014-06-17 21:30:51 +10:00
26285a3bc0 Add default arguments to match those in PathScanner::operator() 2014-06-17 21:29:41 +10:00
dc81ab8640 Move member functions from PathScanner to functions in pbd/file_utils.h
This allows us to remove PathScanner source file and keep PathScanner class
as header only until it is removed
2014-06-17 21:19:02 +10:00
ea5f9a8ea6 Move PathScanner::operator() into header 2014-06-17 21:14:13 +10:00
b457c938cd Remove unused methods in PathScanner
Now that these methods are only a few lines it doesn't make much sense
to keep them seeing as they are unused. There are also functions with
near identical functionality in pbd/file_utils.h
2014-06-17 21:14:03 +10:00
cde8776e80 Rename PathScanner::run_scan_internal to PathScanner::find_files_matching_filter 2014-06-17 21:13:50 +10:00
3066bd48da Remove PathScanner::run_scan and use PathScanner::run_scan_internal directly 2014-06-17 21:13:41 +10:00
f54092dada Add PathScanner::find_files_matching_regex and move regexp usage to one place 2014-06-17 21:13:32 +10:00
f220d01132 Remove member filter argument from PathScanner methods and use normal filter for regex
Also use regfree to free memory of compiled patterns
2014-06-17 21:13:16 +10:00
0e96d84079 Change PBD::PathScanner API to return results by value to avoid inadvertent memory leaks 2014-06-17 21:13:05 +10:00
e426c603b6 remove debug output 2014-06-16 23:58:52 +02:00
019e987944 more alsa-midi debugging 2014-06-16 22:08:52 +02:00
43db6fd97e more midi latency detection debugging 2014-06-16 20:22:31 +02:00
fbe359e8c7 debug alsa midi latency measurement 2014-06-16 19:44:23 +02:00
a96036e3af fix typo in comment of prev. commit 2014-06-16 00:55:26 +02:00
c8fd1d26eb fix region un/combine, based on a patch by Tom Brand 2014-06-16 00:51:45 +02:00
c7c3c1e924 another edge-case, don't crash on invalid files with zero channels 2014-06-15 21:07:19 +02:00
443ccb866f fix edge case - handle error in device owner request 2014-06-15 21:07:19 +02:00
4651530d6f ARD: proper cleanup 2014-06-15 21:07:19 +02:00
8050712503 comment correction regarding Canvas::visible_area() 2014-06-15 12:18:47 -04:00
dae45f1d75 initialize _scroll_parent in Canvas::item 2014-06-15 12:17:12 -04:00
6c6afa4ecf optimize midi delayline. 2014-06-15 16:36:13 +02:00
b0bab058d0 offset automation by latency 2014-06-15 16:21:09 +02:00
b6e81dcdae offset automation by processor latency for bouncing/freezing
the same remains to be done for general route processing
2014-06-15 16:12:50 +02:00
36be1a3a9b plug some leaks 2014-06-15 13:24:41 +02:00
69af017315 initialize uninitialized variable 2014-06-15 13:24:40 +02:00
12cf9d5be8 fix pathscanner / stl_vector related memory leaks 2014-06-15 13:24:39 +02:00
55d51d38ce Add newly introduced sources to our MSVC projects 2014-06-15 09:56:49 +01:00
e59210c402 Remove no longer needed sources from MSVC projects 2014-06-15 09:55:34 +01:00
f7acad4e5c strtok() is the root of all evil. 2014-06-14 16:45:55 +02:00
62ba8d23e3 tracking down concurrency issus is fun. 2014-06-14 16:38:47 +02:00
ff39a42581 ALSA backend: set latencies to zero when measuring latency 2014-06-13 13:51:42 +02:00
b68552d9a0 send-delayline: proper debug output (and sort includes on the way) 2014-06-13 13:51:42 +02:00
ecb92f474f update ALSA backend, MIDI device config 2014-06-13 12:02:03 +02:00
da912f7ed4 add AudioEngine API to configure individual MIDI devices 2014-06-13 11:47:51 +02:00
5abf3624f4 Use Ardour 3 credentials for soundcloud upload
I registered 'Ardour 3' as an app with Soundcloud - here are the
client_id and client_secret I got back. Probably the client_secret
shouldn't be here - I'll try to understand what should really happen and
fix this up in due course. Probably we should be using OAuth.

Also remove a couple of bits of dead code and fix a few whitespace
oddities.
2014-06-12 23:20:06 +01:00
f0dbd6c085 Export dialog: tidy code, & remove some superfluous debug output
Remove some debug output, tidy up a few whitespace inconsistencies, use
DEBUG::Soundcloud in one more place, and zap a couple of unused variables.
2014-06-12 23:20:05 +01:00
70308f5174 Post-export hook tweaks
Remove the Soundcloud username & password from the parameter substitutions
passed to the post-export hook: having thought about this now, I can't
actually think of a case where these are of any use at all.

In compensation, add %s and %n parameters that expand to the session
directory and name - maybe people will think of uses for these.
2014-06-12 23:20:05 +01:00
724a69a8d5 Search $PATH for command when creating SystemExec from command line
When creating a SystemExec from a command-line, search $PATH for the
command to execute, so that post-export hooks don't need to specify a full
path.
2014-06-12 23:20:05 +01:00
590882f3c8 change Canvas heirarchy and constructors
Items no longer need a parent group (they require a Canvas pointer instead), so all constructors have been rationalized
and have two variants, one with a parent and one with a canvas.

All Items now inherit from Fill and Outline, to banish diagonal inheritance and virtual base classes and all that.

There were zero changes to the Ardour GUI arising from these changes.
2014-06-12 14:53:44 -04:00
23d7893910 remove drag handle canvas object - it was just a stupid unfinished experiment 2014-06-12 10:40:43 -04:00
87a6f633a1 derive ArdourCanvas::Ruler from Rectangle 2014-06-12 10:35:16 -04:00
e1825361b5 remove hard-coded colors 2014-06-12 01:07:58 -04:00
143f9509ea many fixes and improvements for a now-working ArdourCanvas::Ruler item 2014-06-11 23:54:28 -04:00
f5fc4a6b09 add ruler.cc to canvas wscript 2014-06-11 23:54:28 -04:00
2cab65062d add Ruler to Canvas fwd.h 2014-06-11 23:54:28 -04:00
5ee4f41925 add initial (untested) implementation of canvas ruler item 2014-06-11 23:54:28 -04:00
e1b82caeb9 delayline: properly hand-over the shared-pointer. 2014-06-12 02:10:37 +02:00
266953cb96 add latency callback to dummy backend 2014-06-11 22:01:21 +02:00
b6362a76a8 fix possible crash when setting delivery name w/o panshell 2014-06-11 20:21:14 +02:00
6003aea385 NOOP, re-indent using tabs 2014-06-11 17:14:31 +02:00
4d0e564fa7 align internal sends using delaylines 2014-06-11 17:14:26 +02:00
ca3c9cae6e basic integration of delaylines (still un-nused) 2014-06-11 17:14:18 +02:00
626b2daa82 add delayline implementaion (in prep for latency compensation) 2014-06-11 16:31:29 +02:00
621e92f268 NOOP, re-indent & whitespace 2014-06-11 16:27:30 +02:00
33db3c854d prepare midi buffer API for midi-delaylines 2014-06-11 16:27:23 +02:00
0400fa64da fix midi buffer erase() 2014-06-11 16:26:27 +02:00
b660bc8ae9 fix crash recovery: add new constructors to SndFileSource, AudioFileSource, add a new SourceFactory method and finally tweak
AudioDiskstream::use_pending_capture_data() to create both the required whole-file and the in-playlist regions
2014-06-10 10:09:26 -04:00
107e0d6d02 fix crash recovery: add new constructors to SndFileSource, AudioFileSource, add a new SourceFactory method and finally tweak
AudioDiskstream::use_pending_capture_data() to create both the required whole-file and the in-playlist regions
2014-06-10 10:07:04 -04:00
438179d278 wrap MIDI timecode at 24h 2014-06-10 04:22:34 +02:00
c0376fe7b3 really fix sending MIDI timecode. 2014-06-10 04:12:08 +02:00
7df663acf2 fix crash when trying to send MMC of timecode > 255 hours 2014-06-10 03:18:05 +02:00
915bb2f641 close dir opened with opendir() - fixes accumulated fd for plugin state saves 2014-06-10 02:21:22 +02:00
7a3a66db72 fix Canvas::LineSet implementation to support horizontal and vertical linesets 2014-06-09 15:39:19 -04:00
f0c18abf55 remove global canvas scroll offset, to provide no-scroll-parent == no-scroll behaviour 2014-06-09 08:39:48 -04:00
8fe593fcca some misc tweaks to the ALSA Backend 2014-06-08 21:04:30 +02:00
4c1d049c8e reset accumulated capture offset on file roll-over.
(previously it was not reset as long as rec-arm and rec-enable
remained enabled)
2014-06-08 21:03:50 +02:00
b86e1204ec fix borked logic controlling whether/when to draw clip/outline pixels/lines in waveviews 2014-06-08 13:13:44 -04:00
c22e96522d Merge branch 'waveview_caching_for_upstream' of https://github.com/nmains/ardour into cairocanvas 2014-06-08 13:01:47 -04:00
nick_m
e495577f98 Use global clip level from prefs. Restore clip colour, \ 2014-06-09 02:50:14 +10:00
5e281d3b44 when delivering enter/leave events to canvas items, ensure that the event coordinates are in canvas space, not window space
This fixes a variety of borkage in the canvas at present
2014-06-08 11:26:32 -04:00
153befa92c add Item::canvas_origin() for convenience 2014-06-08 11:26:32 -04:00
b3a44ea32b ALSA Backend: align midi output buffer with n_periods (currently 2) 2014-06-08 15:53:15 +02:00
81182b5bf6 prepare MIDI latency measurement (backend) 2014-06-08 11:18:18 +02:00
6416a429a8 implement midi capture alignment:
For audio: not writing frames to the capture ringbuffer offsets
the recording.
For midi: we need to keep track of the record range
and subtract the accumulated difference from the event time.
2014-06-08 01:07:03 +02:00
5a41487a08 remove some 1920 tick constants and leave notes for some others. 2014-06-07 18:35:37 +02:00
nick_m
7a05dde39d Use a dumb cache for waveview ImageSurfaces. This halves the size of the
previous one, but usually ends up using three of them at the current
CACHE_HIGH_WATER setting.
Should result in a smaller memory footprint for sessions with
multiple copies of nearby audio segments (electronic style).
The downside is the larger memory footprint for linear recording
sessions if CACHE_HIGH_WATER > 1 (1 giving a max of two
half - sized cache entries per audio stream).
2014-06-08 01:47:38 +10:00
94fa927861 limit automation event density - fixes #5928
Constrain control points to one per tick (1/1920 beats).

Prior to this it was possible to set two values to the
same time (interpolation and iteration failed).
2014-06-07 17:43:12 +02:00
8f17b7c309 ALSA backend: separate systemic audio+midi latency 2014-06-07 17:28:47 +02:00
c452cd9be2 ALSA rt-thread priority fixes 2014-06-07 17:28:46 +02:00
b68d2e25b2 ALSA backend: prevent possible crash destruction of a-r-d 2014-06-07 17:28:46 +02:00
960a5347f0 ALSA & Dummy: implement port [un]registration_callback 2014-06-07 17:28:46 +02:00
5288de3dc0 install libardouralsautil into the normal libdir, not a subdir 2014-06-07 08:30:35 -04:00
5086cc3f49 Revert windows backend search expression to "*backend.dll" 2014-06-07 14:31:32 +10:00
6b3e7cf07d Don't use module versioning with dummy backend when building with mingw 2014-06-07 14:31:32 +10:00
67c43d4b49 Don't use module versioning with jack backend in the mingw build 2014-06-07 14:31:32 +10:00
dada765e7a Include stdint.h for int64_t type 2014-06-07 13:49:12 +10:00
c5538969b7 Fix timecode target so it is just libtimecode.so and not liblibtimecode.so 2014-06-07 13:49:12 +10:00
b54a2713a1 When rendering a Canvas::Rectangle take its _position into account, even though in general this is always (0,0) within its parent 2014-06-06 08:33:13 -04:00
d7fc573cb8 alsa + dummy backend, proper [re]initialization 2014-06-06 03:43:39 +02:00
1c87f6adec properly setup port system latency for Dummy & ALSA backend 2014-06-06 00:58:11 +02:00
792fe016e7 clip rendering of ScrollGroup to just the part of the canvas covered by the scroll group.
This stops tracks from appearing to scroll up under the rulers, among other things.
2014-06-05 18:18:28 -04:00
ef9bf58359 fix problems with expose/redraws from canvas where requested area goes way outside the integer range allowed by GTK/GDK 2014-06-05 14:42:46 -04:00
748c137461 pass ardour's pid to the device reservation script.
terminate a-r-d when ardour crashes or exits unexpectedly.
2014-06-05 19:49:23 +02:00
475e24f1d9 don't build a-r-d if alsa backend is not built 2014-06-05 18:19:55 +02:00
27af0f2d4b add default timeout for old dbus headers 2014-06-05 18:19:54 +02:00
8c79f70eef remove debugging output 2014-06-05 12:04:42 -04:00
1d354f746a basic, initial structure for canvas widget item 2014-06-05 12:04:42 -04:00
55009368c5 allow public access to CairoWidget::render() 2014-06-05 12:04:41 -04:00
de6a1ab701 make alsa/ardour dbus-device request tool generally useful. 2014-06-05 18:02:43 +02:00
8d6183bff5 ALSA backend: require both in+output. 2014-06-05 03:27:19 +02:00
27f8fc90cf mark dbus reservation tool optional 2014-06-05 03:26:52 +02:00
3813c7afae increase system-exec timeouts for kill. 2014-06-05 02:22:13 +02:00
822c460d15 DBus ALSA device reservation 2014-06-05 02:22:13 +02:00
742282b7e9 proper dbus device reservation 2014-06-05 02:22:12 +02:00
a907d3455e break out ALSA related functions into libardouralsautil 2014-06-04 19:16:37 +02:00
40cfe86569 ALSA: tentative hack to request audio-device. 2014-06-04 17:17:15 +02:00
6b781f72f2 ALSA backend: engine.halted_callback if the process thread dies 2014-06-04 17:17:15 +02:00
104adebea6 if the user chooses to stop the jack-backend, mark it as stopped. Don't display the "..was shutdown .. was not fast enough.." message. 2014-06-04 17:17:14 +02:00
ec49e351c3 fixes to change engines while Ardour is running.
When a new backend is selected, it is loaded to query
available devices etc. This effectively drops the current backend.
2014-06-04 17:17:14 +02:00
236926e7ca Add newly introduced sources to MSVC project
(scroll_group stuff)
2014-06-04 13:50:06 +01:00
3ca59162c9 Revert "add API to query a processor's frozen state."
Theoretically one could alter the plugins after a delivery even on a
frozen track. ..or even change settings, the ordering and add/remove
plugins after the frozen part of a track.

We won't go there. Frozen is frozen. this API is not needed after all.

This reverts commit a771dea203.
2014-06-04 02:40:19 +02:00
aec7ea4613 Revert "Revert "ALSA backend: separate flags for is-running and should-be-running""
sorry, c/p error
This reverts commit 9658b77327.
2014-06-04 02:39:39 +02:00
9658b77327 Revert "ALSA backend: separate flags for is-running and should-be-running"
Theoretically one could alter the plugins after a delivery even on a
frozen track. ..or even change settings, the ordering and add/remove
plugins after the frozen part of a track.

We won't go there. Frozen is frozen. this API is not needed after all.

This reverts commit 6d89488d64.
2014-06-04 02:34:58 +02:00
6d89488d64 ALSA backend: separate flags for is-running and should-be-running 2014-06-04 02:23:41 +02:00
a771dea203 add API to query a processor's frozen state. 2014-06-04 02:23:24 +02:00
06b4cf92db re-work bounce/freeze. Freezer stops at first active delivery.
amend to 8f52bf7d9f
2014-06-04 02:19:46 +02:00
03cb44f814 ALSABackend: elaborate on start-up error cases 2014-06-04 02:19:46 +02:00
daaa59b533 Revert "When writing '.jackdrc' make sure we enclose any device names in
quotation marks". This patch is incorrect. The string quoting must be done ONLY
when creating a string to be written to ~/.jackdrc or similar, not when
constructing an argument list.

This reverts commit 5626ea2b1f.
2014-06-03 20:08:26 -04:00
8b745aa4b4 fix two mysterious problems with stdint types 2014-06-03 16:38:33 -04:00
8fa81c1436 merge onecanvas and cairocanvas branches, and manually resolve conflicts, including rounding in item_to_window() methods 2014-06-03 16:37:53 -04:00
e0533e9dd7 more profound changes to canvas scrolling, in particular find appropriate ScrollGroup for Canvas::{window,canvas}_to_{canvas,window}() 2014-06-03 16:13:12 -04:00
d4989ed9ce fix missing leftover Canvas::pick_current_item() which was confusing button release event coordinates 2014-06-03 16:12:00 -04:00
073df89c4d use window-based coordinates when picking current item so that we get per-item (per-scroll-group,really) computation of position and coverage. 2014-06-03 16:12:00 -04:00
54a56cd3c6 various changes to get independent scrolling to work better in canvas. mostly tweaks relating to how scroll offsets are used during rendering.
Event handling offsets still require work.
2014-06-03 16:12:00 -04:00
f17b84ad10 clean up ArdourCanvas::Arrow implementation to remove unshown polygon/head 2014-06-03 16:11:24 -04:00
bf7b35388b rationalize and centralize computation of positional offset and scroll offset for canvas items 2014-06-03 16:11:24 -04:00
22e7252729 inline ScrollGroup::canvas_position() for no particular reason 2014-06-03 16:10:27 -04:00
c9f890bd7c avoid recursing through the entire canvas when scrolling - only scroll explicitly identified ScrollGroups 2014-06-03 16:10:27 -04:00
6019f06bdf different approach to independent scrolling, involving ArdourCanvas::ScrollGroup
The idea now is that a scroll group item can be added to the canvas which will causes its children to scroll in either or both
directions (horizontal or vertical). There are few complications: the position() of the ScrollGroup is ambiguous depending
on whether you want it with scroll taken into account or not, so Item::canvas_position() was added, which defaults to
the same value as Item::position() but is overridden by ScrollGroup to return the position independent of scrolling. This
method is used when translating between item/canvas/window coordinate systems.

Note that the basic idea is that we MOVE the scroll group when a scroll happens. This mirrors what happens in the GnomeCanvas,
where Nick Mainsbridge came up with a great idea that allowed unification of the time bar and track canvases.
2014-06-03 16:10:27 -04:00
97109672c7 initial redesign of canvas scrolling to facilitate independent x- and y-axis scrolling of specific groups within the canvas.
This commit should cause no change in behaviour, but contains all the code and changes necessary
for the next step
2014-06-03 16:09:06 -04:00
5626ea2b1f When writing '.jackdrc' make sure we enclose any device names in quotation marks
(in Windows, device names almost always contain whitespace)
2014-06-03 14:04:10 +01:00
fd50cf14dd Keep this #include consistent with similar ones
(evoral/evoral doesn't get used anywhere else)
2014-06-03 14:02:05 +01:00
01cedf0e05 ALSA backend: tweak midi parser (fix start mid sequence) 2014-06-03 01:00:58 +02:00
b050f91323 ALSA backend: device detection 2014-06-03 00:50:26 +02:00
432f54db24 make ALSA backend optional and disable by default 2014-06-02 20:33:12 +02:00
c79a56a08f ALSA backend: add raw midi parser 2014-06-02 19:23:07 +02:00
5cd2010c79 ALSA backend: raw midi prototype 2014-06-02 19:23:07 +02:00
8e9b02cfa2 ALSA backend (based on Dummy backend and zita-alsa-pcmi) 2014-06-02 19:23:07 +02:00
7f18913e6d fix errors in manual conflict resolution 2014-06-02 11:42:35 -04:00
8c9749e42f merge with master and fix 4 conflicts by hand 2014-06-02 11:32:13 -04:00
74bc0c8468 substantive changes to the logic and safety for naming of (audio/MIDI) sources, especially when created via import 2014-06-02 11:20:37 -04:00
f6d29abfc7 DummyBackend: fix midi event mux+sorting 2014-06-02 12:20:40 +02:00
1c60652bd8 fix --with-dummy config option 2014-06-01 18:18:32 +02:00
dc1a7a15fa Dummy backend, revise small things 2014-06-01 18:18:08 +02:00
b800a01ea6 dummy-backend, fix physical ports in/out convention. 2014-06-01 18:16:15 +02:00
ab60429efc test possible 'flickering' with nvidia 2014-05-31 18:22:34 +02:00
f382aef5ac do not thin() automation event list on load.
only thin() when writing automation. This fixes issues with
loading short x-fades (which can be stretched later).

TODO: thinning should not just drop, but interpolate and use
more elaborate logic, compared to A2/MB2 Curve::merge_nascent()
2014-05-31 17:13:47 +02:00
2342b7d611 don't allow waveform to bleed into TimeAxisViewItem frame border 2014-05-31 14:06:10 +02:00
62e8d1a25f use CubicSpline interpolation for x-fade preset Shapes 2014-05-30 17:24:12 +02:00
c91f847454 update Evoral::Curve to honor ControlList::InterpolationStyle 2014-05-30 17:00:28 +02:00
161a3258ee Add newly introduced sources to MSVC project
(xfade_curve stuff)
2014-05-30 12:52:03 +01:00
33412421f6 Rearrange some #includes to keep MSVC happy 2014-05-30 12:50:49 +01:00
5aecc877d6 Fix code to prepare re-enable cubic spline interpolation of automation data.
see also 24917e4c9e
2014-05-30 04:25:59 +02:00
e69057319e panner: backwards compatibility, constrain pan-range in old sessions
fixes http://tracker.ardour.org/view.php?id=5823#c15686

This is only an issue when loading an old session
(pre 3.5.308 - actual change was 21ca6a10) for the first
time with newer ardour.
Saving and re-loading with ardour >= 3.5.308 fixed this as well.
2014-05-30 03:54:15 +02:00
fed5599baa smooth visual curve drawing 2014-05-30 03:04:02 +02:00
38891288f3 use fixed number of steps for dB-scale x-fade curves.
32 steps is sufficient for all practical musical purposes.
2014-05-29 22:41:13 +02:00
1cfdad6ffb 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.
2014-05-29 22:41:13 +02:00
08a1409b1f back port 6576105 from cairocanvas as fix for data loss/file deletion 2014-05-29 16:28:57 -04:00
be575b7945 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.
2014-05-29 16:27:41 -04:00
c6930c1aef fix symmetric fade-shape (still variable number of steps) 2014-05-29 20:53:18 +02:00
7953df93bf Symmetric x-fade, use equivalent of -6dB per step for 7 steps. 2014-05-29 16:59:04 +02:00
cc6eb5049a fix typo in vst doc. 2014-05-29 07:49:36 +02:00
202d926916 smoothen rendering of x-fades 2014-05-29 07:48:43 +02:00
5451a70a16 increase accuracy of fades. 2014-05-29 07:48:25 +02:00
604abffeb5 fix prev commit 2014-05-29 05:30:13 +02:00
86e7d86089 renice x-fade rendering w/cairo-antialiasing 2014-05-29 05:06:02 +02:00
0ba8bbdbfc revert x-fade curves to Mixbus2. 2014-05-29 04:38:06 +02:00
796f4e9711 make building the dummy backend be a configure-time option. defaults to False for the time being 2014-05-28 22:30:06 -04:00
30f204b90e Canvas: new x-fade drawing, two curve widget 2014-05-29 03:09:57 +02:00
034f3dafd7 Revert "cairo sub-surface prototype & example
This reverts commit c57fcde78c.
and also     commit f1f8f89fcb.
2014-05-28 19:13:25 +02:00
f1f8f89fcb exercise subsurface rendering for x-fade curves 2014-05-28 17:38:42 +02:00
c57fcde78c cairo sub-surface prototype - intermediate flattened group renderer. 2014-05-28 17:38:42 +02:00
a1cbe0f1d9 VST: fix name detection if effGetEffectName is N/A, remove superfluous \0. 2014-05-28 02:15:52 +02:00
84ccf721ba VST: properly query name from plugin 2014-05-28 01:59:19 +02:00
c03b658531 Curve: anti-aliasing.
use cairo for anti-aliasing, and ignore explicit Catmull-Rom
points for that fall on the same x-cordinate.
2014-05-27 19:36:10 +02:00
99c953514b implement Curve in/outside fill 2014-05-27 16:37:01 +02:00
432611113d directly apply waveform clip-level changes 2014-05-27 16:37:01 +02:00
458d4dc6de (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)
2014-05-27 14:48:44 +01:00
5b4cb15dfc Remove an unnecessary #define 2014-05-27 13:24:51 +01:00
e2cecadd01 Use PLATFORM_WINDOWS (in preference to WIN32) for consistency with the other libraries 2014-05-27 09:51:39 +01:00
bf4819ab0e "We brake for nobody." oh wait. - fixes Rectified Waveform view. 2014-05-26 22:45:42 +02:00
314d210f2b fix region export with fades and gain.
region.read_at() is additive - it assumes the buffer may already contain
data from from lower regions.
2014-05-26 21:30:58 +02:00
15adbf54e8 NOOP, just re-indent diagram 2014-05-26 21:30:18 +02:00
bdb342123f fix prev commit, window-offset for x-fade drawing 2014-05-26 18:22:21 +02:00
791c668756 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.
2014-05-26 17:02:21 +02:00
3be01ea502 apply gain automation on bounce - fixes 5887 2014-05-26 06:58:44 +02:00
bb727f4588 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.
2014-05-26 06:56:04 +02:00
491f3f6e44 process effect-automation when bouncing w/processing 2014-05-26 06:55:56 +02:00
8f52bf7d9f ignore sends when bouncing w/processing - only break on inserts. 2014-05-25 21:20:07 +02:00
ad9c074828 bounce to target number of channels 2014-05-25 19:43:45 +02:00
5b2da3caf7 compensate for processor latency during bounce 2014-05-25 19:43:37 +02:00
1e3a955fc0 fix bounce with processing (thread buffers) fixes #5920 2014-05-25 08:23:36 +02:00
c022f32bcd allow to switch from/to dummy-backend
partos of this may become unnecessary once
libardour handles backend changes properly^Wdifferently.
2014-05-25 00:23:14 +02:00
2b9fa31241 DummyBackend: implement port connect_callback() 2014-05-25 00:21:44 +02:00
4153f4dd57 Initialise _soundcloud_upload to false in ExportFormatSpecification 2014-05-23 20:21:56 +01:00
4347ceb173 fix for OSX 10.0/clang (missing symbol) by cth 2014-05-23 20:49:21 +02:00
aa318a2fc3 Add and use a DEBUG flag for Soundcloud uploads.
Replace output to stdout/stderr from Soundcloud upload functions with
DEBUG_TRACE (DEBUG::Soundcloud, ...).
2014-05-23 19:36:47 +01:00
10ed21a498 Set 'downloadable' property on Soundcloud uploads
Set the downloadable property according to what the user chose on files
uploaded to Soundcloud.
2014-05-23 18:59:53 +01:00
29f0ad473f Show URI of file uploaded to Soundcloud in log window. 2014-05-23 18:47:33 +01:00
b49e398250 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.
2014-05-23 18:45:40 +01:00
84bcf59812 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.
2014-05-23 18:33:43 +01:00
9daab3db84 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.
2014-05-23 18:14:37 +01:00
2f6debf0d2 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.
2014-05-23 17:42:35 +01:00
f1beb02606 add GPLv2 to exec_wrapper 2014-05-22 23:44:28 +02:00
43b4577212 waves_backend (MSVC project) - Adapt for using Waves's (customized) portaudio_x86 library (Windows) 2014-05-21 12:50:31 +01:00
e36a8df16e jack_backend (MSVC project) - Adapt for using portaudio_x86 library (Windows) 2014-05-21 12:49:24 +01:00
4d24ca3f0c Add newly introduced sources to MSVC projects
(SoundCloud export stuff)
2014-05-21 12:47:03 +01:00
a47f9084db Use Glib::usleep() for consistency 2014-05-21 12:45:13 +01:00
10a52f1d19 enforce style-guide #3, #26 and #27 2014-05-21 02:25:45 +02:00
9d6cfd67c3 CoreMidi is also needed on OSX.6 2014-05-21 02:17:35 +02:00
81d8eaa216 fix type typo 2014-05-21 00:19:15 +02:00
bc8ccea212 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.
2014-05-19 22:49:22 +01:00
0de7c8920b Merge branch 'mingw-updates' of https://github.com/mojofunk/ardour into cairocanvas 2014-05-19 17:19:43 -04:00
5399425f53 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
2014-05-19 20:54:36 +01:00
65dc32f9ec Add back libardour wrappers for PBD::SystemExec
Add back ARDOUR::SystemExec wrapper for PBD::SystemExec, and add
constructor for command line with parameter substitution.
2014-05-18 23:26:27 +01:00
ba08ae9641 Use ARDOUR namespace for SystemExec
Explicitly use ARDOUR::SystemExec, and #include the right header for it
too.
2014-05-18 22:34:04 +01:00
7c4259133d 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.
2014-05-18 20:49:58 +01:00
205b5d97d5 partial fix for #5871 - midi-buffer size 2014-05-17 22:13:03 +02:00
19d99d4bc5 vst - fix effGetParameterProperties; label may be unset. 2014-05-17 17:01:02 +02:00
8b27c122b6 vst-scanner app: properly init and use libpbd's Transmitter 2014-05-17 16:54:12 +02:00
f3349a797c more gettimeofday() -> g_get_monotonic_time() 2014-05-16 19:58:46 +02:00
5fba8a2015 and one more gettimeofday() transition (mackie timers) 2014-05-16 18:35:42 +02:00
030a8f189d yet another gettimeofday() removal (glibmm idle) 2014-05-16 18:34:59 +02:00
827388ffdd outline portable implementation to replace clock_gettime() 2014-05-16 18:19:41 +02:00
4ece16be8e replace gettimeofday() with g_get_monotonic_time() 2014-05-16 18:13:08 +02:00
51d0792f14 DummyAudioBackend: configurable number of MIDI ports 2014-05-16 00:41:35 +02:00
cf8399c1c1 DummyAudioBackend: prepare configurable number of midi ports 2014-05-15 01:18:16 +02:00
4c2f1489f4 fix midi output on audio-tracks (e.g. audio->midi plugins) 2014-05-15 01:18:16 +02:00
Devin J. Pohly
16cbecf193 don't use llrint on already-integral variables
This could trick people into thinking that there is a floating-point
type hiding behind the typedef instead of an integer.
2014-05-14 12:11:14 -04:00
Devin J. Pohly
0aa2ed582a fix accumulated rounding error in BBT grid
Though current_frame is an integral type (framepos_t), it was being
added to as if it were floating-point, leading to an ever-increasing
rounding error when creating the grid for bars/beats/ticks.
2014-05-14 12:11:05 -04:00
Devin J. Pohly
cd0ac04080 don't use llrint on already-integral variables
This could trick people into thinking that there is a floating-point
type hiding behind the typedef instead of an integer.
2014-05-14 02:59:25 -04:00
Devin J. Pohly
d067e27762 fix accumulated rounding error in BBT grid
Though current_frame is an integral type (framepos_t), it was being
added to as if it were floating-point, leading to an ever-increasing
rounding error when creating the grid for bars/beats/ticks.
2014-05-14 02:54:01 -04:00
6bf8249b4b Use Glib::usleep in DummyAudioBackend rather than ::usleep 2014-05-14 09:48:43 +10:00
b565357bf4 Remove incorrect code for mingw in DummyAudioBackend::in_process_thread
I'm assuming this section was copied from the JackAudioBackend where the
thread type is not pthread_t for mingw, but in the DummyAudioBackend it
is.
2014-05-14 09:48:33 +10:00
e4442b45cf Use COMPILER_MINGW define rather than __MINGW64__
This is necessary to build with win32 target using mingw-w64 version
on Fedora 19
2014-05-14 09:47:40 +10:00
86a0f10ac7 Reinstate code removed that allows building with mingw and the pthreads-win32 library
Newer versions of mingw-w64 can be built with an included pthread implementation
called winpthreads which uses an integer type for pthread_t but pthreads-win32 does
not.
2014-05-14 09:47:40 +10:00
b895a8f631 Always link to ole32 when building with mingw for get_win_special_folder
needed for CoTaskMemFree in get_win_special_folder
2014-05-14 09:47:40 +10:00
9cde7b6051 Fix pattern to match possible audio backends on windows 2014-05-14 09:47:40 +10:00
f075981330 Bug fix imported from Mixbus2 (SVN r11025)
Fix a crashing bug when trying to launch in a non-English locale (possibly only affects Windows)
2014-05-10 08:35:27 +01:00
d75c7151d4 Ripple mode: basic implementation
Add a value for Ripple to EditMode enum.

Add Ripple edit mode to edit mode dropdown, by adding it to the
Editor::build_edit_mode_menu() helper function, and remove the old code that
added items to the (now unused) Editor::edit_mode_strings.

Add the regions that should be affected by the drag to RegionDrag::_views so
that the drag carries them along automatically.

Use a copy of the RegionList in Playlist::core_ripple(), since bad things
happen when iterating over regions and they get moved around in the list.

Handle rippling in removal of regions from playlist.

When dragging in ripple mode, exclude all regions that lie before the
original start position of the selected regions being dragged from
rippling: this is what Mixbus does.

Make editor dragging respect snap-to settings, by using the existing
compute_x_delta() function, which did almost the right thing. Move setting
of _last_frame_position out of that function so all ripple-dragged regions
can move.

Ripple when dragging from region list: even though Mixbus doesn't do this, it
seems like a good idea.

Prevent multi-track selection being dragged across tracks, by making
RegionMotionDrag::y_movement_allowed() virtual, and overriding it in
RegionRippleDrag to forbid dragging of selections containing regions on more
than one track to dofferent tracks in ripple mode.

Remember which TimeAxisView a ripple-mode drag that's allowed cross-track
drags started from, so that the effect of rippling regions after any region
that's dragged off that track can be undone.
2014-05-07 19:46:24 +01:00
0026399358 Splice mode: exclude newly-added regions from being shuffled
When adding regions in splice mode, exclude the region being added from
possibly being shuffled. I don't know whether this might have some other
adverse effects, but it fixes an obvious defect in 'Splice' mode where
newly-recorded regions 'jump' to the playhead position when recording
stops, and since splice mode is pretty much broken anyway, I don't think it
can make matters any worse.
2014-05-07 19:46:24 +01:00
e99c8960c0 first pass at tightening up waveform drawing algorithm to generally round down when dealing with fractional pixels 2014-05-07 10:35:50 -04:00
6142c814bf provide plugins with all available buffers.
e.g. Audio in -> Midi out plugins (on an audio-track).
Midi-buffers do exist in the route but no corresponding
(physical) Input port-buffer exists and ardour crashed.

Now, the plugin itself still only accesses the mapped ports
(ChanMapping), but the mapped buffers are at most
"processor_max_streams" and at least the required
in+out buffers for the plugin.
2014-05-06 23:34:34 +02:00
ad40a9008b Add some more missing #includes 2014-05-06 17:00:35 +01:00
18245b06d0 'atomic_ops' to use glib, rather than Waves's inbuilt atomic operations
Note that the following source files can be removed once we know this works on all platforms:-
backends/wavesaudio/wavesapi/akupara/threading/atomic_ops.hpp
backends/wavesaudio/wavesapi/akupara/threading/atomic_ops_gcc_x96.hpp
backends/wavesaudio/wavesapi/akupara/basics.hpp
backends/wavesaudio/wavesapi/akupara/compiletime_functions.hpp
2014-05-06 09:41:40 +01:00
b9fab9ea28 Add a return value to 'WCMRPortAudioDeviceManager::getDeviceAvailableSampleRates()'
(whilst technically, it doesn't report any encountered errors, it should nevertheless be returning some kind of error status)
2014-05-06 09:33:54 +01:00
8d0ec2403f Add a couple of pthread helper macros
(to accommodate the fact that in ptw-win32, 'pthread_t' is subtlely different from its non-Windows counterparts)
2014-05-06 09:31:11 +01:00
1a1a05fa1c Add 'waves_backend.vcproj' 2014-05-06 09:26:59 +01:00
41fe637e80 Add the 'porttime' source file for Windows 2014-05-06 09:25:27 +01:00
051ceffc5d Add some type guards to 'wstdint.h' (in case we previously #included some headers which already define those types) 2014-05-06 09:23:00 +01:00
9cf2cf55f5 Add some casting and namespace specifiers to keep MSVC happy 2014-05-06 09:20:03 +01:00
0277c8c8d1 Add a couple of missing header files (needed for cin /cout etc) 2014-05-06 09:16:59 +01:00
9af09e5769 Add 'midi_scene_change' sources to ardour.vcproj 2014-05-06 09:08:47 +01:00
6ffd8a9543 a variety of changes to finalize (?) (MIDI) SceneChange functionality 2014-05-02 18:44:04 -04:00
27cff1dc01 tell the SceneChanger to emit any relevant scene changes after a locate 2014-05-02 18:43:37 -04:00
25a5c317f9 changing the start (position) of a marker with a scene change needs to update the SceneChanger 2014-05-02 18:43:04 -04:00
Adrian Knoth
1770227834 Introduce global default-fade-shape configuration variable
Some users always want the same fade in/out style, e.g., constant power,
symmetric, fast etc.

To avoid having them change the fade style manually for each fade, use a
global configuration variable instead.
2014-05-01 20:02:14 +02:00
Adrian Knoth
ca68814faf Drop unused set_default-fade(float, framecnt_t) prototype 2014-05-01 20:02:08 +02:00
e69531b953 fix crash in butler when destroying before thread is started 2014-05-01 12:31:34 -04:00
cd00429672 fix install path for ./waf install of waves backend 2014-05-01 10:18:30 -04:00
fa139421b9 second part of windows/osx macro change - forgot *.cpp files 2014-05-01 09:39:11 -04:00
49423427a6 alter platform-dependent preprocessor macros to use the same names as the rest of the ardour codebase 2014-05-01 09:32:18 -04:00
49ad78659b fix compile for waves backend, after recent API change 2014-05-01 09:22:59 -04:00
392c3a6bef use AudioBackendInfo::already_configured() to correctly determine if backend requires setup
Fixes issues when using JACK backend in combination with others, that prevented connecting to an existing JACK server.
2014-05-01 09:15:26 -04:00
66559cd795 Add AudioBackend::info() method to retrieve AudioBackendInfo object
Goal is to be able to call AudioBackendInfo::already_configured() from the right place.
2014-05-01 09:14:25 -04:00
ca08e4c7c7 more previously applied changes required to build Waves audio/midi backend 2014-04-30 14:24:32 -04:00
c90fef1b4c second part of (previously applied) change to be able to use -fms-extensions with C compiler 2014-04-30 13:48:25 -04:00
19d21045af 2nd attempt at updated Waves audio backend, with added -fms-extensions as previously applied (but not updated in Waves' repo) to allow anonymous unions, as used by PortMidi 2014-04-30 13:46:41 -04:00
d604852f67 use per-channel signals to pick up scene changes, rather than global ones 2014-04-30 10:10:31 -04:00
58522e5b5e fix for storing 14 bit MIDI controller values 2014-04-30 10:10:06 -04:00
8a6762f189 Revert "update wavesaudio backend, now supports Windows (ASIO) as well as OS X (CoreAudio)"
This reverts commit f374ce69a6.

The code does not compile on OS X, and includes changes to ARDOUR::AudioEngine
that have not landed in git.
2014-04-29 16:30:56 -04:00
f374ce69a6 update wavesaudio backend, now supports Windows (ASIO) as well as OS X (CoreAudio) 2014-04-29 16:06:39 -04:00
1f70e9472a DummyAudioBackend: fix freewheelin' typo 2014-04-29 13:32:13 +02:00
eaafc3394a DummyAudioBackend: implement /fake/ system ports 2014-04-29 13:32:13 +02:00
19e0383c3b DummyAudioBackend: NOOP, white-space, clarify variable name & casts 2014-04-29 13:32:13 +02:00
1b989a93c2 remove redundant os.path.join() calls when specifying install path as bld.env['LIBDIR'] 2014-04-28 21:18:02 -04:00
058986f77b finish unfinished work at basing all install paths on the program name 2014-04-28 21:11:08 -04:00
ff25ebe7d9 add another missing file 2014-04-28 20:56:33 -04:00
83ed363e5b add missing file 2014-04-28 20:46:03 -04:00
2cf411e4be merge (squash) with scenechange topic branch to provide MIDI-driven scene change markers 2014-04-28 19:58:24 -04:00
b945cda558 DummyAudioBackend: port-engine, midi-buffers and the rest of it 2014-04-28 23:00:40 +02:00
2fccbe1a6c DummyAudioBackend: basic process threads and support structure 2014-04-28 22:59:19 +02:00
2f6065b32c Fixed problem where importing invalid midi files caused crash. 2014-04-29 06:48:29 +10:00
9907d25ea5 skeleton dummy audio-engine 2014-04-28 21:29:35 +02:00
f5276a104c add new SMFSource constructor to be used for existing-external files. Fixes #5919. Needs merging with CC 2014-04-28 10:37:17 -04:00
f31c84a742 close stdin as first attempt to terminate process cleanly. 2014-04-20 23:02:32 +02:00
5a3a8fc8f2 fix issue with duplicate entry in "Recent" menu after re-naming a session 2014-04-20 18:55:14 +02:00
3552c17b91 fix SystemExec for windows 2014-04-20 02:51:27 +02:00
ce72458d09 no vfork wrapper on windows 2014-04-19 00:54:43 +02:00
06b700abf2 fix VST GUI swallowing for windows 2014-04-18 01:54:59 +02:00
3131ab8bbd new transport option, "loop-is-mode" which optionally changes the role of the "play loop" button.
If enabled, then the button simply changes the behaviour of the "play" button rather than actually starting playback. If disabled
transport behaviour should be unchanged from before.
2014-04-17 09:47:06 -04:00
cd8aa4e304 add new config parameter controlling visibility of name highlights in regions.
This also affects region name placement.
2014-04-16 06:31:24 -04:00
dbaf203bac fix ridiculous spelling error 2014-04-15 12:44:49 -04:00
396fae31a9 Make sure that the input string doesn't go out of scope when using boost::tokenizer 2014-04-14 20:26:48 +01:00
16a8762dd4 fix minor problem with recent cherry-picking from cairocanvas 2014-04-14 14:14:30 -04:00
be0da8ff5c merge 5764970709 from cairocanvas as final(?) change related to data loss 2014-04-14 13:07:07 -04:00
2e3a84b15a check whether a source with the same path exists in session list not just on disk.
This is intended to catch a potential wierd condition where a source exists as a stub, but has not yet been written to disk,
and then a new source is created with the same path. Currently it is not understood how/when this might happen
2014-04-14 13:05:35 -04:00
b49bb451d2 further code simplification and rationalization related to MIDI source/file renaming 2014-04-14 13:05:21 -04:00
0d5f4c553a dramatic change in logic and naming for operations related to adding a MIDI region on demand and cloning/unlinking
Existing code would cause data loss due to creation of two Source objects referring the same path, one with removable flags and one without. Careful code review suggested a variety of thinkos, function naming problems and other confusion that caused this. I have tried ot extensively comment what is going on with these operations, because it is one key area in which MIDI differs from audio: with audio, capture is the only way to add a new audio region, but for MIDI there are GUI input events that can add a new region.
2014-04-14 13:05:08 -04:00
384c0a9fac redesign technique for naming/creating regions for MIDI clone (or other non-capture driven MIDI region creation operations).
See comments in Session::new_midi_source_name() for details.
2014-04-14 13:04:14 -04:00
2b3cb052ca after cloning a MIDI region, mark the source file as non-removable. Fixes reports about missing MIDI files on the forums and IRC 2014-04-14 13:01:23 -04:00
e1bf151ab0 after cloning a MIDI region, mark the source file as non-removable. Fixes reports about missing MIDI files on the forums and IRC 2014-04-14 13:00:24 -04:00
99bf5d9eed backport 1d85ab27a7 and ba128eea from cairocanvas branch to remove GIO (possible hotfix release) 2014-04-14 12:53:30 -04:00
09d5d7f26b remove code intended for use with basename(), fix memory leak since g_path_get_basename() returns a newly allocated string. 2014-04-14 15:21:29 +02:00
15c5d12321 clean up 6cc2812f2e (interim vst fixes) 2014-04-14 15:10:28 +02:00
56b9398208 despite what MSVC thinks, C is not C++. 2014-04-14 15:04:50 +02:00
5764970709 more work on linking file existence and removability 2014-04-14 03:03:35 -04:00
062dd5b71d check whether a source with the same path exists in session list not just on disk.
This is intended to catch a potential wierd condition where a source exists as a stub, but has not yet been written to disk,
and then a new source is created with the same path. Currently it is not understood how/when this might happen
2014-04-14 02:17:31 -04:00
b81d57f049 further code simplification and rationalization related to MIDI source/file renaming 2014-04-14 02:17:30 -04:00
343b06d8d3 dramatic change in logic and naming for operations related to adding a MIDI region on demand and cloning/unlinking
Existing code would cause data loss due to creation of two Source objects referring the same path, one with removable flags and one without. Careful code review suggested a variety of thinkos, function naming problems and other confusion that caused this. I have tried ot extensively comment what is going on with these operations, because it is one key area in which MIDI differs from audio: with audio, capture is the only way to add a new audio region, but for MIDI there are GUI input events that can add a new region.
2014-04-14 02:17:30 -04:00
d2a31ab6ee remove unnecessary include 2014-04-12 14:07:51 +02:00
unknown
d2ab2e8b31 another stab at a working vst on windows 2014-04-11 14:41:58 -05:00
unknown
9fe353c4a2 more vst tweaks 2014-04-11 14:23:35 -05:00
unknown
6cc2812f2e interim vst fixes 2014-04-11 14:23:29 -05:00
f678700376 amend previous commit, remove cruft, no more extern function pointers 2014-04-11 19:36:17 +02:00
e359521fad export fst functions (for MSVC) 2014-04-11 17:30:37 +02:00
5d9c2104d2 Oops - correct some typos in my previous commit
(accidentally used G_DIR_SEPARATOR instead of G_SEARCHPATH_SEPARATOR)
2014-04-11 15:36:04 +01:00
d95de39339 Make sure we use the correct style of filepath separator on Windows
('libs/ardour/file_source.cc' still to be investigated)
2014-04-11 13:03:48 +01:00
c046b7c9d3 Remove 'pipex' from my pbd.vcproj as it's not needed for Ardour3 2014-04-11 12:59:03 +01:00
8a4fdbf023 final eradication of jack header files from anything except the JACK backend 2014-04-11 02:52:28 -04:00
fa66d0ae38 remove use of JACK headers to allow building on systems without JACK 2014-04-10 08:58:25 -04:00
c52f7957a9 redesign technique for naming/creating regions for MIDI clone (or other non-capture driven MIDI region creation operations).
See comments in Session::new_midi_source_name() for details.
2014-04-10 08:58:04 -04:00
0802cbf30c remove inclusion of jack.h so that we can build on a platform without JACK 2014-04-10 08:52:21 -04:00
cc99b56c57 name-change of RuntimeProfile element 2014-04-10 05:58:48 -04:00
01af11c25c add new element to ARDOUR::RuntimeProfile 2014-04-10 05:58:48 -04:00
077a194430 Add the main VC project files for building Ardour3 with Microsoft Visual Studio
Note that there's no 'VS Solution' file at present and some targets haven't been built yet (e.g. 'fst')
2014-04-08 09:49:35 +01:00
Sakari Bergen
2482361d88 Fix buffer size mismatch in evoral tests 2014-04-07 21:27:56 +03:00
Sakari Bergen
254923532b Make tests build again (fix linker issues) 2014-04-07 20:50:29 +03:00
fc691cb3ba after cloning a MIDI region, mark the source file as non-removable. Fixes reports about missing MIDI files on the forums and IRC 2014-04-04 15:26:44 -04:00
3e7fad52f5 fix conceptual error/thinko in EnvironmentalProtectionAgency when using unsetenv() while iterating over char** environ 2014-04-04 15:25:56 -04:00
f7396fd462 clarify comments for SndFileSource constructors 2014-04-04 15:17:14 -04:00
0da58e9510 fix typo in comment 2014-04-04 15:16:35 -04:00
6f3ebba3b6 comment tweak 2014-03-24 19:46:07 -04:00
87184ab80d fix a race condition between the death of a thread that communicates with an UI event loop and the event loop itself.
The comment tries to explain it all. There may be a better solution, but I believe that this one is
(a) safe (b) better than the old approach.
2014-03-24 17:47:56 -04:00
47c849cf95 Modify some initialization slightly to keep MSVC happy 2014-03-24 18:48:26 +00:00
f274bf740e fix return in ::drop_device() 2014-03-24 13:53:42 -04:00
55ce05c486 call AudioBackend::drop_device() when dropping a backend.
It is not clear that ::drop_device() is part of the same semantic operation as ::stop(), so
we call them separatey
2014-03-24 13:42:11 -04:00
4122204eaf add ::drop_device() method to ARDOUR::AudioBackend 2014-03-24 13:42:11 -04:00
af0c42ec4f midi-controller, support log parameters - fixes #5890 2014-03-23 18:59:24 +01:00
54d2e44e1d proper vpab speaker constraints 2014-03-23 03:42:55 +01:00
4ddd025139 just bail out (to prevent further harm) if no panners are found. 2014-03-23 03:10:00 +01:00
e6b56f3447 fix undefined value, support netjack2 2014-03-23 02:26:37 +01:00
76b2006612 fix yet another possible memory leak 2014-03-23 02:19:05 +01:00
dbcf22a832 catch OOM 2014-03-23 02:18:49 +01:00
23f285f126 assure midi patch ID is set before assigning it 2014-03-23 01:14:36 +01:00
38b32414ba remove dead code (PIChaser has been superseded with PLL,DLL) 2014-03-23 01:07:17 +01:00
9fb98b83bf fix timecode initialization 2014-03-23 01:02:36 +01:00
89e63b4bce fix some memory leaks 2014-03-23 00:46:12 +01:00
167991eceb fix mismatch typo in sizeof 2014-03-23 00:17:19 +01:00
679d48ee2b fix edge case (partial write of LV2 worker message size) 2014-03-23 00:04:46 +01:00
a87a71f05f remove unused header file 2014-03-22 18:25:09 +01:00
ba128eea50 replace use of Gio:: for plugin state 2014-03-22 17:42:26 +01:00
1d85ab27a7 replace use of Gio:: with primitives (fix for #5889 part 1) 2014-03-22 17:42:26 +01:00
ae7f56d89f fix thinko 2014-03-21 16:28:17 -04:00
34ebb682a4 Minor visibility changes to libevoral (template objects can be exported in libevoral because they're always instantiated in the actual DLL). 2014-03-21 18:57:36 +00:00
abab819bb3 Avoid some ambiguous calls to 'floor()' which were upsetting MSVC 2014-03-21 18:24:36 +00:00
903f1d7853 check if session dir is writable (needed for .bak files, undo, etc) 2014-03-21 16:10:29 +01:00
0daae2ec91 When finding the control surface DLLs (MSVC built), make sure we only find ones that match our build target 2014-03-21 14:54:21 +00:00
9d7efe7865 tweak meter-peak hold when using LED-striped meters 2014-03-21 14:15:38 +01:00
ab44e41dfd change the meters into CairoWidget, add expose_area to CairoWidget::render() 2014-03-20 23:50:40 +01:00
9df3157dfc big rework of scrolling, horizontal part considered almost 100% done.
Many more changes than I would typically like in a single commit, but this was all very intertwined.
Vertical scrolling using track-stepping still to follow.
2014-03-20 13:29:45 -04:00
97a537cd21 Use glibmm to simplify my earlier efforts with 'user_config_directory()' and 'user_cache_directory()'
(improves my previous commit from 10th Mar 2014)
2014-03-19 14:38:41 +00:00
6b92b1787e Modify 'ardour_config_search_path()' and 'ardour_data_search_path()'
1) So that the Windows version will use appropriate environment variables (if they exist)
     2) So that we don't exit if the env vars can't be found (we can still return some kind of path so just alert the user)
2014-03-19 13:42:58 +00:00
2952ac05e6 fixed a few warnings from clang static analysis 2014-03-18 22:51:44 +01:00
0e41d00811 fix potential uninitialized object pointer. 2014-03-18 20:51:59 +01:00
796f6e1302 Re-validate our iterator after SessionEventManager removes an event 2014-03-18 19:23:28 +00:00
80e1b42ed5 When finding (MSVC built) panner DLLs, make sure we only find ones that match our build target
Will most likely also need to get done for similarly "discovered" DLLs (backends / surfaces etc). TBC
2014-03-18 17:32:39 +00:00
3e4278a0fb g_close() is only available in select versions of glib; fix up non-standard use of glib/cerr to report errors and other related mess 2014-03-17 10:16:45 -04:00
9352eac64b Make sure that windows_search_path() is 'visible' in Windows (will be needed for fixup_bundle_environment) 2014-03-17 11:29:17 +00:00
96244e2afa Close a temporary file as soon as we know we've created it (the function which needs the file will re-open it itself) 2014-03-15 14:42:20 +00:00
f0e40565a5 small cleanup. 2014-03-14 20:25:04 +01:00
2721242f77 comment libardour functions that are not used in external scanner. 2014-03-14 20:18:24 +01:00
f05fe6a3fb removed duplicated (and dangerous) call to close(2) 2014-03-14 15:16:15 -04:00
83a5eadcf8 fix compile of libs/vfork with slightly older(?) glibc headers 2014-03-14 14:52:23 -04:00
82bce6cc76 call BaseUI::quit() from inside the MIDI Control UI destructor, to properly shutdown its thread 2014-03-14 13:46:30 -04:00
543099afba rework SystemExec - use vfork wrapper (and lots of related stuff) 2014-03-13 16:58:07 +01:00
f15932a5c2 fix #ifdef in localtime_r header (from Valeriy) 2014-03-12 09:39:16 -04:00
d52eb5bf23 A few days ago a #define got changed because the relevant section of code was no longer needed when building with mingw. However, it's not needed for msvc either (in fact, msvc won't compile it) so hopefully, the code fragment can be safely removed 2014-03-12 13:22:25 +00:00
9f98837255 more error messages if session renaming fails, and remove stupid use of RENAME macro and use ::g_rename() instead 2014-03-12 08:49:18 -04:00
f6129ed0f4 prototype vfork exec-wrapper. 2014-03-11 15:48:41 +01:00
c2946ee00f don't queue redraws when various canvas item properties are "reset" to the same value, plus supporting functions 2014-03-11 07:36:09 -04:00
495c0de4ac fix up waf build in wake of search path changes earlier today 2014-03-10 17:30:12 -04:00
1a3634f3b9 use buf_index_in() to identify VST MIDI buffer
Probably unnecessary as long we only have 1 MIDI port route, but this at least keeps symmetry with the output side
2014-03-10 17:30:12 -04:00
1e4559805f use PBD::downcase() rather than non-portable MS-based strlwr() 2014-03-10 17:30:12 -04:00
e25fbeb22d required header for new search_paths.h 2014-03-10 17:30:12 -04:00
b6a9bf5d04 add PBD::downcase() functions to libpbd 2014-03-10 17:30:12 -04:00
5ccf1e7346 Just noticed a small problem with my previous commit. Windows config files should be in 'Application Data/PROGRAM_NAME' rather than directly in 'Application Data' 2014-03-10 18:51:30 +00:00
a4752e057d Modify 'user_config_directory()' and 'user_cache_directory()' so that (on Windows) they'll always return a directory that's guaranteed to be writable (in Windows, this isn't always true for the user's home folder) 2014-03-10 16:24:11 +00:00
e0678ce30f Modify 'user_config_dir_name' to use the program name (e.g. Ardour or Mixbus) instead of always assuming 'Ardour'. 2014-03-10 16:24:10 +00:00
34c67ba854 Move 'template_search_path()' and 'route_template_search_path()' into 'libs/ardour/search_paths.cc' 2014-03-10 16:24:10 +00:00
b32d9a1c70 Transfer 'vst_search_path()' into 'libs/ardour/search_paths.cc' 2014-03-10 16:24:09 +00:00
f372a66128 Transfer 'panner_search_path()' into 'libs/ardour/search_paths.cc' 2014-03-10 16:24:08 +00:00
aa7c2ab5c2 Transfer 'midi_patch_search_path()' into 'libs/ardour/search_paths.cc' 2014-03-10 16:24:08 +00:00
8a44aa9aba Transfer 'lv2_bundled_search_path()' into 'libs/ardour/search_paths.cc' 2014-03-10 16:24:07 +00:00
ff053653e1 Transfer 'ladspa_search_path()' into 'libs/ardour/search_paths.cc' 2014-03-10 16:24:06 +00:00
d1fd112bdf Transfer 'export_formats_search_path()' into 'libs/ardour/search_paths.cc' 2014-03-10 16:24:06 +00:00
75c55b0aa0 Transfer 'control_protocol_search_path()' into 'libs/ardour/search_paths.cc' 2014-03-10 16:24:05 +00:00
06fe0a5172 Create 'libs/ardour/search_paths.cc/.h' and transfer backend_search_path() to it 2014-03-10 16:24:05 +00:00
032f394b2a tiny red dots, be gone (expand poly_item bounding box by correct (?) amount) 2014-03-10 11:10:38 -04:00
ec0be1310f missing iterator advance 2014-03-10 11:10:38 -04:00
1374501727 tempo match midi auditioning - #5881 2014-03-10 00:48:48 +01:00
07d5a389fa add missing include to define LIBPBD_API (mingw build) 2014-03-09 21:05:17 +01:00
ba0ae4818a [VST] scan timeout display and per plugin timeout override. 2014-03-09 20:32:52 +01:00
da73b0f670 prepare configurable VST scan timeout 2014-03-09 20:32:52 +01:00
52c8b6d66a stupid hack to fix rectangle damage noise 2014-03-09 11:39:57 -04:00
fc94f71d5a Modified nesting to ensure that 'vst_search_path()' shouldn't return NULL if the first test fails 2014-03-09 11:48:09 +00:00
611dc796de fix reading VST shell-plugin .fsi cache 2014-03-09 00:36:13 +01:00
551993b96c VST? yes, we can do. 2014-03-08 23:34:49 +01:00
2fc52ec5fd paths dialog: use selection as default when adding new dirs 2014-03-08 18:28:16 +01:00
732d58ba81 fix double-free() when scanning VST shell plugins 2014-03-08 18:27:30 +01:00
cf1363a4a9 VST scanner: fix Ardour type IDs 2014-03-08 17:24:42 +01:00
944c32346b Add a couple of visibility specifiers that were missing 2014-03-08 11:29:52 +00:00
c7bc009b30 Use LIBPBD_TEMPLATE_API and LIBPBD_TEMPLATE_MEMBER_API where appropriate 2014-03-08 11:28:54 +00:00
6d3bd4e53c use fill transparency detection to avoid rendering transparent (invisible) rectangle fill area 2014-03-07 12:29:26 -05:00
12ef19d90a if a Fill object is given a zero-alpha (transparent) color, note that 2014-03-07 12:28:52 -05:00
52cfbb45e1 alter ArdourCanvas::Rect::expand() to not clamp to all-positive values because we now definitely have items that have negative coordinates.
This could have drastic consequences but I think the all-positive was a hack to fix a problem that was solved separately by means currently unknown.
2014-03-07 11:26:27 -05:00
621887cfaa slightly optimize bounding box computation for ArdourCanvas::PolyItem by avoiding inner conditional 2014-03-07 11:24:51 -05:00
e5802bdbea move an assert to cover only cases where it is needed 2014-03-07 11:23:22 -05:00
2a6fc5af74 tweak Polygon::render() to work whether or not fill or outline are unset 2014-03-06 23:15:59 -05:00
e4e6010cd4 add on_name_changed() virtual method to CairoWidget
If a CairoWidget does not a GtkRC-defined style, then changing its name does not trigger on_style_changed(). Since we want to use CairoWidget::set_name()
to trigger changes in the rendering of a widget, this is ... bad. Adding on_name_changed() provides a workaround for that.
2014-03-06 09:44:33 -05:00
142439b9a8 no dot prefix for VST cache files on windows. 2014-03-05 19:44:01 +01:00
a08c0ea1da manually revert change to canvas expose handling in fee026c5ef
Breaking out the rectangles implies a z-axis ordering of drawing,because the rect drawn last will implicitly be "on top".
But redraw areas are not submitted with any z-axis information, and so drawing like this breaks canvas layering. It
would be more efficient to draw the rects separately, but we don't have any ordering information and so we cannot do it
correctly.
2014-03-05 13:12:18 -05:00
58a30da03d use a centripetal catmull-rom curve to smooth ArdourCanvas::Curve
See http://en.wikipedia.org/wiki/Centripetal_Catmull-Rom to understand the benefits of this.
2014-03-05 11:38:30 -05:00
f3300ec03c move vst detection code into ARDOUR namespace 2014-03-05 08:47:54 +01:00
dd1c397344 clean up and document VST scanner src, add error logging to file 2014-03-05 08:41:29 +01:00
e6849e9c7e "correct" curve drawing (no artifacts during redraw)
Interpolation errors still need addressing.
2014-03-04 21:58:17 -05:00
c29d392b0c tentative intermediate state for ArdourCanvas::Curve 2014-03-04 21:58:17 -05:00
dde4d3bbc3 only queue an item redraw from Item::show() or Item::Hide() if the call changes the visibility status of the item (i.e. make no-ops really be no-ops) 2014-03-04 21:58:17 -05:00
6863bb9d28 reduce number of points used to define x-fade curves 2014-03-04 21:58:16 -05:00
fee026c5ef break down GdkEventExpose into distinct rectangles for canvas expose rather than drawing the entire region as a single rect 2014-03-04 21:58:16 -05:00
1c839ed541 some more mingw x-compile fixes 2014-03-04 18:53:43 +01:00
912f07b919 mingw build fixes (tested with i686-w64-mingw32 on linux-x86_64) 2014-03-04 15:25:58 +01:00
3e250d5f06 even more small mingw/win fixes 2014-03-03 18:44:30 +01:00
5cfdb7d1ce yet another mingw/win fix 2014-03-03 18:39:30 +01:00
43421f0b46 minor fix for libpbd wscript on windows 2014-03-03 10:31:53 -05:00
5db9599e7e some windows build fixes 2014-03-03 10:31:53 -05:00
6442f316d4 detect VST midi-in/midi-out ports separately. 2014-03-03 13:35:09 +01:00
76fb7278dd paths-dialog gtkmm-2.20 compatibility (part two) 2014-03-02 22:51:04 +01:00
f303c9ebb2 paths-dialog gtkmm-2.20 compatibility 2014-03-02 22:38:29 +01:00
52b127a35b implement VST midi-output 2014-03-02 21:18:52 +01:00
e6c3cece64 remove recently added conflation of mingw64 and msvc with respect to symbol export 2014-03-02 14:59:08 -05:00
86ad316180 fix missing const for windows vst_search_path() 2014-03-02 12:46:33 -05:00
deb48ff22d add missing extra file 2014-03-02 11:33:35 -05:00
8040df1897 move export_search_path(), previously in gtk2_ardour/main.cc, into libs/pbd 2014-03-02 11:25:54 -05:00
b8419ae7cd use "new" VST search path code and adjust build system to reflect new source files 2014-03-02 10:53:25 -05:00
8ba449bc4e remove fallback_folders code, add simpler more focused get_vst_search_path() and breakout get_win_special_folder() into its own file 2014-03-02 10:52:52 -05:00
c10e11eca5 for windows build, add fallback_folders.cc to libpbd source list 2014-03-01 22:47:19 -05:00
fc88eaf392 add likely stub code for adding linkage to libole when building libpbd on windows.
I may have gotten the precise linkflags string incorrect, but this my best guess.
2014-03-01 22:44:56 -05:00
fd64bba1de add -DPROGRAM_NAME to libpbd compile flags 2014-03-01 22:43:46 -05:00
08c89809ee REALLY REALLY CORRECT template export macros for libpbd 2014-03-01 22:31:47 -05:00
dbd89ed49d REALLY CORRECT template export macros for libpbd 2014-03-01 18:59:44 -05:00
c1a540f34e use template export forms for MemementoCommand 2014-03-01 18:59:37 -05:00
9526fef902 CORRECT template export macros for libpbd 2014-03-01 18:58:41 -05:00
19ab0fddef remove mingw64 special case from evoral visibility header (might be appropriate everywhere, needs testing) 2014-03-01 18:58:12 -05:00
9f121fac81 add template export macros for libpbd 2014-03-01 18:57:36 -05:00
db92e79deb fix use of export macros to work with mingw(64). Template issues with msvc will require a different solution (if they exist) 2014-03-01 18:53:55 -05:00
a72482af09 fix use of export macros to work with mingw(64) 2014-03-01 18:53:26 -05:00
3e2ac89d22 fix correct export macro guard in libpbd for mingw64 2014-03-01 18:33:31 -05:00
03fd396286 fix a related-to-last-commit problem in build script for OSC support
This would have had the effect of hiding -DPACKAGE="ardour_osc" but since there is no i18n stuff in our OSC support,
it really had no effect.
2014-03-01 16:58:22 -05:00
560c667ea9 fix compilation of libcanvas so that when built as a shared lib (the default), -DLIBCANVAS_DLL_EXPORTS=1 is not lost 2014-03-01 16:52:08 -05:00
c626e83a64 ardour now requires export visibility macros for all added classes 2014-03-01 16:17:33 -05:00
19395ac258 when mingw is mingw64, it appears that we need to use __declspec() and not __attribute__((visibility)) for export control 2014-03-01 15:16:39 -05:00
597db6421a re-work VST paths configuration.
environment vars provide the "default", but are no longer
relevant once ardour-internal paths are configured.
2014-03-01 01:01:42 +01:00
ea57962765 change code that is never used into assert()s.
plugin-scan should always happen explicitly (either on start
or by user request).
2014-03-01 01:01:42 +01:00
e60933650e remove debug messages, for now 2014-02-28 17:17:00 -05:00
435c3ad47f change implementation of ArdourCanvas::Curve to use GIMP-inspired ideas.
Presmooth with quadratic bezier, then interpolate when rendering. Not finished yet
2014-02-28 17:00:25 -05:00
147145f3a8 fix typo in doc 2014-02-28 17:48:21 +01:00
92601f56f9 change default value for plugin scan progress window
goes with b8e4c44637
2014-02-28 17:48:21 +01:00
a5d7bf0f24 path-dialogue: check for and disallow duplicates 2014-02-28 17:48:21 +01:00
bf47f57ee7 break out ARDOUR::PluginType 2014-02-28 17:48:21 +01:00
713a375011 (backport from cairocanvas branch) do not crash when considering a directory called midi (with any case) as an apparent MIDI file 2014-02-27 20:37:17 -05:00
dc4bb5b758 do not crash when considering a directory called midi (with any case) as an apparent MIDI file 2014-02-27 20:35:52 -05:00
3cf5dcb64c move Paths Dialog to libgtkmm2ext 2014-02-28 00:05:47 +01:00
f8ec1d1f27 glib only allows <glib.h> these days; typedef enum in C++ code is redundant 2014-02-27 09:23:07 -05:00
007e6bb15b remove unneeded extra methods in ArdourCanvas::Curve 2014-02-27 09:22:36 -05:00
230afc09ff increase number of steps in xfade curves (where applicable) from about 9 to 32 2014-02-26 18:52:14 -05:00
918f34b009 treat linux and windows VST plugins equivalent on session load 2014-02-27 00:44:48 +01:00
00b9774671 "cancel" only cancels [new VST] discovery, not index-cache-reading 2014-02-26 20:53:42 +01:00
832e02a711 properly handle VST scan/discover cancellation. 2014-02-26 20:50:36 +01:00
3b8ba073fc add note to filesystem paths
used e.g. for personal (non system wide) VST cache.
2014-02-26 20:43:43 +01:00
d5a780f462 user-configurable VST search paths (backend) 2014-02-26 18:07:45 +01:00
ce32d5f17b make PBD's path-scanner OS agnostic (use glib) 2014-02-26 18:07:45 +01:00
35272b8c47 fix typos 2014-02-26 18:07:45 +01:00
0cbf8f7dea fix canvas enter/leave bug when point is over a group/ignore-event item and we fail to send a leave event to the previous item 2014-02-25 16:08:36 -05:00
f9a3e7f8bb add DEBUG::CanvasEnterLeave to allow runtime toggling of canvas enter/leave events 2014-02-25 16:07:51 -05:00
64c2328a8a option to en/dis-able VST plugin discovery on startup 2014-02-25 19:17:04 +01:00
737aae908a tweak canvas rect drawing to correctly place bottom edge of rectangle inside the bounds (cairo works in mysterious ways) 2014-02-25 12:02:50 -05:00
d8329d855d implement plugin-scan cancel-button sensitivity 2014-02-25 14:57:59 +01:00
0708721b4f scan VSTs in background, allow to cancel & timeout 2014-02-25 14:57:59 +01:00
30de04a58c global static path to plugin scanner app. 2014-02-25 14:57:58 +01:00
e1c82dfd85 prepare plugin list refresh w/o instantiate (using cache only) 2014-02-25 14:57:58 +01:00
e63f3daa7e VST scanner tool.. part two 2014-02-25 14:57:58 +01:00
cfa94aeccc fix system-exec (wait for app to start) 2014-02-25 14:57:57 +01:00
e2adf46e0f update external VST scanner app 2014-02-25 14:57:57 +01:00
993ed56701 prepare standalone VST scanner tool.. part one 2014-02-25 14:57:57 +01:00
1c402f943f remove unnecessary files from native audio backend 2014-02-24 21:19:17 -05:00
7865acf563 fix some code typos (compiler warnings) 2014-02-25 00:52:37 +01:00
6c70caec5f implement VST blacklisting 2014-02-24 23:57:28 +01:00
adcb0faf6b preparations for VST blacklist (paths) 2014-02-24 23:57:28 +01:00
974626bf66 remove incorrectly placed export declaration 2014-02-24 15:25:46 -05:00
a17f797c52 add waves audio backend when building on apple 2014-02-24 15:17:18 -05:00
6666599e7b add -fms-extensions to allow earlier apple gcc to support anonymous union, as used by PortMidi 2014-02-24 15:16:46 -05:00
dd55b7894e remove SampleFormat code from waves audio backend 2014-02-24 14:49:14 -05:00
1de00ab6bb new audio engine backend for native CoreAudio audio I/O, and PortMIDI for MIDI.
Code builds, runs and functions. Full code review still pending, and some possibly changes to organization of code within the backend is possible
2014-02-24 14:49:13 -05:00
57ffd6c404 changes to wscript to build new audio engine backend 2014-02-24 14:49:13 -05:00
9dbdac2a19 remove unused and unimplementable audio engine sample format code 2014-02-24 14:46:19 -05:00
55f6c5ab76 remove unused and unimplementable audio engine sample format code 2014-02-24 14:46:08 -05:00
e58b337c84 add (finally) DEBUG::AudioEngine bit and convert existing debug trace messages to use it 2014-02-24 13:51:31 -05:00
57077093b7 Merge branch 'master' into export-dialog 2014-02-24 18:11:48 +00:00
59cc85b821 plugin scan progress-display & preferences 2014-02-24 03:53:53 +01:00
22905d8a93 prepare GUI notifications for plugin scan 2014-02-24 02:04:37 +01:00
8cca67e9c9 fix VST shell-scanner (double free), support for VST2.4 2014-02-24 02:02:29 +01:00
2e0c98c489 remaining bits for VST-shell plugin support ..and more VST rework 2014-02-23 21:11:53 +01:00
fac93f7a82 preparations for VST Shell plugins (mostly mixbus code forward port) 2014-02-23 17:52:49 +01:00
bcf6c76462 consolidate lxVST & winVST file-info code into libardour
first step and clennup before adding support for
VST shell-plugins (collections) and external scanner app...
2014-02-23 05:51:58 +01:00
8843679e1f fix minimum VST GUI window size (gtk padding) 2014-02-22 03:11:49 +01:00
dfdf9a35f1 resolve gtk + VST threading issues
while (gtk_events_pending()) gtk_main_iteration(); never returns
as long as there's a idle call registered somewhere (and it's not
called from an idle callback itself)
2014-02-22 03:11:48 +01:00
b3154e8ed6 NOOP, whitespace change only 2014-02-22 03:11:48 +01:00
dfeb68aeb4 Windows VST GUI related rework 2014-02-22 03:11:48 +01:00
40aa7e5e90 first part of merging windows and wine VST
libfst is now very ardour specific (no longer compatible with /upstream/)
2014-02-22 03:11:48 +01:00
99076689f7 update vestige header (from mixbus) 2014-02-22 03:11:48 +01:00
348115c0f7 add support for VST>=2.4 2014-02-22 03:11:47 +01:00
e2f18ea658 allow per-line configurability of the threshold used to determine if a PolyLine covers a given coordination 2014-02-20 12:53:08 -05:00
14b2d0b549 fix error in canvas PolyLine::covers(), so that the mouse can actually enter/leave such items 2014-02-19 23:42:01 -05:00
130df9c2b1 use new ControlList::add() argument 2014-02-19 23:25:08 -05:00
afdedbf948 do not needlessly keep starting touch/automation watch passes just because a command to start or stop touch was received 2014-02-19 23:25:08 -05:00
f049d0294c add option to skip guard points when adding new control points to a ControlList; add more debugging statements 2014-02-19 23:25:08 -05:00
08eecbf3fe clear up some stupid thinking in Amp regarding the way the underlying AutomationControl/Controllable gets set when Amp::set_gain() is called 2014-02-19 23:25:08 -05:00
80d83fd238 add a hack to deal with device discovery race, in which the devices were not actually known to be ready before the last update_surfaces() call (which is where binding between strips and routes occurs) ; add support for Mackie Control touch on/off messages 2014-02-19 23:25:08 -05:00
d8b3e2932f use new ControlList::add() argument 2014-02-19 13:22:52 -05:00
3e1107c157 do not needlessly keep starting touch/automation watch passes just because a command to start or stop touch was received 2014-02-19 13:22:52 -05:00
a70f914c51 add option to skip guard points when adding new control points to a ControlList; add more debugging statements 2014-02-19 13:22:52 -05:00
d024b500a6 clear up some stupid thinking in Amp regarding the way the underlying AutomationControl/Controllable gets set when Amp::set_gain() is called 2014-02-19 13:22:52 -05:00
29b3c299a1 add a hack to deal with device discovery race, in which the devices were not actually known to be ready before the last update_surfaces() call (which is where binding between strips and routes occurs) ; add support for Mackie Control touch on/off messages 2014-02-19 13:22:52 -05:00
1d39cf7543 move SystemExec to libpbd 2014-02-19 03:38:43 +01:00
05d7947795 make stateful image canvas item actually compile 2014-02-17 16:05:52 -05:00
3eeaec5608 use boost::uuids method to get a string from a boost UUID 2014-02-17 15:29:18 -05:00
eb3c14db25 new canvas item to allow image-based GUI construction 2014-02-17 15:28:18 -05:00
f0ddf5281b debugging export format UUID creation 2014-02-14 17:41:45 -05:00
133251db91 possible fix for error during export format load-from-disk 2014-02-14 16:33:44 -05:00
172a4a853d fix up problems with patch change flgs not changing height correctly 2014-02-14 12:06:44 -05:00
1df483d3db since we now expand rectangles to the right always, adjust the bounding box computation 2014-02-14 09:49:16 -05:00
1a9076c0ba remove debug message 2014-02-13 18:18:53 -05:00
08b86fda5c fix up some issues with precise placement of ArdourCanvas::Rectangle frame/outline 2014-02-13 18:18:19 -05:00
79d2a686ff make Item::set_position() do nothing if the position doesn't change 2014-02-13 18:18:19 -05:00
f889f391a1 Guard some Debug output so that it only appears when applicable ('Item::name' is only available when CANVAS_DEBUG is defined) 2014-02-13 14:12:36 +00:00
f5499d206a slight code tidy for Line::render() ... don't use 0.5 pixel adjustment if the line width > 1.0 2014-02-12 15:26:53 -05:00
e247103a7e fix up major thinko's in ArdourCanvas::Group's handling of deletion (both its own, and child items) 2014-02-12 15:15:27 -05:00
50edf9b626 correct delete/free mess 2014-02-12 15:14:40 -05:00
6876906d9d fix major thinko in ArdourCanvas::Group::clear() 2014-02-11 22:49:39 -05:00
a329a44cc1 when delivering canvas events, if an item is grabbed, use it in preference to Canvas::_current_item, but still propagate to its ancestors if left unhandled 2014-02-11 22:49:10 -05:00
cc2aca44fb fix text placement in ArdourCanvas::Flag 2014-02-11 12:40:44 -05:00
f8ed1bbcf4 i18n updates (specifically .de from edgar a, but also contains results of ./waf i18n 2014-02-10 12:19:43 -05:00
d2f8f3808b string fix up, II 2014-02-10 11:51:22 -05:00
456fb789d3 string fix up 2014-02-10 11:47:04 -05:00
f4b5f4c72e Merge branch 'master' into cairocanvas 2014-02-08 11:18:17 -05:00
3566fa2d8e add kxstudio linux vst dirs to LXVST default search path 2014-02-08 11:17:50 -05:00
b9054a1f72 fix missing colon in extension of LXVST search path 2014-02-08 11:16:17 -05:00
2a7ed69c28 merge with master, with minor conflict fixes 2014-02-07 19:00:44 -05:00
89d5be353a equivalent change to realpath() error return as was done in master rev 60a9213035 2014-02-07 18:49:51 -05:00
d47fe167e3 when cleaning up sources, do not remove "stub" sources from the source list, even though they do not exist on disk yet; remove some debug output 2014-02-07 17:38:42 -05:00
f715cd877c add FileSource::is_stub() declaration 2014-02-07 17:30:34 -05:00
2c67913245 Fix egregious logic bug in FileSource::removable() and introduce FileSource::is_stub() to hide logic for deciding if a source (file) is a stub 2014-02-07 17:17:30 -05:00
60a9213035 fix utter confusion about session _path in new sessions.
Yikes!
2014-02-07 13:56:44 -05:00
7bc3e0dab4 don't add a [shared] panner for the sends to monitoing section
fixes issue with 'stuck' mono panners (when using a stereo
monitoring section and auto-connect): the send to monitor
section is added after the main panner. At this point the
channel-count is different, but the send shared panner() with
the main route.

Here: mono-panner on track, stereo-panner; and they shared control
settings. since stereo-panner's width is 1, the position cannot be
changed.
2014-02-07 19:30:43 +01:00
7c69b0ab82 add debug-message to track down missing Sources 2014-02-05 18:49:32 +01:00
2b9421fd39 merge (w/fix) with master 2014-02-04 14:21:35 -05:00
371e8bdb55 VBAP nomenclature s/Direction/Azimuth/ 2014-02-03 19:12:29 +01:00
591ff9ceb6 update audio-buffer assert, take offset into account 2014-02-03 16:59:59 +01:00
74385d7267 remove cruft - unused _size in audio-buffers 2014-02-03 16:59:51 +01:00
592be26a24 fix stem-export buffer-size check 2014-02-03 16:51:08 +01:00
9c0b62e2f3 fix processor_lock
Only WriterLock requires to hold process_lock() as well
otherwise Route::process_output_buffers() may deadlock
2014-02-03 15:09:17 +01:00
12576a9f29 forward port lv2_evbuf update (from jalv) 2014-02-01 23:07:23 +01:00
59076a7e4c Merge branch 'master' into cairocanvas 2014-01-30 11:19:22 -05:00
ce2feeac56 even though man alloca says to include <alloca.h>, it apparently isn't necessary and no such header exists in the msvc world 2014-01-30 11:18:58 -05:00
2ba58dfe65 Merge branch 'master' into cairocanvas 2014-01-29 16:08:52 -05:00
66d0241118 move check for n_speakers so that we avoid needless work 2014-01-29 15:50:17 -05:00
2d8352123a fix vbap-speaker calculations to work with alloca() 2014-01-29 21:45:13 +01:00
a754a7cc0d fix up the abomination caused by moving from variable length (multidimensional) arrays to alloca'ed arrays, specifically access to arr[a][b].
This needs checking by an actual VBAP+multispeaker user.
2014-01-27 20:37:17 -05:00
f8737f7012 add new folders to linux vst search path to help out AVLinux and some other specialized distros 2014-01-27 14:55:58 -05:00
10d577146a replace standards-wobbling variable-length-arrays with alloca() 2014-01-27 14:20:19 -05:00
bb05ae05a8 remove unused _wave_color member from waveview canvas item; use outline color for edge dots of waveforms instead of hardcoding black 2014-01-26 16:02:38 -05:00
241c1aaaed fix #5840 ; redefinition of typedef 'VstTimeInfo' 2014-01-26 19:11:54 +01:00
9a190b8d2b fix crash when removing synth from midi-track
(and there are bypassed audio-plugins after said synth)
2014-01-26 00:46:39 +01:00
79b7fb82f3 try to get export/visibility and build conditionals right for surfaces/, once more 2014-01-25 13:57:28 -05:00
a643c9fdc0 Merge remote-tracking branch 'origin/master' into export-dialog 2014-01-25 02:30:55 +00:00
7000afdc66 fix merge conflict with master 2014-01-23 13:41:20 -05:00
065e1e6334 alter surfaces build wscript to use "children" idea (like top level wscript)
Still not clear why this file requires the global keyword to make children global, but the toplevel wscript does not.
2014-01-23 13:39:43 -05:00
d16edb530e fix up obj.defines for generic MIDI wscript 2014-01-23 13:38:45 -05:00
9d01082243 mackie code does not use poll(2) and so does not need poll.h 2014-01-23 13:38:23 -05:00
8eed05be54 use correct export/visibility macros 2014-01-23 13:37:28 -05:00
40d8c5ae01 change VBAP visual parameter name again :) 2014-01-23 15:32:26 +01:00
b0b71782e9 VBAP change visual parameter name. Diffusion -> Spread 2014-01-23 14:57:19 +01:00
0da004202e LV2 plugin save/delete -- fixes 5835 2014-01-23 13:14:25 +01:00
d005e8866b midi-audition: make "no synth" selection work. 2014-01-23 00:22:02 +01:00
8ad30bb76e configurable midi audition synth 2014-01-22 23:59:24 +01:00
f0b95950ee Update Russian translation
Resync some terminology with proposed changes in the translation
of Mixbus (session, snapping, monitoring).
2014-01-22 21:06:54 +01:00
fb8af16778 attenuate master volume 2014-01-22 18:10:44 +01:00
9dd3ceddc4 fix crash -- midi tracker reset when seeking audio 2014-01-22 17:38:59 +01:00
1202cb57dd prepare midi-audition synth plugin config, incl no plugin external synth 2014-01-22 15:30:43 +01:00
114997b7e6 tweak reasonable synth:
* prevent denormals / cut low volume
* reduce default amplitude of fundamental
2014-01-22 15:30:38 +01:00
224b44c6e2 reset midi synth (panic) when seeking or re-starting audition 2014-01-22 15:30:32 +01:00
8aa6585702 remove cruft 2014-01-22 15:30:23 +01:00
a5de06a050 backend for auditioning midi-files:
* "downgrade" auditioner from AudioTrack to Track.
* add relevant methods from both AudioTrack and MidiTrack.
2014-01-22 15:30:18 +01:00
1e3ad60eb6 take all tracks inside a midi-file into account when loading model
* fixes [region] length calculation,
* prepare for auditioning midi files (one track plays it all)
2014-01-22 15:30:14 +01:00
9e799c6146 open external [read-only] midi-files on construction 2014-01-22 15:30:09 +01:00
eb853b79c4 fix midi source factory -- load_model() uses shared_from_this() 2014-01-22 15:30:04 +01:00
3bc0d3e57b fix evoral assignment operator (copy buffer) 2014-01-22 15:11:31 +01:00
06cc5e5240 fix bitslot already in use warning
in e45151b89c route.cc was changed to create internal sends
directly with role = Delivery::Aux; and not Delivery::Role (0).
This change was motivated to initialize the panner for Aux-sends
in the Delivery.

Role(0) was used to override bitslot numbering during initial
construction of the object when the state is loaded from XML after
construction.

This patch adds an explicit flag for that.
(The previous Role(0) approach only worked for Aux-Sends
but not Sends, anyway.)
2014-01-22 13:06:58 +01:00
25a6296f86 Merge branch 'windows+cc' into cairocanvas 2014-01-20 18:18:21 +00:00
bd16d6afea I thought I'd committed these changes to 'windows+cc' but I must have forgot.... 2014-01-20 17:51:53 +00:00
b5e9e7c04c 'libs/gtkmm2ext' - DLL visibility stuff and associated changes needed for building with MSVC. Currently includes debugging information and things that are just commented out until we have known compatibility with the other platforms (i.e. contains stuff to be removed at a later date) 2014-01-20 17:01:58 +00:00
5451b5fb13 remove unused static member from MouseButton 2014-01-20 11:33:28 -05:00
3c5a870289 a better, more general fix for the previous Canvas::item_going_away() issue. There is no need to repick the current item if the item going away is NOT the current item 2014-01-20 10:59:44 -05:00
2691209050 When removing an item which is event-insensitive, there is no need to repick the current item, since it can never have been used as the current item.
This fixes crashes associated with ghost notes in midi regions.
2014-01-20 10:53:58 -05:00
e97b7bb924 add required virtual method for SrcFileSource 2014-01-20 09:25:13 -05:00
6acdfc69b7 visibility macros and flush() added to SrcFileSource; merge with master 2014-01-19 17:54:47 -05:00
ca8fa56b61 lock source list when destroying it. 2014-01-19 22:49:58 +01:00
b3dd518b22 remove cruft 2014-01-19 22:49:48 +01:00
7f8faff384 fix typo in VST flags 2014-01-18 13:51:05 +01:00
c6b94acd7f mark session dirty when panner-bypass is toggled 2014-01-18 13:51:05 +01:00
73c6122591 towards a SRC source + resampling during audition 2014-01-18 13:51:05 +01:00
96cbcf0ee4 Fix crash when instrument plugins fail to instantiate. 2014-01-17 19:34:51 -05:00
31b68d1db8 use "portable" approach to forcing visible symbols in third party libs (qm-dsp, vamp-plugins, appleutility, clearlooks) 2014-01-17 13:19:42 -05:00
7418c12a5b override -fvisibility=hidden for the LV2plugin descriptor 2014-01-17 16:10:03 +01:00
0506f85e9d remove cruft 2014-01-17 16:00:17 +01:00
3ebd42b873 override visibility default for Apple's "appleutility" library, which was written without symbol export control 2014-01-17 09:52:13 -05:00
c0e6f8e4c3 Merge branch 'master' into cairocanvas 2014-01-17 09:13:44 -05:00
0479405e2f fix typo in auditioner-seek 2014-01-17 00:25:32 +01:00
b4462b3d22 add seeking to sfdb auditioner 2014-01-17 00:20:58 +01:00
2e27e21d3a Merge branch 'master' into cairocanvas 2014-01-16 17:26:50 -05:00
10933e2003 allow auditioning via the monitor section to work.
Ideally, we would feed the monitor section via an internal (aux) send/return, but this is an improvement over what we had before
2014-01-16 17:22:19 -05:00
620e1e6677 add event type string function to canvas (since it does not use gtkmm2ext) 2014-01-16 10:52:34 -05:00
016a9cc533 add Gtkmm2ext::event_type_string() 2014-01-16 10:14:42 -05:00
e279b9892b Merge branch 'master' into cairocanvas 2014-01-15 22:28:34 -05:00
0b9199163d continue with tweaks to VST timeinfo, such that the again demo plugin appears to work exactly as expected 2014-01-15 22:28:01 -05:00
1745340c67 Merge branch 'master' into cairocanvas 2014-01-15 20:40:11 -05:00
1c01ac5bc8 minor tweak to layout of vestige aeffectx.h 2014-01-15 20:37:26 -05:00
c3984f35ac more work on debugging VST timeinfo issues 2014-01-15 16:48:22 -05:00
3eadbaaf58 debug VST timeinfo callback, pt3 2014-01-15 16:31:10 -05:00
4365ea06e3 debug VST timeinfo callback, pt2 2014-01-15 16:26:21 -05:00
0265f3f1e2 debug VST timeinfo callback 2014-01-15 16:24:03 -05:00
40e7379569 don't require VST plugins to actually ask for time info fields 2014-01-15 16:19:04 -05:00
a882e96db1 Merge branch 'master' into cairocanvas 2014-01-15 16:10:09 -05:00
af3481fb78 add lots more BBT-based time info for VST plugins (see 5737) 2014-01-15 16:08:27 -05:00
a454bedc1d update VstTimeInfo structure, from Qtractor's version of vestige, which has all fields thanks to some steinberg online docs 2014-01-15 16:07:47 -05:00
00f145dbdf Revert "update VstTimeInfo structure, from Qtractor's version of vestige, which has all fields thanks to some steinberg online docs"
This reverts commit febc6b957e.
2014-01-15 16:06:57 -05:00
febc6b957e update VstTimeInfo structure, from Qtractor's version of vestige, which has all fields thanks to some steinberg online docs 2014-01-15 16:06:35 -05:00
ca621b3fbf improve comment explaining the use of alloca() 2014-01-15 15:00:07 -05:00
e8202dded8 add back comment explaining the use of alloca() 2014-01-15 14:58:59 -05:00
9aacefc170 merge with master 2014-01-15 14:29:32 -05:00
f9a5f87003 don't pan send/return inserts 2014-01-15 17:59:16 +01:00
b06fa27ccb rework LXVST port assignments - fixes #5827 2014-01-15 14:55:26 +01:00
c8f9405386 stereo-panner: clamp width during processing to valid range 2014-01-15 14:07:02 +01:00
abb75d4a2e prevent stackoverflow when pannable changes to fewer params
endless loop: e.g.  2in2out -> balance (or 1in1out)
#23 0xb7ab5c17 in ARDOUR::Pannable::value_as_string
#24 0xb2ebb206 in ARDOUR::Pannerbalance::value_as_string
#25 0xb7ab5c17 in ARDOUR::Pannable::value_as_string
#26 0xb2ebb206 in ARDOUR::Pannerbalance::value_as_string
ad infinitum
2014-01-15 10:38:32 +01:00
d27d6e673f re-allow panners for monitoring-section (for now) 2014-01-15 10:37:25 +01:00
a4dc05f603 fix invalid width when swiching to 2in2out 2014-01-15 09:45:02 +01:00
58def58bf5 VBAP GUI convention: top == front ^= azimuth == .5
This allows to move from stereo,mono panners to VBAP and back
and also facilitates sharing pannables of all currently
existing panners with semantically similar results.

(somewhat dirty solution, this retains PBD::spherical_to_cartesian
and maps angles pretty much everywhere else)
2014-01-15 09:37:20 +01:00
96586e81f4 the vampplugins lib that we build needs to use VAMPSDK 2014-01-14 21:46:41 -05:00
37b1f5017e merge with master 2014-01-14 21:13:21 -05:00
35c170937d NOOP, semantic update, don't pannable's panner for direct access. 2014-01-15 02:51:53 +01:00
813ead6d8b cont'd backend work on panner-linking 2014-01-15 02:51:52 +01:00
218cf268b9 remove debug code 2014-01-15 02:51:52 +01:00
d434287811 fix compilation problem on OS X caused by a missing implementation of a virtual method 2014-01-14 17:27:21 -05:00
adc2edc05c add back required extern 2014-01-14 15:11:32 -05:00
e332900055 revert incorrect include path changes and removal of export macros for two libardour symbols (revision and ardour_config_info) 2014-01-14 12:22:18 -05:00
b3526d855e 'libs/ardour' - Non-visibility stuff changed for MSVC (mostly alterations to #include paths) 2014-01-14 16:47:29 +00:00
b9390869ea 'libs/ardour' - Remove the old 'visibility.h' (so as not to merge it into cairocanvas) 2014-01-14 16:47:28 +00:00
10a4b2d3ed 'libs/ardour' - DLL visibility stuff and associated changes needed for building with MSVC. Currently includes debugging information and things that are just commented out until we have known compatibility with the other platforms (i.e. contains stuff to be removed at a later date) 2014-01-14 16:47:27 +00:00
cf806123ca merge (with conflict fixes) with master (even against rgareus' recommendation) 2014-01-14 10:56:17 -05:00
cfc9a1f22e fix broken build after addition of normalizer.cc 2014-01-14 09:33:02 -05:00
eb023b7496 'libs/ardour' - DLL visibility stuff and associated changes needed for building with MSVC. Currently includes debugging information and things that are just commented out until we have known compatibility with the other platforms (i.e. contains stuff to be removed at a later date) 2014-01-14 10:13:12 +00:00
e45151b89c first stab at send+route panner link 2014-01-13 23:21:30 +01:00
a1a3f6c826 Merge branch 'windows+cc' into cairocanvas 2014-01-13 15:05:30 +00:00
5f0492deae 'libs/audiographer' - Add a new source file (to accommodate the stuff removed from 'normalizer.h') 2014-01-13 15:01:14 +00:00
5fc1cbb65c 'libs/audiographer' - DLL visibility stuff and associated changes needed for building with MSVC. Currently includes debugging information and things that are just commented out until we have known compatibility with the other platforms (i.e. contains stuff to be removed at a later date) 2014-01-13 14:58:04 +00:00
b9c389eac5 fix botched merge of vbap changes 2014-01-13 09:47:20 -05:00
e10bfb8054 VBAP backend re-work (part one):
* fix azimuth, don't clamp but map to [0,1]
* prepare elevation (10+ speakers)
2014-01-13 09:40:41 -05:00
fbe94f4470 pixel-align canvas PolyItems with single-pixel outlines, for crispness 2014-01-13 09:39:50 -05:00
2f3830eddb fix delivery: check if panshell exists on session-load 2014-01-13 09:39:50 -05:00
113f28b6fe independent panning for external sends 2014-01-13 09:39:50 -05:00
533e0091b7 fix output metering for Sends (Aux and External) 2014-01-13 09:39:50 -05:00
7e1e7e7629 add independent panner for internal (Aux) sends 2014-01-13 09:39:50 -05:00
0da58eeebf update internal-send port-count when target port-count changes 2014-01-13 09:39:50 -05:00
b4dea5309d ignore additional channels for AFL, PFL:
If the monitor-section has fewer-channels than the solo-listen point:
ignore additional channels.
2014-01-13 09:39:50 -05:00
1e4e6499e3 fix deadlock when removing monitoring-section 2014-01-13 09:39:50 -05:00
1b24aad933 fix processor -> reconfigure I/O || process concurrency
Add a ReaderLock to Route::process_output_buffers().

But process_output_buffers() is always called with processor-lock
held. To avoid deadlocks, a processor WriterLock must always imply
a process-lock (IFF reconfigure-I/O is called with _processor_lock).

Otherwise: e.g.
*  add_processor() -> takes processor-lock. set up and activate processor.
*  simult. audio-engine process, process-lock -> call process_output_buffers() -> wait for processor-lock
*  add_processor() continues -> calls reconfigure-io -> take process-lock -> deadlock.
2014-01-13 09:39:50 -05:00
ac8eb0581d take process lock when adding processors:
fixes possible crash if a processor modifies port-count

1. a processor is inserted and activated with processor-lock held
2. only after that the process_lock() is taken, configure_processors() is called which reconfigures-IO

BUT if the processor that is inserted changes the channel count AND audio is processed before IOs are reconfigured
 -> possible crash (invalid port-buffers)

To reproduce: Bus1 (2in, 3out), Bus2 (2in, 3out)
- add a send from Bus1 to Bus2,
- then add a processor to Bus1, just before the send which
  increases the channel-count to 4 -> occasional crash or assert.
2014-01-13 09:39:18 -05:00
a919ac8a86 aubio 3+4 compat 2014-01-13 09:38:24 -05:00
75e21d3ab4 cosmetic change - properly use lilv API 2014-01-13 09:38:24 -05:00
28470af5f7 swap channel VBAP channel 2014-01-13 09:38:24 -05:00
dd4c0e040f VBAP rework (part III): fix position computation backend & GUI 2014-01-13 09:37:35 -05:00
431babc272 update default speaker position list 2014-01-13 09:37:35 -05:00
60fe9606f4 VBAP GUI depends on signal-position (not parameter changes) 2014-01-13 09:37:35 -05:00
1bf9c4c990 VBAP backend re-work (part two): speaker positioning
* clean up source (whitespace)
* fix speaker 3x3 matrix iteration
* update math to go along with Ardour Cartesian -- fixes rounding errors
* fix division by zero in cross_prod()
* disable old debug output

(NB PBD::spherical_to_cartesian() returns
  3.7494e-33, 6.12323e-17, 1 for azimuth 90 elevation 90 distance 1
while it should return
  0.000000, 0.000000, 1 for azimuth 90 elevation 90 distance 1
IOW  cos(90.0 * 2.0 * M_PI / 360.0) != 0
Cause unknown. This is currently worked around check in vec_length()
)
2014-01-13 09:37:34 -05:00
112de00841 VBAP backend re-work (part one):
* fix azimuth, don't clamp but map to [0,1]
* prepare elevation (10+ speakers)
2014-01-13 09:35:57 -05:00
1fb9437e26 'libs/timecode' - Change some instances of 'rint' to be 'lrint' (better compatibility with MSVC) 2014-01-13 14:26:19 +00:00
291618fe71 allow to custom select panner-type for each delivery. 2014-01-13 15:13:37 +01:00
5da8c2b476 'libs/evoral' - and add 'Note.impl' to the project 2014-01-13 12:47:21 +00:00
1d69f31266 'libs/evoral' - #include 'Note.impl' when building with MSVC (this is necessary to ensure that Evoral::Note gets exported from the evoral DLL) 2014-01-13 12:16:02 +00:00
346310c60b fix delivery: check if panshell exists on session-load 2014-01-13 11:49:09 +01:00
bc88203ef5 independent panning for external sends 2014-01-13 10:50:49 +01:00
d9cf6880b6 fix output metering for Sends (Aux and External) 2014-01-13 10:50:22 +01:00
0559c1babb add independent panner for internal (Aux) sends 2014-01-13 10:48:37 +01:00
0c384b7c21 update internal-send port-count when target port-count changes 2014-01-13 10:48:23 +01:00
5e2a145cdd ignore additional channels for AFL, PFL:
If the monitor-section has fewer-channels than the solo-listen point:
ignore additional channels.
2014-01-13 10:47:17 +01:00
35ab234e5e fix deadlock when removing monitoring-section 2014-01-13 10:46:11 +01:00
9c753dbaec use LIBEVORAL_TEMPLATE_API with Evoral::Note 2014-01-12 20:23:45 -05:00
2fc2df8c5d fix 64 bit template types 2014-01-12 20:01:12 -05:00
cdfc094b9f add new file (required by MSVC) to sources list 2014-01-12 20:00:55 -05:00
491bc4e865 use LIBEVORAL_TEMPLATE_API
Also clean up unnecessary comments - git blame provides complete per-line history, no need to leave comments behind
2014-01-12 20:00:26 -05:00
a94dadc759 add LIBEVORAL_TEMPLATE_API to deal with gcc/msvc difference of opinion 2014-01-12 19:59:40 -05:00
a08e7c0016 fix processor -> reconfigure I/O || process concurrency
Add a ReaderLock to Route::process_output_buffers().

But process_output_buffers() is always called with processor-lock
held. To avoid deadlocks, a processor WriterLock must always imply
a process-lock (IFF reconfigure-I/O is called with _processor_lock).

Otherwise: e.g.
*  add_processor() -> takes processor-lock. set up and activate processor.
*  simult. audio-engine process, process-lock -> call process_output_buffers() -> wait for processor-lock
*  add_processor() continues -> calls reconfigure-io -> take process-lock -> deadlock.
2014-01-12 23:13:35 +01:00
7e3282486d take process lock when adding processors:
fixes possible crash if a processor modifies port-count

1. a processor is inserted and activated with processor-lock held
2. only after that the process_lock() is taken, configure_processors() is called which reconfigures-IO

BUT if the processor that is inserted changes the channel count AND audio is processed before IOs are reconfigured
 -> possible crash (invalid port-buffers)

To reproduce: Bus1 (2in, 3out), Bus2 (2in, 3out)
- add a send from Bus1 to Bus2,
- then add a processor to Bus1, just before the send which
  increases the channel-count to 4 -> occasional crash or assert.
2014-01-12 21:47:15 +01:00
83c0720645 remove VAMP and Rubberband from source tree 2014-01-12 15:40:48 -05:00
4b3feefa55 add -fvisibility=default back to cxx/cflags when building QM DSP and VAMP plugins libs, because ... ugh 2014-01-12 15:40:48 -05:00
26a9e28922 add export visibility macro 2014-01-12 15:40:48 -05:00
87009afff2 add new file 2014-01-12 15:40:48 -05:00
c3a00990b3 add missing export/visibility macro 2014-01-12 15:40:48 -05:00
0a2a6aaabb remove taglib from source tree (require external provision) 2014-01-12 15:40:48 -05:00
5062a00c7d move -fvisibility=hidden to the top of the source tree, and remove its internal use; use libtimecode as a shared lib again 2014-01-12 15:40:47 -05:00
2c21cbb044 add export/visibility macros to libtimecode and build as a shared library again 2014-01-12 15:40:47 -05:00
b7bc2dd2c6 build libsmf as a static library, since it is private to evoral and would otherwise require export visibility control
This also removes -fvisibility=hidden, a change that is taking place across the source tree and will show up in a later commit elsewhere
2014-01-12 15:40:47 -05:00
6fc1f27013 Merge branch 'windows+cc' into cairocanvas 2014-01-12 17:45:28 +00:00
61c692baa1 'libs/evoral' - Move a couple of 'IdentityConverter' functions into their own dedicated C++ source file. This allows them to be used correctly with __dllimport and __dllexport. Hopefully, this technique will also work for gcc / mingw 2014-01-12 17:40:25 +00:00
dd8ba245bb 'libs/evoral' - DLL visibility stuff and associated changes needed for building with MSVC. Currently includes debugging information and things that are just commented out until we have known compatibility with the other platforms (i.e. contains stuff to be removed at a later date) 2014-01-12 17:36:17 +00:00
1eaa30b725 aubio 3+4 compat 2014-01-12 18:11:14 +01:00
58f82b52e5 cosmetic change - properly use lilv API 2014-01-12 17:14:14 +01:00
f9b8300ec6 swap channel VBAP channel 2014-01-12 03:36:20 +01:00
60960280d1 redefine Pi :) 2014-01-11 23:38:28 +01:00
72cec05d46 VBAP rework (part III): fix position computation backend & GUI 2014-01-11 23:38:28 +01:00
7ac05ccfa5 update default speaker position list 2014-01-11 23:38:28 +01:00
0669bb455b VBAP GUI depends on signal-position (not parameter changes) 2014-01-11 23:38:28 +01:00
d3e1d54280 VBAP backend re-work (part two): speaker positioning
* clean up source (whitespace)
* fix speaker 3x3 matrix iteration
* update math to go along with Ardour Cartesian -- fixes rounding errors
* fix division by zero in cross_prod()
* disable old debug output

(NB PBD::spherical_to_cartesian() returns
  3.7494e-33, 6.12323e-17, 1 for azimuth 90 elevation 90 distance 1
while it should return
  0.000000, 0.000000, 1 for azimuth 90 elevation 90 distance 1
IOW  cos(90.0 * 2.0 * M_PI / 360.0) != 0
Cause unknown. This is currently worked around check in vec_length()
)
2014-01-11 23:38:27 +01:00
80127f9cca VBAP backend re-work (part one):
* fix azimuth, don't clamp but map to [0,1]
* prepare elevation (10+ speakers)
2014-01-11 23:38:27 +01:00
59631acc5f fix merge with master 2014-01-11 15:19:18 -05:00
72d8ca89e2 Support midnam controller value labels. 2014-01-10 20:51:54 -05:00
658bb3ccd4 finished merge of cairocanvas with windows and windows+cc branches 2014-01-10 17:11:10 -05:00
3020b224fa Merge windows+cc branch into cairocanvas branch. Not finished, need to now merge windows branch to get changes from there 2014-01-10 16:07:57 -05:00
d15fda6d75 fix merge errors with master 2014-01-10 14:53:03 -05:00
22c303d8f6 final (?) tweaks to rectangle rendering 2014-01-10 14:36:05 -05:00
9df593d823 clamp expose (queue_redraw()) requests to visible window area, some extra debugging details 2014-01-10 14:35:36 -05:00
0bdf4c25cf fix panner search path 2014-01-10 20:35:32 +01:00
02e6d14e23 make no-zero-line be the default for wave views (still shown for normal audio region views 2014-01-10 12:08:58 -05:00
6d4c0baad3 fix up thinko in recent raise_to_top/lower_to_bottom optimization 2014-01-10 11:54:05 -05:00
70c4a5e2d6 slightly expand CanvasRender debug output 2014-01-10 11:02:34 -05:00
ffdf3ed017 don't go through ::deliver_enter_leave() unnecessarily 2014-01-10 11:02:05 -05:00
7396fcf0b1 re-configure _all_ panners on a route, when panner type changes 2014-01-10 12:36:20 +01:00
8d64665ce1 add a fixed priority to panner modules 2014-01-10 12:13:22 +01:00
04ad07babf add [missing] left_half_rectangle util 2014-01-09 20:48:04 +01:00