Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PatternEditor issues #1859

Closed
6 tasks done
theGreatWhiteShark opened this issue Oct 3, 2023 · 4 comments
Closed
6 tasks done

PatternEditor issues #1859

theGreatWhiteShark opened this issue Oct 3, 2023 · 4 comments
Labels
Milestone

Comments

@theGreatWhiteShark
Copy link
Contributor

theGreatWhiteShark commented Oct 3, 2023

Hydrogen version * : 1.2


I just experienced some very strange behavior in the Pattern Editor

  1. Create a new song
  2. Fill the first instrument with notes
  3. Select all notes and move them up by dragging them into the ruler
    -> the notes will disappear and don't show up in the .h2song when saving now. This shouldn't be possible
  4. Hit Ctrl + Z to undo
    -> the notes reappear as NoteOff notes which can neither be selected using mouse dragging or Ctrl + A. WTF?

Edit: moving notes out of the pattern is probably not a bad idea. But undo has to work.


  • Make undo work for notes moved outside of the editor
  • Allow to select NoteOff notes using drag select and keyboard select
  • Click and Shift + Click should remove an existing NoteOff note (only the one clicked)
  • Notes not reachable using the current pattern length should either not be rendered at all or rendered differently (see export to wave adds long dead time ! #1853)
  • Make NoteOff notes terminate the manually set length of a note (don't forget the corresponding redo)
  • When selecting notes using keyboard only Up and Down update the selection. For Left and Right just the rectangle changes.
theGreatWhiteShark added a commit to theGreatWhiteShark/hydrogen that referenced this issue Oct 3, 2023
check for the instrument property when deleting a NoteOff note

addresses hydrogen-music#1859
@theGreatWhiteShark
Copy link
Contributor Author

Allow to select NoteOff notes using drag select and keyboard select

Hey @cme ,

In

https://github.com/hydrogen-music/hydrogen/blob/master/src/gui/src/PatternEditor/PatternEditor.cpp#L237
https://github.com/hydrogen-music/hydrogen/blob/master/src/gui/src/PatternEditor/PatternEditor.cpp#L1048
https://github.com/hydrogen-music/hydrogen/blob/master/src/gui/src/PatternEditor/PatternEditor.cpp#L1137

NoteOff notes are intentionally excluded from being selected and rendered as selected. Do you know why?

I never used them in a real song but just quickly toying with them feels super strange as they do not behave like regular notes.

@theGreatWhiteShark
Copy link
Contributor Author

We can do this (the NoteOff note is rendered blue):

noteOffScreenshot

Triggering another note within the fixed length of a note is fine. But adding a NoteOff should cut the length of the note till the position of the stop note. Else the GUI suggests that the note will keep ringing. Which it does not.

@cme
Copy link
Contributor

cme commented Oct 6, 2023

Allow to select NoteOff notes using drag select and keyboard select

NoteOff notes are intentionally excluded from being selected and rendered as selected. Do you know why?

Looks like I accidentally inherited that logic from the original drag event handlers which were set up only to handle start notes because the previous functionality was to change the lengths by dragging. No explicit stop notes in the demo songs meant I ended up not noticing.

@theGreatWhiteShark
Copy link
Contributor Author

Looks like I accidentally inherited that logic from the original drag event handlers which were set up only to handle start notes because the previous functionality was to change the lengths by dragging. No explicit stop notes in the demo songs meant I ended up not noticing.

Alright. That's what I thought. I almost forgot about them too. One of those more hidden features

theGreatWhiteShark added a commit to theGreatWhiteShark/hydrogen that referenced this issue Oct 29, 2023
check for the instrument property when deleting a NoteOff note

addresses hydrogen-music#1859
@theGreatWhiteShark theGreatWhiteShark added this to the 1.2.3 milestone Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants