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

Guitar slide, hammeron and pulloff base class #8180

Closed
wants to merge 1 commit into from

Conversation

laturetab
Copy link
Contributor

Base class (Slurando) to track guitar slide, hammer-on and pull-offs. Save/loads information to/from mscx/mscz format. Draws slur between 2 notes like a tie, with optional text centered on slur or below staff (e.g. "P", "H", "Sl.") Currently does not have any UI and is not created by any importers, however it should work well with MusicXml and GuitarPro. Derived from tie.cpp and contains a lot of duplicate code. I will create a 2nd PR to remove the duplicate code if this class makes it into master.

  • [x ] I signed CLA
  • [x ] I made sure the code in the PR follows the coding rules
  • [x ] I made sure the code compiles on my machine
  • [x ] I made sure there are no unnecessary changes in the code
  • [x ] I made sure the title of the PR reflects the core meaning of the issue you are solving
  • [x ] I made sure the commit message(s) contain a description and answer the question "Why do those changes fix that particular issue?" or "Why are those changes really necessary as improvements?"
  • [x ] I made sure the commit message title starts with "fix #424242:" if there is a related issue
  • I created the test (mtest, vtest, script test) to verify the changes I made

@laturetab laturetab force-pushed the slurando branch 2 times, most recently from e4485ba to 7e5c45b Compare May 26, 2021 14:57
// layout slurando
for (const Spanner* sp : note->spannerBack()) {
if (sp->isSlurando()) {
qreal d = ((Slurando*)sp)->layoutWidth(note, this);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't you use toSlurando() here (you added it after all, so why not using it too)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

// layout Slurando
for (const Spanner* sp : note->spannerBack()) {
if (sp->isSlurando()) {
qreal d = ((Slurando*)sp)->layoutWidthTab(note, this);
Copy link
Contributor

Choose a reason for hiding this comment

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

dito

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@Jojo-Schmitz
Copy link
Contributor

why?

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.

None yet

2 participants