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

Feature Request: Relative dx (offset) tag parameter #150

Open
arshiacont opened this issue Mar 31, 2022 · 1 comment
Open

Feature Request: Relative dx (offset) tag parameter #150

arshiacont opened this issue Mar 31, 2022 · 1 comment

Comments

@arshiacont
Copy link

This is a proposal for a useful addition to currently supported Tag Parameters in GuidoLib.

The idea is to extend dx to support a positive or negative duration value (same syntax as note durations elsewhere). To make things simple: The duration, set by user, must be limited to the span of the current measure in question.

Why is this extension useful? Some tags can only be positioned relatively in the score. Take the following screenshot. The Harmonies can currently be positioned in GuidoLib using (e.g.) dx=-5hs. But setting non-relative values will make the Guido Score dependent of Layout. This new feature will preserve GuidoLib ability to render dynamically and adapt to context (unique in its domain).

image

Potential Naïve Implementation? GuidoLib engine can take the relative dx value, take its current voice position and simply use the rational offset with current measure length to convert that value to an absolute offset, at the last minute of rendering?!

@dfober
Copy link
Member

dfober commented Mar 31, 2022

Good idea! Implies to introduce a new unit: e.g. 'qn' (for quarter note). What might be complicated is that the value (in space) of a qn should always be available. I'll have a look.

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