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

Check time_signature property of MeasurewiseQSchema #17

Open
nivlekp opened this issue Feb 2, 2021 · 0 comments
Open

Check time_signature property of MeasurewiseQSchema #17

nivlekp opened this issue Feb 2, 2021 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@nivlekp
Copy link
Member

nivlekp commented Feb 2, 2021

If we set only a single time signature in MeasurewiseQSchema using the keyword time_signature, then the time_signature would display properly.

>>> q_schema = abjadext.nauert.MeasurewiseQSchema(
...     time_signature=abjad.TimeSignature((3, 4))
... )
>>> q_schema.time_signature
TimeSignature((3, 4))

However, if we are using the non-sequential time-step setting via a dictionary, then it would only return the default time signature (4, 4).

>>> a = {"time_signature": abjad.TimeSignature((7, 32))}
>>> b = {"time_signature": abjad.TimeSignature((3, 4))}
>>> c = {"time_signature": abjad.TimeSignature((5, 8))}

>>> settings = {
...     2: a,
...     4: b,
...     6: c,
... }

>>> q_schema = abjadext.nauert.MeasurewiseQSchema(settings)
>>> q_schema.time_signature
TimeSignature((4, 4))

Maybe this behavior makes sense, maybe not.

@nivlekp nivlekp self-assigned this Feb 2, 2021
@nivlekp nivlekp added the question Further information is requested label Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant