FoscLilypondTweakManager

Returns a FoscLilypondTweakManager.


Description

LilyPond tweak manager.


Attributes Summary

Class Methods

setTweaks Sets tweaks on object.

Instance Methods: Special Methods

at (abjad: getattr)


Usage

  1. Tweak managers are created by the ‘abjad.tweak()’ factory function:

    FIXME ERROR: FoscLilypondGrobOverride does not respond to tweak.

    b = FoscBeam();
    t = tweak(b);           //###### CORRECT
  2. Set an attribute like this:

    t = tweak(b).color = 'red';
    t.cs;                   //###### CLOSE, BUT NOT CORRECT
  3. Example

    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;
  4. 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;


Class Methods


setTweaks

Sets tweaks on object.

  1. Example

    l = FoscLilypondLiteral("\\f", 'after', directed: true);
    FoscLilypondTweakManager.setTweaks(l, #[['color', 'blue']]);
    l.tweaks.prListFormatContributions.postln;
    [ "- \\tweak color #blue" ]
  2. Example

    l = FoscLilypondLiteral("\\f", 'after', directed: true);
    FoscLilypondTweakManager.setTweaks(l, #['color', 'blue', size, 12]);
    l.tweaks.prListFormatContributions.postln;
    [ "- \\tweak color #blue", "- \\tweak size #12" ]


Instance Methods: Special Methods


at

(abjad: getattr)