FoscRepeat

Returns a FoscRepeat.


Description

Repeat


Attributes Summary

Instance Properties

context Gets context.
repeatCount Gets repeat count of repeat.
repeatType Gets repeat type of repeat.
tweaks Tweaks are not implemented on repeat.

Instance Methods: Special Methods

str Gets string representation of repeat


Usage

  1. Volta repeat.

    a = FoscStaff(FoscLeafMaker().(#[60,62,64,65], [1/4]));
    m = FoscRepeat();
    a.attach(m);
    a.show;

  2. Unfold repeat.

    a = FoscContainer(FoscLeafMaker().(#[60,62,64,65], [1/4]));
    m = FoscRepeat(repeatCount: 3, repeatType: 'unfold');
    a.attach(m);
    b = FoscScore([a]);
    b.show;


Instance Properties


context

Gets context.

  1. Example

    m = FoscRepeat();
    m.context.postcs;
    'Score'


repeatCount

Gets repeat count of repeat.

  1. Example

    m = FoscRepeat();
    m.repeatCount.postcs;
    2


repeatType

Gets repeat type of repeat.

  1. Example

    m = FoscRepeat();
    m.repeatType.postcs;
    'volta'


tweaks

Tweaks are not implemented on repeat.

The LilyPond command refuses tweaks.

Override the LilyPond BarLine grob instead.


Instance Methods: Special Methods


str

Gets string representation of repeat

  1. Example

    m = FoscRepeat();
    m.str.cs;
    "\\repeat volta 2"