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

Note spacing #113

Open
GitterHubber opened this issue Dec 7, 2019 · 2 comments
Open

Note spacing #113

GitterHubber opened this issue Dec 7, 2019 · 2 comments

Comments

@GitterHubber
Copy link

Hi
Is it possible to alter the note spacing in abc2svg.
For example Finale implements 3 types of spacing.

image
This example is spaced with Beat Spacing. Each beat is spaced non-linearly first, then spaced within the beat linearly.

image
This example is spaced with Note Spacing. Each note is spaced non-linearly.

image
This example is spaced with Time Signature Spacing. Each note is spaced linearly.

If these need to be implemented into abc2svg which files do we look at?

@moinejf
Copy link
Owner

moinejf commented Dec 8, 2019

There are 2 parameters for note spacing:

  • %%maxshrink is the factor between minimum spacing (with no clash) and natural spacing
    range: 0..1 - 0: minimun, 1: natural - default:0.65

  • %%notespacingfactor is the factor between a note and the immediate longer note (as quaver and crotchet)
    range: 1..2 - 1: all notes have an equal spacing - default: 1.33 (was 1.414 in abcm2ps)

@moinejf
Copy link
Owner

moinejf commented Dec 8, 2019

Indeed, I have inverted two values:
%%maxshrink 0: natural spacing, and 1: maximum shrink = minimun spacing

Also, %%notespacingfactor = 2 means "the note spacing is proportional to the note duration".

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

No branches or pull requests

2 participants