Skip to content

Flip Selection Feature - #555

Draft
RaviScriptDev wants to merge 11 commits into
OpenNBS:developmentfrom
RaviScriptDev:feature/flip-selection
Draft

Flip Selection Feature#555
RaviScriptDev wants to merge 11 commits into
OpenNBS:developmentfrom
RaviScriptDev:feature/flip-selection

Conversation

@RaviScriptDev

Copy link
Copy Markdown

This PR adds an useful feature. It adds the ability to flip the notes in the current selection.

Details:

  • It can flip horizontally and vertically
  • The actions can be triggered by a keyboard shortcut (Ctrl+ H to do a horizontal flip and Ctrl + J to do a vertical flip, so far)
  • The actions can also be triggered by the "Edit" menu or the right click menu

RaviScriptDev and others added 11 commits March 27, 2026 01:57
also, I can probably make it cleaner
…the vertical flip for-loop.

To remove the code duplication, I merged these two for-loops. To select what mode (vertical or horizontal) the flip will use, before the loop, I defined and calculated two variables: `outerloop_count` and `innerloop_count`

These two variables basically, one the two is set to current_song.selection_(l or h) divided by 2. The other is set to `row` or `column`.

The same thing is done for the target_row and target_column: one of these two has the value calculated, the other is just `row` or `column`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant