FoscComponent

Returns a FoscComponent.


Description

A component


Attributes Summary

Instance Properties

startOffsetInSeconds Gets start offset in seconds. If no effective metronome mark is found, tempo is set to 1/4 = 60.
stopOffsetInSeconds Gets stop offset in seconds. If no effective metronome mark is found, tempo is set to 1/4 = 60.
tag Gets component tag.

Instance Methods: Special Methods

asCompileString Gets interpreter representation.
copy Shallow copies component.
format Formats component.
illustrate Illustrates component.
storeArgs (abjad: getnewargs)


Instance Properties


startOffsetInSeconds

Gets start offset in seconds. If no effective metronome mark is found, tempo is set to 1/4 = 60.


stopOffsetInSeconds

Gets stop offset in seconds. If no effective metronome mark is found, tempo is set to 1/4 = 60.


tag

Gets component tag.


Instance Methods: Special Methods


asCompileString

Gets interpreter representation.

Subclass responsibility.


copy

Shallow copies component.

Copies indicators.

Does not copy spanners.

Does not copy children.

Returns new component.

  1. Example

    a = FoscStaff(FoscLeafMaker().(#[60,62,64,65], [1/12,1/12,1/12,1/4]));
    b = a.copy;
    b.components;
    [  ]
  2. Copy with children

    a = FoscStaff(FoscLeafMaker().(#[60,62,64,65], [1/12,1/12,1/12,1/4]));
    b = a.prCopyWithChildren;
    b.components;
    [ FoscTuplet(FoscMultiplier(2, 3), [  ]), FoscNote(FoscPitch("F4"), FoscDuration(1, 4)) ]
    b.show;

    a.doComponents { |each| each.postln };
    FoscStaff([  ], 'Staff', false)
    b.doComponents { |each| each.postln };
    FoscStaff([  ], 'Staff', false)


format

Formats component.

Returns string.


illustrate

Illustrates component.

Returns LilyPond file.

  1. Example

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


storeArgs

(abjad: getnewargs)

Gets new arguments.

Returns array.