From e06bd481a1075cd1ed633b3bc44010d40c973362 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 28 Oct 2022 16:41:15 -0600 Subject: [PATCH] fix color of MIDI notes during capture so that they are visible --- gtk2_ardour/midi_region_view.cc | 4 +++- gtk2_ardour/midi_region_view.h | 1 - gtk2_ardour/themes/blueberry_milk-ardour.colors | 1 + gtk2_ardour/themes/caineville-ardour.colors | 1 + gtk2_ardour/themes/clear_gray-ardour.colors | 1 + gtk2_ardour/themes/cubasish-ardour.colors | 1 + gtk2_ardour/themes/dark-ardour.colors | 1 + gtk2_ardour/themes/diehard3-ardour.colors | 1 + gtk2_ardour/themes/recbox-ardour.colors | 1 + gtk2_ardour/themes/unastudia-ardour.colors | 1 + gtk2_ardour/themes/xcolors-ardour.colors | 1 + 11 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc index 29a9afd633..ced3863536 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -4316,7 +4316,9 @@ MidiRegionView::data_recorded (boost::weak_ptr w) assert (note->end_time() == std::numeric_limits::max()); - add_note (note, true); + NoteBase* nb = add_note (note, true); + nb->item()->set_fill_color (UIConfiguration::instance().color ("recording note fill")); + nb->item()->set_outline_color (UIConfiguration::instance().color ("recording note fill")); /* fix up our note range */ if (ev.note() < _current_range_min) { diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h index e4bbba4d00..f5ff024604 100644 --- a/gtk2_ardour/midi_region_view.h +++ b/gtk2_ardour/midi_region_view.h @@ -125,7 +125,6 @@ public: GhostRegion* add_ghost (TimeAxisView&); NoteBase* add_note(const boost::shared_ptr note, bool visible); - void resolve_note(uint8_t note_num, Temporal::Beats end_time); void cut_copy_clear (Editing::CutCopyOp); bool paste (Temporal::timepos_t const & pos, const ::Selection& selection, PasteContext& ctx); diff --git a/gtk2_ardour/themes/blueberry_milk-ardour.colors b/gtk2_ardour/themes/blueberry_milk-ardour.colors index 702ff518de..c61f1aab3d 100644 --- a/gtk2_ardour/themes/blueberry_milk-ardour.colors +++ b/gtk2_ardour/themes/blueberry_milk-ardour.colors @@ -342,6 +342,7 @@ + diff --git a/gtk2_ardour/themes/caineville-ardour.colors b/gtk2_ardour/themes/caineville-ardour.colors index 0f79adb08b..bba11a75ba 100644 --- a/gtk2_ardour/themes/caineville-ardour.colors +++ b/gtk2_ardour/themes/caineville-ardour.colors @@ -343,6 +343,7 @@ + diff --git a/gtk2_ardour/themes/clear_gray-ardour.colors b/gtk2_ardour/themes/clear_gray-ardour.colors index 437e64580e..adaef35328 100644 --- a/gtk2_ardour/themes/clear_gray-ardour.colors +++ b/gtk2_ardour/themes/clear_gray-ardour.colors @@ -343,6 +343,7 @@ + diff --git a/gtk2_ardour/themes/cubasish-ardour.colors b/gtk2_ardour/themes/cubasish-ardour.colors index 0644f99ba3..26d56ca6d3 100644 --- a/gtk2_ardour/themes/cubasish-ardour.colors +++ b/gtk2_ardour/themes/cubasish-ardour.colors @@ -343,6 +343,7 @@ + diff --git a/gtk2_ardour/themes/dark-ardour.colors b/gtk2_ardour/themes/dark-ardour.colors index 00ec0bcb4d..027648f2a2 100644 --- a/gtk2_ardour/themes/dark-ardour.colors +++ b/gtk2_ardour/themes/dark-ardour.colors @@ -343,6 +343,7 @@ + diff --git a/gtk2_ardour/themes/diehard3-ardour.colors b/gtk2_ardour/themes/diehard3-ardour.colors index 11f7066e3c..117bf08ffe 100644 --- a/gtk2_ardour/themes/diehard3-ardour.colors +++ b/gtk2_ardour/themes/diehard3-ardour.colors @@ -345,6 +345,7 @@ + diff --git a/gtk2_ardour/themes/recbox-ardour.colors b/gtk2_ardour/themes/recbox-ardour.colors index 84120b8cf3..81677c4320 100644 --- a/gtk2_ardour/themes/recbox-ardour.colors +++ b/gtk2_ardour/themes/recbox-ardour.colors @@ -343,6 +343,7 @@ + diff --git a/gtk2_ardour/themes/unastudia-ardour.colors b/gtk2_ardour/themes/unastudia-ardour.colors index c3876de968..c1e18aff5d 100644 --- a/gtk2_ardour/themes/unastudia-ardour.colors +++ b/gtk2_ardour/themes/unastudia-ardour.colors @@ -342,6 +342,7 @@ + diff --git a/gtk2_ardour/themes/xcolors-ardour.colors b/gtk2_ardour/themes/xcolors-ardour.colors index d0db752d52..4fd66d8561 100644 --- a/gtk2_ardour/themes/xcolors-ardour.colors +++ b/gtk2_ardour/themes/xcolors-ardour.colors @@ -343,6 +343,7 @@ +