FoscGraceContainer

Returns a FoscGraceContainer.


Description

Grace container.

LilyPond formats grace notes with neither a slash nor a slur.

Fill grace containers with notes, rests or chords.

Attach grace containers to notes, rests or chords.

[ ]


Usage

  1. Grace notes.

    a = FoscStaff(FoscLeafMaker().(#[60,62,64,65], [1/4]));
    c = FoscGraceContainer([FoscNote(60, 1/16), FoscNote(62, 1/16)]);
    c[0].attach(FoscArticulation('>'));
    a[2].attach(c);
    a.show;

  2. Slashed grace note.

    a = FoscStaff(FoscLeafMaker().(#[60,62,64,65], [1/4]));
    c = FoscGraceContainer([FoscNote(60, 1/8)], slashed: true);
    c[0].attach(FoscArticulation('>'));
    a[2].attach(c);
    a.show;

  3. Slurred grace note.

    a = FoscStaff(FoscLeafMaker().(#[60,62,64,65], [1/4]));
    c = FoscGraceContainer([FoscNote(60, 1/8)], slurred: true);
    c[0].attach(FoscArticulation('>'));
    a[2].attach(c);
    a.show;

  4. Slashed and slurred grace note.

    a = FoscStaff(FoscLeafMaker().(#[60,62,64,65], [1/4]));
    c = FoscGraceContainer([FoscNote(60, 1/8)], slashed: true, slurred: true);
    c[0].attach(FoscArticulation('>'));
    a[2].attach(c);
    a.show;