13
0
Commit Graph

11856 Commits

Author SHA1 Message Date
0e65852901 Desperate hack to align master-bus on export.
Another 90% solution which hopefully gives us another year :(
see comments Session::start_audio_export() for explanation.
2016-10-25 22:33:37 +02:00
nick_m
927b16aa53 don't mix framepos with quarter notes when calculating _start frames.
- quarter note precision is greater than the frame-based
	  _position. using it as a reference may cause a rounding error
	  if the region is locked to MusicTime.

	- also fixes a _start position bug when trimming midi regions.

	- we really need a better api for this kind of thing.

	- in combination with the previous two patches, this should fix
	  various missing first note issues.
2016-10-25 04:36:34 +11:00
nick_m
dfb0868847 make MidiRegion::start/length_beats() const. 2016-10-25 04:15:50 +11:00
nick_m
ce3ae4cdc9 remove unnecessary rounding from MidiSource::midi_read()
- we already have start_beats, so don't try to recalculate
	  something similar for the position comparison.
2016-10-25 04:14:14 +11:00
nick_m
20d02c4c68 expand on existing tempo tests. 2016-10-25 04:02:58 +11:00
nick_m
509d938b04 Don't recalculate region beat position on session load, fix AudioTime thinko. 2016-10-25 03:59:13 +11:00
5743013ae4 OSC fix debug logic for catchall messages 2016-10-23 19:00:20 -07:00
dd015e09a7 OSC Accept int in first parameter in path commands as well as float. 2016-10-23 18:45:25 -07:00
53e9337eba Fix HIDAPI optional (python: False vs 'False') 2016-10-24 00:51:51 +02:00
c78824aef5 Include hidapi library 2016-10-23 22:53:10 +02:00
57d1f68cd6 Introduce "virtual" async MIDI ports
This allows to flush an async MIDI port's ringbuffer at cycle-start,
to makes its data available as "input/source" during process(), while
collecting data in the background for the next cycle.

This facilitates virtual MIDI Ports for eg. Control Surface Pads:
output from a surface, input to Ardour channels.
2016-10-23 22:25:40 +02:00
7e861bd12e NO-OP: whitespace 2016-10-23 22:18:07 +02:00
7c8ab05c09 Don't add initial points for MIDI-CC
eg. import a .mid that has a CC later in the file.
Arodur wrongly added an initial point, effectively moving the event
backwards to "0" (no virgin territory)
2016-10-23 14:21:24 +02:00
6866359c48 when fetching MIDI ports for bundles and auto-connection, ignore control-only (and "virtual") MIDI ports
"virtual" is a placeholder name for ALSA sequencer MIDI through ports
2016-10-21 16:32:46 -04:00
fb200cfbb9 remove debug output 2016-10-21 16:31:53 -04:00
235c1f9adb infrastructure for save/restore of MIDI port user-provided information 2016-10-20 16:34:52 -04:00
12c558f62e tweak logic for MIDI input follows selection 2016-10-20 16:34:52 -04:00
8ac97d55c9 slight improvements in logic for midi-input-follows-selection 2016-10-19 23:17:39 -04:00
72c8ab0103 add PortManager::disconnect (std::string const&) 2016-10-19 23:17:08 -04:00
f96b698234 infrastructure for MIDI-input-follows-selection 2016-10-19 17:49:35 -04:00
0a8ab08e5f basics of following MIDI track selection and rewiring input 2016-10-19 17:49:35 -04:00
d0b2767856 NOOP: whitespacing tweak 2016-10-19 17:49:35 -04:00
8c911234e6 basics of managing a list of port names for MIDI-input-follows-selection 2016-10-19 17:49:35 -04:00
1cc561bf74 Use official LV2 state:StateChanged URI
http://lv2plug.in/git/cgit.cgi/lv2.git/commit/?id=dbb18d82136d43eec435e321bffa835ba5776d6e
2016-10-19 19:45:53 +02:00
56711b99c9 Work around OSX MIDI devices that send no timestamps 2016-10-19 19:45:53 +02:00
d29d93f4cd fix retrieval of port properties (metadata) when the value has no type 2016-10-18 16:46:33 -04:00
nick_m
715b178130 Improve bbt ruler drawing performance for large time ranges.
- when the timeline displays many bars, zoom/autoscroll
	  speed is improved by calculating the bbt ruler scale first
	  then requesting a suitably scaled grid.
2016-10-19 03:56:43 +11:00
208cb967e5 Warn about skipped MIDI events
This can occur when the MIDI readahead time is too low and events get
pushed into the MidiRingBuffer after the corresponding read.  In this
case, skip_to() gets called (as it does before every read) and the
events are silently dropped.

This is a Very Bad Thing(TM), so warn about it.  I am not sure which
other scenarios can skip events that aren't problematic, but there's
probably some.  A more sophisticated detection/reporting (or maybe even
dynamic reconfiguration) scheme would be nice here, but some false
positive messages are at least better than silently failing to play
notes and the like.
2016-10-17 20:22:26 -04:00
94f8b7b8f2 Clean up MIDI debugging output 2016-10-17 20:22:26 -04:00
69cbcb84a6 spelling corrections from Jaromír Mikeš <mira.mikes@seznam.cz>
Corresponds to https://anonscm.debian.org/cgit/pkg-multimedia/ardour.git/tree/debian/patches/0070-spelling.patch
2016-10-17 17:57:39 -04:00
c43046320b reset peak meters used in push2 when stripable goes away 2016-10-17 15:58:39 -04:00
687ac2d294 remove unused variable 2016-10-17 15:58:39 -04:00
Nathan Stewart
84c66c75db Initialize uninitialized member variables in ctor - warning suppression 2016-10-17 15:58:39 -04:00
3e32a00a52 fast region export -- don't call process() 2016-10-17 21:35:00 +02:00
8519677a24 fix potentially crash-inducing race condition by removing event loops' x-thread channel from an event loop when it is destroyed 2016-10-17 14:48:15 -04:00
157253c2c6 remove debug output 2016-10-17 13:41:22 -04:00
9a3c1dbfe7 fix thinko in d2835bc80 (re-enables mute, solo and likely other automation controls) 2016-10-17 13:20:03 -04:00
5b22e67387 add more DEBUG_TRACE statements for port/destruction debugging 2016-10-17 11:16:07 -04:00
2c2ce7aa55 convert cerr<< to DEBUG_TRACE 2016-10-17 11:16:07 -04:00
1fd7ec58cd use existing method rather than inline code for pending port deletions 2016-10-17 11:16:07 -04:00
nick_m
46d137414b Initialize TempoMetric _pulse in sonstructor. 2016-10-18 02:14:15 +11:00
nick_m
0585393989 Music locked regions stay positive after tempo map change. 2016-10-18 02:12:33 +11:00
466141229f ignore send buffers for which there's no return
This fixes an issue with Audio+Midi sends feeding into an audio only return.
2016-10-17 00:33:02 +02:00
d2835bc802 improved and hopefully correct fix for "setting AutomationControl marks session dirty even when it should not, if in playback mode"
Hopefully comment is more explanatory as well.
2016-10-16 15:51:50 -04:00
nick_m
92920307ae Tempo curve cleanup, now also works on optimized builds. 2016-10-17 01:28:33 +11:00
f52443e17e Increase range of a-comp release time.
This facilitates ducking music for voice-overs w/o hold-time.
2016-10-15 21:27:29 +02:00
07ee9b6164 Source and AudioSource Lua bindings 2016-10-15 21:27:29 +02:00
nick_m
8ae0c1b36c Minor cleanup (don't set pulse twice in Region::set_position()). 2016-10-16 03:50:14 +11:00
nick_m
3a0a628a75 Rework duration clock and TempoMap::insert_time to include meter at offset.
- should fix 7072

	- also fixes scroll behavior over multiple tempi.
2016-10-16 02:33:49 +11:00
102547089b remove debug output 2016-10-14 11:50:27 -04:00