question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

stretchForce works with the staveProfile values 3 or 4

See original GitHub issue

Expected Results

stretchForce settings with all staveProfile values should work

Observed Results

If staveProfile is 1 or 2 (display with the scores), the stretchForce doesn’t affect the fitting

Steps to Reproduce (for bugs)

  1. I’ve added display settings to the sample final file https://www2.alphatab.net/docs/tutorial-web/player#final-file

display: { staveProfile: 1, stretchForce: 0.5 },

  1. stretchForce values less than 1 (I want to include more bars in the raw) works when staveProfile values are 3 - Tab 4 - TabMixed only.

Your environment (if applicable)

  • Version used: https://www2.alphatab.net/docs/tutorial-web/player#final-file
  • Platform used: JavaScript
  • Rendering engine used: SVG (default),
  • Browser Name and Version: Chrome Version 84.0.4147.135 (Official Build) (64-bit)
  • Operating System and version (desktop or mobile): macOS 10.15.1 (19B88)
  • Link to your project: local

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Danielku15commented, Sep 6, 2020

Phew. This issue turned out to be more effort than expected. 😅 I retested and checked in detail the spacing and sizing of notes and had to rework quite some bits. Now alphaTab really calculates correctly the required minimum widths of notes and ensures the right positioning of elements accordingly. This allows you to specify smaller stretch forces which allows you almost to squeeze notes that dense that there is no white-space between them anymore.

Also this rework results in some cases in a more dense layouting by default.

0reactions
rhclaytocommented, Nov 3, 2020

Awesome developer!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Employees Increasingly Seek Value and Purpose at Work
Employers take note: Talk of the “Great Resignation” ignores the fundamental change in people, who want more purpose in their lives, ...
Read more >
Maker's Mark Private Selection | Premium Custom Bourbon
Beginning as fully matured Maker's Mark ® at cask strength, Private Selection is created by adding 10 custom wood finishing staves to each...
Read more >
Unit 6: Work and Energy Hooke's Law and EPE Worksheet
Draw a force diagram for the box above when the spring is stretched, yet the box is stationary. b. What is the maximum...
Read more >
Tensile Test Experiment | Michigan Technological University
We will look at a very easy experiment that provides lots of information about the strength or the mechanical behavior of a material,...
Read more >
Section 14. SWOT Analysis: Strengths, Weaknesses ...
Learn how to conduct a SWOT Analysis to identify situational strengths and weaknesses, as well as opportunities and threats.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found