Commit Graph

29090 Commits

Author SHA1 Message Date
Paul Davis
8e8d2f86a8 centralize determination of "read-audio-data-in-reverse" and fix seek "shift" offset
There is still a bug related to "shift" that causes a playback discontinuity
2020-02-21 11:54:08 -07:00
Paul Davis
f0316430c6 make "reversing" back into a DirectionState and prohibit speed changes while reversing 2020-02-21 11:54:08 -07:00
Robin Gareus
2fb260e6e8 Update Control flags of Aux Sends
This fixes old session-state of sessions saved after
6.0-pre0-3039-g93180ceea9 and before 6.0-pre0-3459-g587fc50059.
It's mainly relevant for Mixbus6.0
2020-02-20 23:11:04 +01:00
Robin Gareus
587fc50059 Fix Inline-control visibility state
This fixes an issue when copy/pasting plugins or aux-sends from
one track to another. After copying the processor, the state
is copied, however the Controllable state did save
the InlineControl flag, so this as lost.

(amend 93180ceea)
2020-02-20 23:06:55 +01:00
Paul Davis
57598acbcf remove unused members 2020-02-20 12:53:57 -07:00
Paul Davis
2398f6127f fix up apparent design thinkos in US2400 key binding handler 2020-02-20 12:53:57 -07:00
Paul Davis
444ef73c7d fix up apparent design thinkos in Mackie key binding handler 2020-02-20 12:53:57 -07:00
Paul Davis
938e65f12a use MIXBUS approach to User button for Faderport (it's just a button, not a modifier 2020-02-20 12:53:57 -07:00
Ben Loftis
b5f2aed234 Faderport(1): fix pan_azimuth direction by setting Rotary flag. 2020-02-20 12:25:51 -06:00
Ben Loftis
ef5fddd8b5 MCU: fix pan_azimuth direction by setting Rotary flag. 2020-02-20 12:25:51 -06:00
Ben Loftis
4f5076a81a controllable::{get_set}_interface() are convenience wrappers for funcs that need the Rotary flag set 2020-02-20 12:25:51 -06:00
Robin Gareus
43bed39d30 Reset MIDI-control when a given ctrl is not available
This fixes an issue with "/route/eq/freq/0 S1":
When a newly select strip that does not have a EQ
(e.g. mixbus or master), the control from the previously
selected strip is used.  -- Reported by tavasti on IRC.
2020-02-20 19:13:58 +01:00
Robin Gareus
1d5be40801 Fix copy/edit in c509c94824 2020-02-20 19:10:28 +01:00
Paul Davis
4dc74813ef avoid setting midnam-model-name in GUI properties when there are no device modes for that model 2020-02-20 00:26:29 -07:00
Paul Davis
4b10beec08 change transport API, session API, transportFSM API to move reverse management and motion state (partially) into TFSM 2020-02-20 00:25:25 -07:00
Paul Davis
efd6a856f8 add comment 2020-02-20 00:22:17 -07:00
Paul Davis
c2c41b38d0 when seeking in disk reader, adjust start of read (if possible) to allow some reverse internal seek allowance 2020-02-20 00:22:09 -07:00
Paul Davis
4037162963 fix test to decide if we can skip disk buffer refill because we're close enough (read direction must match) 2020-02-20 00:21:31 -07:00
Paul Davis
e468e68c23 variable name change (ffa ... 2nd f was "frame" => fsa ... s is "sample") 2020-02-20 00:20:45 -07:00
Paul Davis
243b3f0983 improve comments 2020-02-20 00:19:41 -07:00
Paul Davis
1e9af51f36 correctly track is disk read (audio) should be forwards/backwards, and what was done last time we read from disk 2020-02-20 00:19:22 -07:00
Paul Davis
7ca068f8d5 change variable name to be more meaningful/indicative 2020-02-20 00:15:32 -07:00
Paul Davis
53139a93d5 remove debug output 2020-02-20 00:15:10 -07:00
Paul Davis
ca3714bccf NOOP: fix brace/newline use 2020-02-20 00:09:32 -07:00
Paul Davis
d1b335b36e expose PlaybackBuffer::reservation and make the member const 2020-02-19 23:10:13 -07:00
Paul Davis
58123c969b remove unused method 2020-02-19 23:09:51 -07:00
Paul Davis
998b88b521 when inside Route::set_state() and calling set_name(), call the virtual method, rather than Route::set_name()
Without this, nothing in Track::set_name() is called, which means that tracks created from templates
do not get their name set appropriately
2020-02-19 19:21:11 -07:00
Paul Davis
585b61e58b fix paren/newline formatting 2020-02-19 19:21:11 -07:00
Robin Gareus
89bd6cafa0 Force Disk-Reader channel count to match Disk-Writer I/O.
This handles some special cases where a plugin is added after
the disk-writer but before the disk-reader.

The plugin may add/remove ports (e.g. an instrument: MIDI to audio,
or some stereo to mono processors). However we need to ensure
that any data that is recorded will be played back.

This is a new take replacing b2bc934e2.
2020-02-20 01:57:14 +01:00
Robin Gareus
c8f1146124 Revert "fix behavior of DiskReader when moved after an instrument"
This reverts commit b2bc934e21.

The commit does causes issues when a user manually removes channels:
The disk-reader's ::can_support_io_configuration() at first ignores
the user's request, forcing the output channel count to match the
DR's current channel config.

However, when configuring the DiskReader after that, channels is updated
to match the new input-count.

Even though the DR itself only plays back using the confgured I/O,
all processors after it still use the old channel count.

Only a later, second re-configuration step will apply the actual removal
to plugins and port.

PS. the original commit was mainly intended to fix a crash when
adding an instrument plugin *between* disk-writer and disk-reader
on a MIDI track.
2020-02-20 01:57:11 +01:00
Robin Gareus
4337e2b054 NO-OP: remove old comment and debug code 2020-02-20 01:57:07 +01:00
Robin Gareus
52f88f6814 Fix crash on buffer override of N/A data-types
DiskReader::refill_audio and DR::run() do check if a given playlist
is available. This is required for upcoming changes to set
DR channels to unconditionally match DiskWriter.
2020-02-20 01:57:01 +01:00
Robin Gareus
28a37c6b9a Fix declick at transport start for multi-channel tracks 2020-02-20 01:48:57 +01:00
Robin Gareus
c509c94824 Update scripts to new request_locate() API 2020-02-20 00:02:27 +01:00
Paul Davis
8d557dd56a fix old write source names being used after a track is renamed 2020-02-19 15:07:42 -07:00
Paul Davis
95773f6bb7 fix compiler warning about dynamic_cast<T*>(ptr_to_T)
This is in a Route method, so it is obvious that dynamic_cast<Route*>(this) will return true
2020-02-19 15:07:42 -07:00
Paul Davis
ad402e76af remove "destination_sample" from API for Session::set_transport_speed()
This was a leftover from changes made for Tracks Live, related to
the concept of an auto-return preference. We don't use this anywhere in Ardour
or Mixbus, and the concept should eventually be removed entirely.
2020-02-19 15:07:42 -07:00
Robin Gareus
b1922fb220 Fix libreadline detection
This fixes building and bundling the "luasession" commandline tool,
regression was introduced in 2e9ac80e99 (waf py2/3)
2020-02-19 18:20:03 +01:00
Robin Gareus
f62fb6dd98 Remove unused dummy control class
PBD::IgnorableControllable() is no longer used.
It also was problematic, because in every case where a
Controllable is required, min/max range and usually also
get/set value are significant.
2020-02-19 17:03:46 +01:00
Robin Gareus
7f2a59ca66 Fix Latency GUI numeric entry 2020-02-19 16:58:06 +01:00
Ben Loftis
4f9a91cab8 Prompt user when deleting a VCA (amends 01c6f5)
Editor::remove_tracks expected the VCA to be selected, but right-click does not force selection in a VCA strip.
2020-02-18 20:41:23 -06:00
Ben Loftis
d6315618da Enumerate the polarity buttons from the polarity processor itself, not the Input count. 2020-02-18 20:15:05 -06:00
Ben Loftis
01c6f55867 Prompt user before removing a VCA in the mixer window. 2020-02-18 20:14:00 -06:00
Robin Gareus
720664d9d3 Fix loading send gain automation
This cleans up various issues that have been accumulated over the past
and fixes bugs introduced in d4e023e1 and e31f5d99.

Previously GainControl as saved as part of the Amp, however the
automation was saved via Send (is-a Automatable).

In d4e023e1cb, the GainControl was changed a "BusSendLevel"
parameter, but AutomationList was not updated. This prevented
loading existing automation (control parameter was not found).
2020-02-18 21:14:52 +01:00
John Emmas
7c35f45681 Add/remove source(s) in our MSVC project (gtk2_ardour) 2020-02-18 11:21:38 +00:00
Robin Gareus
60a2406056 GUI Dialog to inform the user about missing files
So far this is only used for MIDI, missing audio files are
already handled by asking a user to locate them.
The same approach doesn't work for MIDI, since there cannot be
externally referenced (embedded) .mid files (since MIDI is destructive).
2020-02-18 01:29:35 +01:00
Robin Gareus
6f205f857b Replace missing .mid files with silence
This fixes a crash: missing playlist due to missing .mid,
and retains regions for missing MIDI files.

As opposed to missing Audio, we cannot use a SilentFileSource,
because MIDI files are destructive.

This also adds an API to query missing files that have been replaced
with silence to report them to the user.
2020-02-18 01:26:20 +01:00
Robin Gareus
2ac90f5598 LV2: disable unofficial LV2UI_Request_Parameter
This API is not official, and the upcoming official API differs.
The source-code is left in-place since most of it will be
re-usable as-is, regardless.
2020-02-15 14:15:29 +01:00
Robin Gareus
4c7cde0242 Fix seamless looping w/split-cycles
This fixes the following (loop-lennth > internal_playback_seek
length. Due to read-ahead on some cycles the following can happen
---
Loop From: 3528000 To: 3880800  (len: 352800)
start-sample: 3880971 playback_sample: 3528171 nframes: 96
start-sample: 3880875 playback_sample: 3528075 nframes: 192
---
which resulted in disk_samples_to_consume == 0;
2020-02-14 18:45:13 +01:00
Robin Gareus
1341e18cac Fix potential deadlock (session-template with latent procs) 2020-02-14 18:42:45 +01:00