-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Support for conditional directives #983
Comments
martijnversluis
added a commit
that referenced
this issue
Dec 9, 2024
The tag selector is stored on the tag, the current line and evaluated for a paragraph. See https://www.chordpro.org/chordpro/chordpro-directives/#conditional-directives Related to #983
martijnversluis
added a commit
that referenced
this issue
Dec 9, 2024
The tag selector is stored on the tag, the current line and evaluated for a paragraph. See https://www.chordpro.org/chordpro/chordpro-directives/#conditional-directives Related to #983
martijnversluis
added a commit
that referenced
this issue
Dec 14, 2024
martijnversluis
added a commit
that referenced
this issue
Dec 15, 2024
martijnversluis
added a commit
that referenced
this issue
Dec 15, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Conditional directives
All directives can be equipped with a selector by appending a selector name to the name of the directive, separated by a dash (hyphen)
-
. If the selector fails, the directive is skipped.For example:
This will define the appropriate Dm chord for either ukulele or guitar.
Selection can be reversed by appending a
!
to the selector.How selectors are defined depends on the ChordPro processing tool. The ChordPro program uses the config values for
instrument.type
anduser.name
.See https://www.chordpro.org/chordpro/chordpro-directives/#conditional-directives
Tag
Line
andParagraph
!
for reversing the selectorThe text was updated successfully, but these errors were encountered: