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

Offbeatnotes #3361

Merged
merged 1 commit into from
Feb 27, 2017
Merged

Offbeatnotes #3361

merged 1 commit into from
Feb 27, 2017

Conversation

zonkmachine
Copy link
Member

@zonkmachine zonkmachine commented Feb 16, 2017

Fixes #1681

From a discussion that starts here: #1681 (comment)

  • When you add an ordinary note to a beat pattern the pattern is visually turned into a melody pattern, but the beat notes aren't represented in it. Fixed in Visible beat notes in MelodyPattern #3375
  • When a beat note is shifted off it's 16th part position it's no longer visible. Instead, turn the pattern into a melody pattern.

offbeatnotes
Suggested fix: Pattern switch to MelodyPattern when one or more beat notes are not visible in the BBEditor.

@@ -2451,7 +2451,7 @@ void PianoRoll::dragNotes( int x, int y, bool alt, bool shift, bool ctrl )

note->setPos( MidiTime( pos_ticks ) );
note->setKey( key_num );
if( note->length() <= 0 )
if( note->length() < 0 )
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because '0' length notes are no more.

@zonkmachine
Copy link
Member Author

Needs testing/review.

The first change is pretty straight forward and I think 'merge is go' for that one.

As for the second change I have no better idea on store. It works as it is but it's probably a matter of taste more than anything else. Pros, there are no more hidden notes in BBTracks and it's easy to implement. If you add or drag a note off beat you get an instant representation of it as the pattern is updated. Cons, you maybe simply prefer the older way and if you have more than one off beat note it may be annoying to find them to go back to a BBTrack. Maybe off beat beat track notes could be given a diffferent colour in the song editor?

@zonkmachine
Copy link
Member Author

zonkmachine commented Feb 20, 2017

The first change is pretty straight forward and I think 'merge is go' for that one.

Merged in #3375, the other feature needs review.

@@ -88,7 +88,7 @@ class EXPORT Pattern : public TrackContentObject
{
return m_patternType;
}

void checkType();

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made this public to be able to call it from PianoRoll.cpp .

@zonkmachine
Copy link
Member Author

Merge?

@zonkmachine
Copy link
Member Author

No objections so I will merge this tomorrow.

@zonkmachine zonkmachine removed the request for review from jasp00 February 27, 2017 07:16
@zonkmachine zonkmachine merged commit e4474af into LMMS:master Feb 27, 2017
@zonkmachine zonkmachine deleted the offbeatnotes branch February 27, 2017 07:21
@zonkmachine
Copy link
Member Author

@jasp00 Unfortunately this breaks the upgrade of void DataFile::upgrade_1_2_0_rc3()
Unfortunately I won't have time to address this in any other way than reverting the commit.

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