Returns a FoscLilypondGrobOverride.
LilyPond grob override.
| grobName | LilyPond grob override grob name. |
| isOnce | Is true when grob override is to be applied only once. |
| isRevert | Is true when grob override is a grob revert. |
| lilypondType | Optional Lilypond grob override context name. |
| overrideFormatPieces | Gets LilyPond grob override format pieces. |
| overrideString | Gets LilyPond grob override string. |
| propertyPath | LilyPond grob override property path. |
| revertFormatPieces | Gets LilyPond grob override \revert format pieces. |
| revertString | Gets LilyPond grob override \revert string. |
| value | Value of LilyPond grob override. |
| tweakString |
| == | Is true when object is a FoscLilypondGrobOverride with equivalent instance variable values. |
LilyPond grob override grob name.
Returns Symbol.
Example
a = FoscLilypondGrobOverride(grobName: 'Glissando');
a.grobName.postln;'Glissando'Is true when grob override is to be applied only once.
Returns true or false.
Example
a = FoscLilypondGrobOverride("Staff", "NoteHead", isOnce: true);
a.isOnce.postln;trueExample
a = FoscLilypondGrobOverride(grobName: 'Glissando', isOnce: false);
a.isOnce.postln;falseIs true when grob override is a grob revert.
Returns true or false.
Example
a = FoscLilypondGrobOverride("Staff", "NoteHead", isRevert: true);
a.isRevert.postln;trueOptional Lilypond grob override context name.
Returns Symbol or nil.
Example
a = FoscLilypondGrobOverride("Staff", "NoteHead", true, false, 'color', 'red');
a.lilypondType.postln;'Staff'Example
a = FoscLilypondGrobOverride(grobName: 'Glissando');
a.lilypondType.isNil.postln;trueGets LilyPond grob override format pieces.
Returns array of strings.
Example
a = FoscLilypondGrobOverride(
lilypondType: "Staff",
grobName: "TextSpanner",
isOnce: true,
propertyPath: #['bound-details', 'left', 'text'],
value: FoscMarkup("\\bold { over pressure }")
);
a.overrideFormatPieces.printAll;[ "\\once \\override Staff.TextSpanner.bound-details.left.text = \\markup { \"\\bold { over pressure }\" }" ]
\once \override Staff.TextSpanner.bound-details.left.text = \markup { "\bold { over pressure }" }Gets LilyPond grob override string.
Returns string.
Example
a = FoscLilypondGrobOverride(
grobName: "Glissando",
propertyPath: 'style',
value: FoscSchemeSymbol('zigzag')
);
a.overrideString.postln;\override Glissando.style = #'zigzagLilyPond grob override property path.
Returns array of symbols.
Example
a = FoscLilypondGrobOverride(
lilypondType: "Staff",
grobName: "TextSpanner",
isOnce: true,
propertyPath: #['bound-details', 'left', 'text'],
value: FoscMarkup("\\bold { over pressure }")
);
a.propertyPath[0].postln;'bound-details'Gets LilyPond grob override \revert format pieces.
Returns array of strings.
Example
a = FoscLilypondGrobOverride(
grobName: "Glissando",
propertyPath: 'style',
value: FoscSchemeSymbol('zigzag')
);
a.revertFormatPieces.postln;[ "\\revert Glissando.style" ]Gets LilyPond grob override \revert string.
Returns string.
Example
a = FoscLilypondGrobOverride(
grobName: "Glissando",
propertyPath: 'style',
value: FoscSchemeSymbol('zigzag')
);
a.revertString.postln;\revert Glissando.styleValue of LilyPond grob override.
Returns arbitrary object.
Example
a = FoscLilypondGrobOverride(
lilypondType: "Staff",
grobName: "TextSpanner",
isOnce: true,
propertyPath: #['bound-details', 'left', 'text'],
value: FoscMarkup("\\bold { over pressure }")
);
a.value.postln;FoscMarkup("\bold { over pressure }")Example
a = FoscLilypondGrobOverride(
grobName: "Glissando",
propertyPath: 'style',
value: FoscSchemeSymbol('zigzag')
);
a.tweakString.postln;- \tweak style #'zigzagExample
a = FoscLilypondGrobOverride(
grobName: "RehearsalMark",
propertyPath: 'color',
value: 'red'
);
a.tweakString.postln;- \tweak color "red"Lilypond literals are allowed.
FIXME: ERROR: Message name not understood.
a = FoscLilypondGrobOverride(
grobName: "TextSpan",
propertyPath: #['bound-details', 'left-broken', 'text'],
value: FoscLilypondLiteral("\\markup \\upright pont.")
);
a.tweakString.postln;Is true when object is a FoscLilypondGrobOverride with equivalent instance variable values.
FIXME: ERROR: Message instVarDict not understood.
a = FoscLilypondGrobOverride("Staff", "NoteHead", true, false, 'color', 'red');
b = FoscLilypondGrobOverride("Staff", "NoteHead", true, false, 'color', 'red');
(a == b).postln;FIXME: ERROR: Message instVarDict not understood.
a = FoscLilypondGrobOverride("Staff", "NoteHead", true, false, 'color', 'red');
b = FoscLilypondGrobOverride("Voice", "NoteHead", true, false, 'color', 'red');
(a == b).postln;