tie

Returns a tie.


Description

Attaches tie indicators.

[ ]


Usage

  1. Example

    a = FoscStaff(FoscLeafMaker().(60 ! 4, [1/4]));
    a[0..].tie;
    a.show;

  2. Ties consecutive chords if all adjacent pairs have at least one pitch in common.

    a = FoscStaff(FoscLeafMaker().(#[[60],[60,62],[62]], [1/4]));
    a[0..].tie;
    a.show;

  3. Same as example 2 but with tie above note on 2nd tie.

    a = FoscStaff(FoscLeafMaker().(#[[60],[60,62],[62]], [1/4]));
    a[0..1].tie;
    a[1..2].tie(direction: 'up');
    a.show;

  4. Enharmonics are allowed.

    a = FoscStaff(FoscLeafMaker().(#["C4", "B#3", "Dbb4"], [1/4]));
    a[0..].tie;
    a.show;

  5. Ties can be tweaked.

    a = FoscStaff(FoscLeafMaker().(60 ! 4, [1/4]));
    a[0..].tie(tweaks: #[['color', 'blue']]);
    a.show;