Returns a FoscLilypondTweakManager.
LilyPond tweak manager.
| setTweaks | Sets tweaks on object. |
| at | (abjad: getattr) |
Tweak managers are created by the ‘abjad.tweak()’ factory function:
FIXME ERROR: FoscLilypondGrobOverride does not respond to tweak.
b = FoscBeam();
t = tweak(b); //###### CORRECTSet an attribute like this:
t = tweak(b).color = 'red';
t.cs; //###### CLOSE, BUT NOT CORRECTExample
a = FoscVoice(FoscLeafMaker().(#[60,62,64,65], [1/4]));
a.consistsCommands.add('Horizontal_bracket_engraver');
b = FoscHorizontalBracket();
a[0..].attach(b);
tweak(b).staffPadding = 4;
tweak(b).color = 'red';
b.tweaks.prListFormatContributions;
a.show;
a.format;TEMPORARY - NOT YET WORKING
a = FoscVoice(FoscLeafMaker().(#[60,62,64,65], [1/4]));
a.consistsCommands.add('Horizontal_bracket_engraver');
b = FoscHorizontalBracketSpanner();
a[0..].attach(b);
// override(b).staffPadding = 4;
c = FoscLilypondTweakManager();
c.setTweaks(b, #[['color', 'red']]);
a.show;
a.format;Sets tweaks on object.
Example
l = FoscLilypondLiteral("\\f", 'after', directed: true);
FoscLilypondTweakManager.setTweaks(l, #[['color', 'blue']]);
l.tweaks.prListFormatContributions.postln;[ "- \\tweak color #blue" ]Example
l = FoscLilypondLiteral("\\f", 'after', directed: true);
FoscLilypondTweakManager.setTweaks(l, #['color', 'blue', size, 12]);
l.tweaks.prListFormatContributions.postln;[ "- \\tweak color #blue", "- \\tweak size #12" ](abjad: getattr)