13
0
Commit Graph

2558 Commits

Author SHA1 Message Date
e3c67bceb8 implement methods in TempoMap for walking a given distance along a tempo map and returning the resulting time; add a new property, _length_beats, to MidiRegion; use previously mentioned methods to keep _length_beats up to date as regions are moved AND as tempo map changes occur
git-svn-id: svn://localhost/ardour2/branches/3.0@8274 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-14 20:03:40 +00:00
9882fe9ab0 Clean up libtimecode, make license of bbt_time.h LGPL.
git-svn-id: svn://localhost/ardour2/branches/3.0@8272 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-14 19:07:50 +00:00
4b861e6039 Rename libmusictime libtimecode (consistent with already used namespace "Timecode").
Move BBT_Time to libtimecode.


git-svn-id: svn://localhost/ardour2/branches/3.0@8271 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-14 18:13:37 +00:00
Carl Hetherington
bb92cf3b24 Fix warning better.
git-svn-id: svn://localhost/ardour2/branches/3.0@8267 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-14 03:08:39 +00:00
Carl Hetherington
7961e34fc2 Fix warning.
git-svn-id: svn://localhost/ardour2/branches/3.0@8266 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-14 03:06:53 +00:00
Carl Hetherington
1238f09478 Use DEBUG_TRACE for all of the MIDI clock ticker code.
git-svn-id: svn://localhost/ardour2/branches/3.0@8264 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-14 01:05:51 +00:00
6f8cafdaff Add missing files.
git-svn-id: svn://localhost/ardour2/branches/3.0@8263 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-13 21:03:39 +00:00
f6055f2c6f Eliminate circular dependency kludge for control_protocol/smpte.o.
git-svn-id: svn://localhost/ardour2/branches/3.0@8262 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-13 20:46:07 +00:00
23d8df6edf More complete (but still incomplete) LV2 persist implementation.
git-svn-id: svn://localhost/ardour2/branches/3.0@8261 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-13 19:27:59 +00:00
Carl Hetherington
3ccb32773b Oops, fix build.
git-svn-id: svn://localhost/ardour2/branches/3.0@8260 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-13 16:05:28 +00:00
Carl Hetherington
e8c59e4155 Remove unnecessary assert from midi clock ticker code; MIDI::Port handles non-process thread sends using a ringbuffer. Clean up some types.
git-svn-id: svn://localhost/ardour2/branches/3.0@8259 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-13 16:03:24 +00:00
Carl Hetherington
8d5b4fbf4a Fix comment.
git-svn-id: svn://localhost/ardour2/branches/3.0@8258 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-13 16:03:13 +00:00
Carl Hetherington
9a1f83923d Clear existing data before reading new to make overwrite_existing_buffers() work correctly. Should fix #3481.
git-svn-id: svn://localhost/ardour2/branches/3.0@8256 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-12 21:36:40 +00:00
Carl Hetherington
dd6935e2ad Minor cleanup.
git-svn-id: svn://localhost/ardour2/branches/3.0@8253 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-12 01:03:17 +00:00
Carl Hetherington
1e11c4bc57 Fix MIDI fork using a modified version of a patch from warrenfalk. Fixes #3595.
git-svn-id: svn://localhost/ardour2/branches/3.0@8252 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-12 00:41:47 +00:00
Sakari Bergen
ccb7a5a794 Add a null check to ports when loading an export channel from xml + fix indentation for commit r8247
git-svn-id: svn://localhost/ardour2/branches/3.0@8249 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-11 20:56:53 +00:00
fec8f4ad49 better comment change
git-svn-id: svn://localhost/ardour2/branches/3.0@8248 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-11 20:48:18 +00:00
644af18a4b fix thinko in AudioEngine::get_port_by_name()
git-svn-id: svn://localhost/ardour2/branches/3.0@8247 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-11 20:45:11 +00:00
Sakari Bergen
80c61db0cd Fix compiler warnings
git-svn-id: svn://localhost/ardour2/branches/3.0@8246 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-11 15:09:47 +00:00
Carl Hetherington
680a3f2b86 Prevent garbage preset names with VST plugins when the call to get preset name fails.
git-svn-id: svn://localhost/ardour2/branches/3.0@8245 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-11 02:35:31 +00:00
Carl Hetherington
173354c847 Fix a few tiny memory leaks.
git-svn-id: svn://localhost/ardour2/branches/3.0@8244 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-11 02:34:44 +00:00
Carl Hetherington
e8fede43ee Reset PanControllable StreamPanners when they change.
git-svn-id: svn://localhost/ardour2/branches/3.0@8243 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-11 00:24:17 +00:00
Carl Hetherington
19ae4ed640 Comment a few things and add missing process lock when adding a route from a template.
git-svn-id: svn://localhost/ardour2/branches/3.0@8242 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-11 00:23:51 +00:00
Carl Hetherington
cd175818ed Fix crash.
git-svn-id: svn://localhost/ardour2/branches/3.0@8241 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-11 00:23:39 +00:00
Carl Hetherington
1f0ac78bc4 Fix deadlock on closing a send IO dialogue.
git-svn-id: svn://localhost/ardour2/branches/3.0@8240 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-10 22:46:53 +00:00
Carl Hetherington
86ac707573 Stop bounce / freeze on tracks that have more outputs than inputs and so cannot record all the outputs in their diskstreams. Fix buffer shortage when bouncing tracks whose processing chains temporarily need more buffers than there are inputs. Fixes #3573.
git-svn-id: svn://localhost/ardour2/branches/3.0@8239 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-10 22:28:29 +00:00
Carl Hetherington
627385cab4 Handle overlaps better when executing DiffCommands.
git-svn-id: svn://localhost/ardour2/branches/3.0@8233 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-09 21:37:14 +00:00
Carl Hetherington
555c7ac094 Undo for sys-ex movements in time.
git-svn-id: svn://localhost/ardour2/branches/3.0@8232 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-09 21:36:31 +00:00
Carl Hetherington
ad916f6241 Fix a few bad iterator accesses.
git-svn-id: svn://localhost/ardour2/branches/3.0@8231 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-09 21:35:33 +00:00
Carl Hetherington
5c23faaa0d Allow trim of midi regions to before the start of the source (better, this time). Fixes #3156.
git-svn-id: svn://localhost/ardour2/branches/3.0@8229 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-09 21:34:46 +00:00
Carl Hetherington
7d4e03e28e Use a weak_ptr rather than a bald pointer for _midi_source in MidiModel.
git-svn-id: svn://localhost/ardour2/branches/3.0@8228 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-09 21:34:31 +00:00
ebf3762fa9 fix computation of silence text, and its display. it is still not on top of the canvas, which is a small problem
git-svn-id: svn://localhost/ardour2/branches/3.0@8227 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-09 18:17:36 +00:00
0a62044c2c make strip silence work (again?)
git-svn-id: svn://localhost/ardour2/branches/3.0@8226 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-09 16:31:05 +00:00
d28ecb2b93 fix for Route::shift/insert-time
git-svn-id: svn://localhost/ardour2/branches/3.0@8225 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-08 23:22:01 +00:00
f176612086 move display of silence for strip-silence into regionviews, along with text to describe impact on the region. this doesn't actually make strip-silence work any better, but the display is improving
git-svn-id: svn://localhost/ardour2/branches/3.0@8224 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-08 21:02:37 +00:00
32ac2049fe minor panner debugging, cont'd
git-svn-id: svn://localhost/ardour2/branches/3.0@8223 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-08 21:01:20 +00:00
Carl Hetherington
cbfb77cd8e in compute_gains in case _speakers.n_tuples is 0. Prevent NaN gains if total power is 0 in the same method. Mark initially dirty so that the first call to do_distribute sets up desired_outputs.
git-svn-id: svn://localhost/ardour2/branches/3.0@8218 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-08 01:52:06 +00:00
Carl Hetherington
ab1e2bfaea Remove unused method.
git-svn-id: svn://localhost/ardour2/branches/3.0@8217 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-08 01:51:56 +00:00
Carl Hetherington
c65d364661 Fix VST preset deletion.
git-svn-id: svn://localhost/ardour2/branches/3.0@8216 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-07 20:12:47 +00:00
Carl Hetherington
95acc21c69 Add scrollbar to edit presets dialogue, and the ability to differentiate between built-in and user presets.
git-svn-id: svn://localhost/ardour2/branches/3.0@8215 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-07 20:12:40 +00:00
Carl Hetherington
56554af08f Revert previous ill-thought-out patch.
git-svn-id: svn://localhost/ardour2/branches/3.0@8213 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-07 19:55:43 +00:00
Carl Hetherington
f3fc6195bc Allow trim of midi regions to before the start of the source. Fixes #3156.
git-svn-id: svn://localhost/ardour2/branches/3.0@8212 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-07 19:16:23 +00:00
Carl Hetherington
f8e16276d9 Fix a couple of places where set_position_internal was not being used, meaning that a region's _bbt_time member was not updated and so regions could move about unexpectedly when locked to bars and beats.
git-svn-id: svn://localhost/ardour2/branches/3.0@8211 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-07 19:05:05 +00:00
eead73098d reimplement Route::shift() from 2.X for "Insert Time"
git-svn-id: svn://localhost/ardour2/branches/3.0@8209 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-07 15:15:25 +00:00
b83f21c3cf add "shift" method used in 2.X and now a3 to move data starting at a position, not an iterator
git-svn-id: svn://localhost/ardour2/branches/3.0@8208 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-07 15:13:04 +00:00
Carl Hetherington
a9275f997b Put plugin-note-off code in the right place.
git-svn-id: svn://localhost/ardour2/branches/3.0@8207 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-07 15:00:19 +00:00
Carl Hetherington
94b4c264d1 Send note-offs to VST instrument plugins on transport stop. Fixes #3583.
git-svn-id: svn://localhost/ardour2/branches/3.0@8203 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-07 14:44:47 +00:00
Carl Hetherington
40c162d609 Move RDF-based preset stuff into LadspaPlugin, to make way for a set of evil hacks to make VST chunk-based presets work (for some values of `work').
May fix #3577.


git-svn-id: svn://localhost/ardour2/branches/3.0@8202 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-07 02:56:11 +00:00
Carl Hetherington
99c2d589d1 Don't crash if get_action() is called before the UI manager is created. Sort-of fix for #3571.
git-svn-id: svn://localhost/ardour2/branches/3.0@8199 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-06 13:59:59 +00:00
Carl Hetherington
3975355a5f Add dialog to allow removal of plugin presets. Should fix #2662.
git-svn-id: svn://localhost/ardour2/branches/3.0@8196 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-06 04:29:06 +00:00