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

Add abjad.show(..., flags="") keyword #1575

Closed
trevorbaca opened this issue Dec 28, 2023 · 0 comments
Closed

Add abjad.show(..., flags="") keyword #1575

trevorbaca opened this issue Dec 28, 2023 · 0 comments
Assignees
Milestone

Comments

@trevorbaca
Copy link
Member

flags will be passed to the LilyPond commandline.

Use flags for LilyPond --include statements. This allows calls to abjad.show() to point LilyPond to scm/abjad.ily:

>>> flags = "--include=/Users/user/abjad/abjad/scm"
>>> abjad.show(score, flags=flags)

Recall that LilyPond --include statements do not specify included files; rather, LilyPond --include statements specify directories which LilyPond should search for included files, somewhat like the behavior of Python's PYTHONPATH environment variable. This means that this ...

lilypond --include=/Users/user/abjad/abjad/scm/abjad.ily

... will not work, but that this ...

lilypond --include=/Users/user/abjad/abjad/scm

... will work.

Add the same functionality to the following:

* abjad.persist.as_midi(..., flags="")
* abjad.persist.as_pdf(..., flags="")
* abjad.persist.as_png(..., flags="")
@trevorbaca trevorbaca added this to the 3.20 milestone Dec 28, 2023
@trevorbaca trevorbaca self-assigned this Dec 28, 2023
trevorbaca added a commit that referenced this issue Dec 28, 2023
``flags`` is passed to the LilyPond commandline.

Use ``flags`` for LilyPond --include statements:

    >>> flags = "--include=/Users/user/abjad/abjad/scm"
    >>> abjad.show(score, flags=flags)

Recall that LilyPond --include statements do not specify included files;
rather, LilyPond --include statements specify directories which LilyPond
should search for included files, somewhat like the behavior of Python's
PYTHONPATH environment variable. This means that this ...

    lilypond --include=/Users/user/abjad/abjad/scm/abjad.ily

... will not work, but that this ...

    lilypond --include=/Users/user/abjad/abjad/scm

... will work (and correctly point LilyPond to the scm/abjad.ily file).

NEW. Added the same functionality to the following:

    * abjad.persist.as_midi(..., flags="")
    * abjad.persist.as_pdf(..., flags="")
    * abjad.persist.as_png(..., flags="")

Tag #1575.

NEW. Added abjad.TextMark indicator.

Tag #1572.
trevorbaca added a commit that referenced this issue Dec 28, 2023
``flags`` is passed to the LilyPond commandline.

Use ``flags`` for LilyPond --include statements:

    >>> flags = "--include=/Users/user/abjad/abjad/scm"
    >>> abjad.show(score, flags=flags)

Recall that LilyPond --include statements do not specify included files;
rather, LilyPond --include statements specify directories which LilyPond
should search for included files, somewhat like the behavior of Python's
PYTHONPATH environment variable. This means that this ...

    lilypond --include=/Users/user/abjad/abjad/scm/abjad.ily

... will not work, but that this ...

    lilypond --include=/Users/user/abjad/abjad/scm

... will work (and correctly point LilyPond to the scm/abjad.ily file).

NEW. Added the same functionality to the following:

    * abjad.persist.as_midi(..., flags="")
    * abjad.persist.as_pdf(..., flags="")
    * abjad.persist.as_png(..., flags="")

Tag #1575.

NEW. Added abjad.TextMark indicator.

Tag #1572.
trevorbaca added a commit that referenced this issue Dec 28, 2023
``flags`` is passed to the LilyPond commandline.

Use ``flags`` for LilyPond --include statements:

    >>> flags = "--include=/Users/user/abjad/abjad/scm"
    >>> abjad.show(score, flags=flags)

Recall that LilyPond --include statements do not specify included files;
rather, LilyPond --include statements specify directories which LilyPond
should search for included files, somewhat like the behavior of Python's
PYTHONPATH environment variable. This means that this ...

    lilypond --include=/Users/user/abjad/abjad/scm/abjad.ily

... will not work, but that this ...

    lilypond --include=/Users/user/abjad/abjad/scm

... will work (and correctly point LilyPond to the scm/abjad.ily file).

NEW. Added the same functionality to the following:

    * abjad.persist.as_midi(..., flags="")
    * abjad.persist.as_pdf(..., flags="")
    * abjad.persist.as_png(..., flags="")

Tag #1575.

NEW. Added abjad.TextMark indicator.

Tag #1572.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant