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

Prevent BBEditor step stretching #2443

Closed
wants to merge 1 commit into from
Closed

Conversation

tresf
Copy link
Member

@tresf tresf commented Nov 14, 2015

Per request HDDigitizerMusic#1

Before:

screen shot 2015-11-14 at 1 50 46 pm

After:

screen shot 2015-11-14 at 1 42 27 pm

The only code that was changed was the removal of the manual scaling logic in the paintEvent function.

@Spekular
Copy link
Member

Spekular commented Nov 14, 2015 via email

@tresf
Copy link
Member Author

tresf commented Nov 14, 2015

Also, isn't it perhaps better to align the shorter pattern to the left?

That is probably more accurate, but the BBeditor resizes them by width currently, so I believe the spacing logic would still be needed unless we disable resizing.

I'd go so far as saying it's best to just force all patterns to be the same
length.

What happens when a PianoRoll goes over the step length, does it just add another bar?

@tresf
Copy link
Member Author

tresf commented Nov 14, 2015

What determines how much they stretch/where they stop?

There's currently no support for a horizontal scrollbar in the BBEditor (not yet at least), so the stretch is solely determined on the width of the BBEditor.

@Spekular
Copy link
Member

Spekular commented Nov 14, 2015 via email

@tresf
Copy link
Member Author

tresf commented Nov 14, 2015

I was wondering what determined [max step] size.

This determines the natural step size:
https://github.com/LMMS/lmms/blob/master/data/themes/default/step_btn_on.png

I had to leave the natural shrinking behavior in there or else the resizing of BBEditor would hide the notes on the end (which may be warranted if we had a scroll bar).

As for piano roll, I think it should be limited to the length of the
pattern of possible, or add more bars as you suggested.

Yeah we're reinventing the Song Editor if we do that. Hmm...

@tresf
Copy link
Member Author

tresf commented Mar 5, 2016

Closing for now. This will require much more reworking.

@tresf tresf closed this Mar 5, 2016
@tresf tresf deleted the scaledfix branch March 5, 2016 04:15
@IvanMaldonado
Copy link
Contributor

Why not just locking a standard size? and then make it as twice as big when more steps are added and so on.

inb4 That's what FL does.

@tresf
Copy link
Member Author

tresf commented Mar 5, 2016

@IvanMaldonado your conversation is likely to be ignored here as this is now a dead pull request. Please take the conversation over to #2636. 👍

inb4 That's what FL does.

Except that comment, that can stay and die in this thread. 😆

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.

3 participants