Paul Davis
b7b2189d95
fix copy-paste but in MidiTimeAxisView::set_note_selection() - use set, not add
2023-10-18 09:05:10 -06:00
Paul Davis
18819a48a9
region gain and MIDI CC freehand line drawing
...
This involved a significant change in event handling for automation region views,
but it brings it into line with how it works for other things. On button press
we initiate a drag, then if no motion occurs, the Drag returns false during
finalization, and only then do we continue through Editor::button_release_handler()
to eventually end up in ::add_automation_event().
Although it is a substantial change, the fact that it now works the same
way for audio regions, automation regions and automation tracks seems
like a definite plus.
2023-09-30 11:09:58 -06:00
Paul Davis
a2656d6612
when the "draw channel" is set to auto, consider the midnam display channel
...
This has higher priority than the playback mask
2023-09-13 23:58:31 -06:00
Paul Davis
5644c8587e
only show scroomer note names in draw/internal edit modes (if at all)
2023-09-13 11:53:18 -06:00
Paul Davis
9194dc9843
fix for incorrect text appearing in MIDNAM model selector
...
I do not understand why this works, but all of this code related to MIDNAM
model names is just a total mess in terms of rational design (caused, in turn,
by MIDNAM's design, which might possibly reflect the real world).
2023-09-11 13:16:27 -06:00
Paul Davis
194f0fbed6
finalize (?) some details of note name display options
2023-09-10 18:20:35 -06:00
Paul Davis
df95ec6b43
partial response to note name display option
2023-09-10 18:20:35 -06:00
Paul Davis
2f0bfedb58
include "Channel" in text for MIDNAM display channel selector
2023-09-10 18:20:35 -06:00
Paul Davis
090b9d4f60
remove MIDI scroomer from code
2023-09-10 18:20:35 -06:00
Paul Davis
baa32aa5bd
merged commit from alexander mitchell, implementing a new piano roll header
2023-09-10 18:20:35 -06:00
Paul Davis
7dc532a646
lollis: only allow velocity editing on currently selected region
2023-06-26 14:18:18 -06:00
Paul Davis
b3de53eb95
when a playlist is relayered, relayer ghost regions too
2023-06-26 14:18:18 -06:00
Paul Davis
744208f556
lollis: no more channel-based choice, just a single check menu item like gain/pan/etc.
2023-06-26 14:18:18 -06:00
Paul Davis
2797ea9666
remove unusued "MIDI underlay" cruft
2023-06-26 14:18:17 -06:00
Paul Davis
fcba147acd
remove concept of a velocity time axis view, just use velocity region view
2023-06-26 14:18:17 -06:00
Paul Davis
ea6717f041
empty, useless velocity lane for MIDI tracks
2023-06-26 14:18:17 -06:00
Paul Davis
6cb4d01f1f
add velocity item to MIDI track automation menu
2023-06-26 14:18:17 -06:00
Paul Davis
b35518e212
switch from boost::{shared,weak}_ptr to std::{shared,weak}_ptr
...
This is mostly a simple lexical search+replace but the absence of operator< for
std::weak_ptr<T> leads to some complications, particularly with Evoral::Sequence
and ExportPortChannel.
2023-03-24 14:19:15 -06:00
Robin Gareus
8113633bb9
Cleanup Track Automation kids
...
Send levels are dedicated to each send (Processor), and
not route-owned direct child automation for each time-axis.
2022-10-14 02:21:50 +02:00
Robin Gareus
a3806e2946
Implement Draw-tool opaqueness option
2022-09-19 23:40:58 +02:00
Robin Gareus
97f0fac7d5
Copy region properties (2/2) - see prev commit
2022-09-19 22:49:42 +02:00
Paul Davis
9ea1e5bdee
move color utility functions from ARDOUR_UI_UTILS to Gtkmm2ext namespace (GUI)
2022-08-10 21:11:52 -06:00
Robin Gareus
b8ebdbc44a
Fix showing automation lane on touch
...
In the past ui-change event "track_height" was used to force
a redraw. This changed in c1fb7bc05d
2022-04-26 00:26:02 +02:00
Paul Davis
a3c5db5d51
ensure that non-drag track height changes cause a call to Editor::redisplay_track_views()
2022-04-05 20:52:10 -06:00
Robin Gareus
5d7ff24130
Hide scroomer when using layered mode
...
In layered mode the scroomer is not usable with stacked MIDI regions.
Ideally we'd only hide it if there is more than one layer
but that is for another day.
2022-03-29 01:30:51 +02:00
luz paz
364f2f0788
Fix typos in gtk2_ardour/ directory
...
Found via `codespell -q 3 -S *.po,./share/patchfiles,./libs -L ba,buss,busses,doubleclick,hsi,ontop,ro,seh,siz,sur,te,trough,ue`
2022-01-26 12:35:38 -05:00
Ben Loftis
252ae56a08
MIDI Draw: change behavior regarding MIDI Channel of new notes
...
When adding a note, use these criteria to choose the channel number:
* if the user has explicitly specified a note in the pulldown, use that
* if the user has AUTO selected and we are in a region, choose the nearest note's channel (consistent with velocity behavior)
* as a fallback, query the track for its channel-filter (old behavior)
2021-11-18 08:23:08 -06:00
Ben Loftis
93e68a5a00
MIDI Draw: provide a menu for Channel and Velocity
2021-11-18 07:35:13 -06:00
Paul Davis
19d99b0a4b
fix logic of MIdiTimeAxisView::add_region() to interoperate correctly with editor source list
2021-08-28 16:00:53 -06:00
Paul Davis
b451a50b95
use explicit timepos_t() for region start property in property lists (gui edition)
2021-08-13 12:51:31 -06:00
Paul Davis
2a08e4bdaa
continued work on timeline types conversion. in theory, just editor_ops.cc remains
2021-08-13 12:51:29 -06:00
Robin Gareus
ab6d46c24c
Add GUI control to block MIDI patch change on session load
2021-07-13 03:29:28 +02:00
Paul Davis
084d7e221b
centralize naming of a couple of context menus
2021-05-13 10:29:19 -06:00
Robin Gareus
9b4d330285
Remove unused variable
...
`ignore_toggle` is never set to true.
2021-01-29 02:58:25 +01:00
Robin Gareus
d0e1ed403c
Update some messages
2020-10-17 18:28:10 +02:00
Robin Gareus
198f97e126
Ask before showing 2k automation lanes
2020-09-07 16:57:55 +02:00
Robin Gareus
23ffa8b89c
Significantly speed up displaying of all MIDI automation lanes
2020-09-07 16:57:51 +02:00
Robin Gareus
68082abc22
Fix track-header visibility for inactive tracks
...
This supersedes 0708cdb6b4 , an explicit `name_label.show()`
is not needed. The inactive label was missing an explicit call
to show.
This also fixes MIDI track MIDNAM Selector visibility
2020-07-10 18:16:18 +02:00
Robin Gareus
a47fac7638
Fix MIDNAM model (MMA > Generic) fallback
2020-05-03 20:48:06 +02:00
Paul Davis
65f7a6a938
changes to deal with region/note selection when changing into/out of internal edit mode
...
Also, activate MIDI editing actions so that they are effective in internal edit mode
2020-04-16 17:48:12 -06:00
Robin Gareus
4e43aaef64
Add automation lane for poly-key-pressure
2020-04-15 15:37:54 +02:00
Robin Gareus
b955bb04ec
Only CCs can have custom MIDNAM labels
2020-04-15 15:37:23 +02:00
Robin Gareus
2d18d512e3
NO-OP: whitespace
2020-04-15 15:22:53 +02:00
Robin Gareus
a3af5e31f1
Update labels in MIDI Automation Lanes when MIDNAM changes
2020-04-15 02:38:18 +02:00
Robin Gareus
4130bc3a86
Update CC Automation menu when MIDNAM changes
2020-04-15 01:51:05 +02:00
Robin Gareus
4b9f6208e7
Limited listed CC-channels to ChannelNameSet channels
2020-04-15 01:51:05 +02:00
Robin Gareus
3cd2ad85af
Fix restoring custom MIDNAM #7984
2020-04-07 14:16:53 +02:00
Robin Gareus
11f28a4b1d
NO-OP: cleanup and remove debug messages
2020-04-03 14:49:03 +02:00
Robin Gareus
714e2f1736
Optimize MTAV creation, speed up new MIDI track
...
This removes various duplicate code-paths leading to midi-model
updates, and expensive context-menu rebuilds. This significantly
speeds up MIDI track creation.
2020-04-03 03:42:56 +02:00
Robin Gareus
42af08fb92
Consolidate MIDNAM control display code
2020-04-01 23:26:13 +02:00