Commit graph

15714 commits

Author SHA1 Message Date
Paul Davis
75fec524d2 add debug trace output for locate 2020-03-24 18:22:39 -06:00
Robin Gareus
ad7ff1ffd7
Do not trim MIDI region end to last event on session-load
This amends 295fb3ff5a. Tape tracks were only available
for audio data.
2020-03-24 23:45:23 +01:00
Paul Davis
5f1d802307 when saving an unnamed session, rename it
Note that this is done at the GUI level, might need to double check if there are
other paths into a "save" that should be covered. Control surfaces use the action, but
Lua comes to mind
2020-03-24 14:10:39 -06:00
Paul Davis
e9be6c23a8 a better approach to the name of the "unnamed" indicator file; remove file after successful save 2020-03-24 14:10:39 -06:00
Paul Davis
5766989319 introduce the idea of an "unnamed" session 2020-03-24 14:10:39 -06:00
Paul Davis
23d72eedbf remove unused variable 2020-03-24 14:10:39 -06:00
Robin Gareus
fbcb7b9ffc
Add Lua binding for bounded roll 2020-03-24 18:47:39 +01:00
Robin Gareus
45d3d5d465
Fix C++98 compat: class-key must be used when declaring a friend 2020-03-24 14:38:35 +01:00
Robin Gareus
2f0914c730
Allow to disable use of NSGLView
On recent Mac systems (Catalina) OpenGL is slower compared to
directly using GTK's NSView. Furthermore when compiled on
Catalina, and running on a system with a Retina screen, the initial
size of the canvas may be wrong:

   libs/gtkmm2ext/nsglview.mm:175:1: warning: method possibly
   missing a [super reshape] call [-Wobjc-missing-super-calls]

This is not an issue when running versions compiled on older systems.
2020-03-24 14:24:14 +01:00
Paul Davis
0f63b82943 fix error in multiple calls to SourceFactory::createWritable()
removal of tape tracks removed an intermediate argument in the argument list; presence of default args for the
last two arguments and implicit conversion from int->bool prevented the compiler from complaining
about any existing calls.

This supplements/extends a54b000a70
2020-03-23 21:47:13 -06:00
Paul Davis
43edfc8900 don't stop if master sync is lost and user chose to just keep rolling 2020-03-23 19:08:36 -06:00
Paul Davis
db73afcaa5 extend fixed-width improvements to master delta to LTC 2020-03-23 18:37:27 -06:00
Paul Davis
83584c6553 add note and increase left-space-padding in transport master delta displays 2020-03-23 18:34:12 -06:00
Paul Davis
ddf2c60c9a improve variable width and precision for MTC slave delta display 2020-03-23 18:33:45 -06:00
Paul Davis
3e35a68922 remove debug output 2020-03-23 18:33:18 -06:00
Paul Davis
c0bbad3c4b add disk i/o apparent speed output to non-RT locate call 2020-03-23 18:32:56 -06:00
Paul Davis
b3a1cbbfa2 add in timing for disk buffer reload after locate, to replace hard-coded 0.05 seconds per track
Leave debug output in place for now to get some numbers from any testers
2020-03-23 17:05:45 -06:00
Robin Gareus
d050256a41
Remove Mixbus Aux-Link special case 1/2 2020-03-23 17:45:38 +01:00
Robin Gareus
4780a0fd60
NO-OP: whitespace 2020-03-23 17:38:08 +01:00
Robin Gareus
ac9e16f0b8
Pan: remove automation-state indirection 2/2 2020-03-23 17:38:01 +01:00
Robin Gareus
ce088f1f44
Constrain panner value to valid range 2020-03-23 06:14:39 +01:00
Robin Gareus
7aa4d6a91f
Remove unused method (see also 875f69438) 2020-03-23 06:13:34 +01:00
Robin Gareus
5c3f49ef2b
Fix icon-tool
tape-rec icon was removed in a4d7b45fe, also re-order icons to
retain grouping per line when using the icon render util
2020-03-23 01:18:55 +01:00
Robin Gareus
a54b000a70
Fix file import (typo in a4d7b45) 2020-03-23 01:06:23 +01:00
Paul Davis
f703385d07 fix slaving to JACK transport (again!) 2020-03-22 10:57:54 -06:00
Paul Davis
1f3145f8ff fix up JACK transport to use master strategy design 2020-03-22 10:57:54 -06:00
Paul Davis
1e474afbce fix typo that passed wrong value as 2nd parameter to Session::plan_master_strategy() 2020-03-22 10:57:54 -06:00
Robin Gareus
386264bd23
Pan: consolidate what_can_be_automated API 2020-03-21 19:46:39 +01:00
Robin Gareus
60bcefd03d
Pan: remove/consolidate parameter-descriptor 2020-03-21 19:46:38 +01:00
Robin Gareus
efb63e1bf2
Pan: remove value-as-string indirection 2020-03-21 19:46:38 +01:00
Robin Gareus
991f92c2c6
Pan: remove unused APIs 2020-03-21 19:46:38 +01:00
Robin Gareus
875f694380
Pan: remove VBAP requirement to access session 2020-03-21 19:46:38 +01:00
Robin Gareus
bf894d80fb
NO-OP: remove unused #includes 2020-03-21 19:46:38 +01:00
Paul Davis
8296a030a5 redesign chasing the transport master
Substantive comments associated with code in Session::plan_master_strategy.

Known not to work for reverse TC. Also, the JACK related code has not yet been tested
2020-03-20 17:38:38 -06:00
Paul Davis
e6e0edbe90 fix condition under which out-of-window MTC should trigger locate 2020-03-20 17:38:38 -06:00
Robin Gareus
28f15d3fa6
Add flag to explicitly hide a control
Eventually this is to replace a literal name "hidden" that is
currently used as hack throughout Ardour's codebase.
2020-03-18 18:16:29 +01:00
John Emmas
ca4e3c2556 Add/remove source(s) in our MSVC project (libardour) 2020-03-18 09:21:57 +00:00
Paul Davis
1783305077 provide mechanism to report on destructive tracks presence in a session 2020-03-17 16:31:50 -06:00
Paul Davis
0738472fee NOOP: indent/whitespace 2020-03-17 16:31:49 -06:00
Paul Davis
295fb3ff5a allow loading of regions derived from formerly "destructive" sources with correct length
Without this change, such regions end up with insanely large (though legal) lengths
2020-03-17 16:31:49 -06:00
Paul Davis
a30ee6950d restore being able to load a 5.12 session with a destructive track.
Not all is working right yet, however
2020-03-17 16:31:49 -06:00
Paul Davis
a4d7b45fe0 remove destructive/tape mode tracks 2020-03-17 16:31:49 -06:00
Paul Davis
e89b0cfd27 remove tape_file_matcher source 2020-03-17 16:31:49 -06:00
David Robillard
45026100aa LV2: Implement ui:requestValue feature 2020-03-17 16:55:35 +01:00
Robin Gareus
a7a781971e
Change default stereo panner to equal power balance
The stereo-width panner is not generally useful. In order to
change the azimuth, width has to be reduced, which usually leads
to comb-filter artifacts.

Equal power stereo, also matches the default mono to stereo panner
better than the stereo-width panner.

Last but not least, control surfaces only have an azimuth control
knob, without an easy way to reduce width, this leaves
the panner insensitive.
2020-03-15 21:39:53 +01:00
Robin Gareus
dbd4b9d07d
Fix cleanup report #7891
Direct call to Session::cleanup_sources() from ARDOUR_UI::cleanup()
didn't zero initialize size. This centralizes initialization,
so cleanup_trash_sources() does not need to explicitly clear it.
2020-03-15 20:31:57 +01:00
Robin Gareus
f941b3fadd
Add/use default argument for track creation 2020-03-15 14:03:24 +01:00
Robin Gareus
7f862298cf
Fix loading playlists of old sessions
Previously when loading Ardour v2, v3-5 sessions, tracks were
created with a dummy name "toBeResetFroXML".

In v6, Track::init() creates a playlist when the track name is
not empty. Later Track::set_state() calls set_name(). When a
playlist exists, the playlist's name is set to match the track's name.

When loading v6 sessions none of this happens. A previously loaded
playlist will be assigned by ID.

Older versions identified Playlists by name and by the time the
playlist is assigned, there may be ambiguities. With the default
(track-name = playlist-name) two playlists with the same name exist:

 (1) the playlist loaded from the session file
 (2) the playlist created by Track::init()

Playlists are stored in an ordered std::set<shared_ptr<Playlist>>,
and name-lookup iterates over the set.

When loading an old session after starting Ardour, it is very
likely to always lookup the playlist (1), because new, later
allocations from (2) are on top of the heap and ordered last.

The session seemingly loads correctly, except for lingering,
unused empty playlists "toBeResetFroXML" renamed to "Track name"
that were never deleted.

However when loading an old session from a running instance,
ordering is mostly random, and many tracks end up with using
the empty playlist (2) instead of the correct playlist (1).
2020-03-15 13:34:13 +01:00
Robin Gareus
213b3cd593
More useful debug message (print script that failed to parse) 2020-03-15 12:50:30 +01:00
Robin Gareus
db59711bc9
Fix SessionHandleRef shared-ptr leak when unfreezing tracks 2020-03-14 13:25:54 +01:00