Commit Graph

33824 Commits

Author SHA1 Message Date
Paul Davis 9f90870306 reduce (but not eliminate) AutomationLine (+ derivatives) dependence on TimeAxisView
AutomationLines now use a TimeThing for time conversions, and has their own Session ref handle
2021-12-09 10:19:23 -07:00
Paul Davis 0dda441598 automation region view: eliminate use of trackview member to access PublicEditor 2021-12-08 16:31:28 -07:00
Paul Davis 3798a2a045 change where a ghost region gets its height set 2021-12-08 16:14:10 -07:00
Paul Davis ecaa0ec422 time axis view item: more complete/correct (?) fix for selection frame size 2021-12-08 14:58:59 -07:00
Paul Davis 87e89750f8 automation region view: do not set height of the line outside of ::set_height() 2021-12-08 14:49:54 -07:00
Paul Davis 44699e605c time_axis_view_item: do not set frame handle heights outside of ::set_height() 2021-12-08 14:49:09 -07:00
Paul Davis 9e89294e11 time axis view item: fix selection frame size 2021-12-08 14:29:26 -07:00
Paul Davis 5bd3d25f8e time axis view item: don't set name text size/position outside of ::set_height() 2021-12-08 14:29:11 -07:00
Paul Davis 8c75ea936a no need to set initial height in a TimeAxisViewItem, since ::set_height() will take care of it 2021-12-08 13:46:57 -07:00
Paul Davis 36f3d5aad4 remove another long-commented line 2021-12-08 13:46:33 -07:00
Paul Davis 816b6a00bc fix ghost region height for MIDI regions 2021-12-08 13:46:21 -07:00
Paul Davis be111abb34 minor fixups for ghost region height management 2021-12-08 13:19:20 -07:00
Paul Davis ee22381f32 remove long-commented line 2021-12-08 13:13:08 -07:00
Paul Davis de65798619 ghostregions: use their own height, not trackview.current_height() 2021-12-08 09:28:26 -07:00
Paul Davis 71181bbb02 use TimeThing within MidiRegionView for time conversion 2021-12-07 22:08:35 -07:00
Paul Davis 0b2ab07c61 use TimeThing when constructing RegionViews/TimeAxisViewItem 2021-12-07 21:51:29 -07:00
Paul Davis 0537243540 PublicEditor inherits from TimeThing 2021-12-07 21:27:35 -07:00
Paul Davis 40c60ecb42 remove unused file 2021-12-07 21:23:29 -07:00
Paul Davis 992b517933 clip editor: add bg color 2021-12-06 17:03:32 -07:00
Paul Davis 00f1dc8725 audio clip editor: trivial packing onto trigger page 2021-12-06 15:33:32 -07:00
Paul Davis e1a5c5ccca audio clip editor: some color 2021-12-06 15:29:15 -07:00
Paul Davis 94517a9de5 audio clip editor: starting to add display material 2021-12-06 15:13:16 -07:00
Paul Davis 54c71c3d61 skeleton/experiment for audio clip editor 2021-12-06 14:53:04 -07:00
Paul Davis 7b8be04623 triggerbox: fix mis-designed handling of dest_offset when a trigger starts within the same run() call as another 2021-12-06 14:06:48 -07:00
Paul Davis bc7e14c8ac remove misleading content from a comment 2021-12-06 14:05:59 -07:00
Paul Davis 0a0ca81e11 triggerbox: add missing property defn 2021-12-06 10:36:57 -07:00
Paul Davis ef9cca2c07 triggerbox: add missing property defn 2021-12-06 10:27:59 -07:00
Paul Davis a14bcc455b triggerbox: more properties for Triggers 2021-12-06 09:26:18 -07:00
Paul Davis 4918e4bcb9 triggerbox: change return type for Triggerbox::currently_playing(); add position-as-fraction to Triggerbox 2021-12-06 09:06:46 -07:00
Paul Davis 9a89dd8981 triggerbox: add TriggerBox currently_playing property, and rename ::currently_running() to ::currently_playing 2021-12-06 08:57:06 -07:00
Paul Davis 86f239f185 triggerbox: add 3 additional property descriptors for Triggers 2021-12-06 08:47:29 -07:00
Paul Davis c7b70c6318 new GUI preference item for showing only 1 plugin GUI at a time. Disabled by default 2021-12-05 11:07:27 -07:00
Paul Davis 96b21c4824 fix crash in Playlist::relayer() when there are no regions 2021-12-05 10:36:26 -07:00
Paul Davis 17832e9f86 remove another instance of std::numeric_limits<timecnt_t>::max() 2021-12-05 09:24:13 -07:00
Paul Davis 887cd070b0 remove another instance of std::numeric_limits<timepos_t>::max() 2021-12-05 09:23:33 -07:00
Paul Davis a72108636b remove another instance of std::numeric_limits<timecnt_t>::max() 2021-12-05 09:23:05 -07:00
Paul Davis d7fdec2ef5 remove another instance of std::numeric_limits<timepos_t>::max() 2021-12-05 09:22:02 -07:00
Paul Davis 646d1e9a22 remove use of std::numeric_limits<time{pos,cnt}_t> from Playlist
::max() is time-domain dependent, and cannot be encapsulated via a single value.
2021-12-05 09:01:49 -07:00
Robin Gareus d29d40c1ec
Fix stacked region view
Previously this looped endlessly in RegionView::update_coverage_frame()
if the return value was undefined (or wrong time-domain) and smaller
than pos.
2021-12-05 15:05:12 +01:00
Paul Davis eb0b3f253a make Drag::grab_time() etc. follow the drag's _time_domain 2021-12-04 19:52:42 -07:00
Paul Davis 796785b42f in Drags, use Drag::pixel_to_time() rather than Editor::pixel_to_sample()
This preserves the TimeDomain of the drag
2021-12-04 19:48:31 -07:00
Paul Davis 845b5d81a9 add Drag::pixel_to_time() which reflects the Drag's _time_domain setting 2021-12-04 19:38:26 -07:00
Paul Davis fc155e76b4 give every Drag an explicit time domain 2021-12-04 18:44:57 -07:00
Paul Davis af0e6872b4 triggerbox: handle None trigger follow action 2021-12-04 13:33:32 -07:00
Paul Davis c1de82f833 triggerbox: fix return value from MidiTrigger::run() when there was an event
last_event_samples was being set to buffer/process()-relative samples, but
needed to be timeline-relative samples.
2021-12-04 13:25:33 -07:00
Paul Davis 65c69b6818 triggerbox: resolve MIDI notes at end of buffer, not one beyond the end 2021-12-04 11:50:31 -07:00
Paul Davis b3f866b86e triggerbox: more debug trace statements 2021-12-04 11:50:31 -07:00
Paul Davis 4a13a1fa62 triggerbox: fix up what happens at the end of a MIDI trigger 2021-12-04 11:50:31 -07:00
Paul Davis 050b046e4d triggerbox: stop immediately when stop_all() is used 2021-12-04 11:50:31 -07:00
Paul Davis 0c7d578199 NOOP: comments to document Trigger state enum and some methods 2021-12-04 11:50:31 -07:00