You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#77 fixes the selection of notes to play by dragging the mouse across the score. But you cannot select a passage that starts on one line and continues into the next. I mentioned this problem here: #90 (comment)
This patch allows you do do that by holding down the control/command key while dragging, which will add or merge the new selection and the previous one.
The changes are all to music_score_panel.py
Note that changes are also required to music_score_panel.py for python 3.10: #77 (comment)
def OnMouseMotion(self, event):
page = self.current_page
if self.HasCapture():
if self.drag_start_x is not None and self.drag_start_y is not None:
#DR2
add_selection = event.ControlDown() or event.CmdDown()
x, y = self.get_xy_of_mouse_event(event)
self.drag_rect = (min(self.drag_start_x, x), min(self.drag_start_y, y), abs(self.drag_start_x-x), abs(self.drag_start_y-y))
rect = wx.Rect(*map(int, self.drag_rect))
old_selection = page.selected_indices.copy()
page.select_notes(rect)
if old_selection != page.selected_indices and self.OnNoteSelectionChangedDesc:
#DR2
if add_selection:
page.selected_indices = self.previous_selection.union(page.selected_indices)
self.OnNoteSelectionChangedDesc(page.selected_indices)
self.redraw()
The text was updated successfully, but these errors were encountered:
#77 fixes the selection of notes to play by dragging the mouse across the score. But you cannot select a passage that starts on one line and continues into the next. I mentioned this problem here:
#90 (comment)
This patch allows you do do that by holding down the control/command key while dragging, which will add or merge the new selection and the previous one.
The changes are all to music_score_panel.py
Note that changes are also required to music_score_panel.py for python 3.10:
#77 (comment)
At ~line 50, after the initialisations:
Amend function OnLeftButtonDown to start:
Amend function OnMouseMotion to start:
The text was updated successfully, but these errors were encountered: