FoscStartTextSpan

Returns a FoscStartTextSpan.


Description

Attaches text span indicators.


Attributes Summary

Instance Properties

command Gets command.
concatHspaceLeft Gets left hspace.
concatHspaceRight Gets right hspace.
direction Gets direction.
enchained Returns true.
leftBrokenText Gets left broken text.
leftText Gets left text.
rightPadding Gets right padding.
rightText Gets right text.
spannerStart Is true.
style Gets style.
tweaks Gets tweaks.


Usage

  1. Attaches text span indicators.

    a = FoscStaff(FoscLeafMaker().(#[60,62,64,65], 1/4));
    x = FoscStartTextSpan(
        leftText: FoscMarkup('pont.').upright,
        rightText: FoscMarkup('tasto').upright,
        style: 'solidLineWithArrow'
    );
    a[0..].textSpanner(x);
    a.show;

  2. Strings are automatically wrapped as markups.

    a = FoscStaff(FoscLeafMaker().(#[60,62,64,65], 1/4));
    x = FoscStartTextSpan("pont.", "tasto", 'solidLineWithArrow');
    a[0..].textSpanner(x);
    // override(a).textSpanner.staffPadding = 4; // FIXME staff padding override crops spanner
    a.show;
  3. Enchained spanners.

    a = FoscStaff(FoscLeafMaker().(#[60,62,64,65,nil], 2/4));
    x = FoscStartTextSpan("pont.", style: 'solidLineWithArrow');
    a[..2].textSpanner(x);
    x = FoscStartTextSpan("tasto", "pont.", 'solidLineWithArrow');
    a[2..].textSpanner(x);
    // override(a).textSpanner.staffPadding = 4;
    a.show;


Instance Properties


command

Gets command.


concatHspaceLeft

Gets left hspace.

Only included in LilyPond output when left text is set.


concatHspaceRight

Gets right hspace.

Only included in LilyPond output when right text is set.


direction

Gets direction.


enchained

Returns true.


leftBrokenText

Gets left broken text.


leftText

Gets left text.


rightPadding

Gets right padding.


rightText

Gets right text.


spannerStart

Is true.


style

Gets style.


tweaks

Gets tweaks.