Returns a FoscRehearsalMark.
Rehearsal mark.
| context | Gets context of rehearsal mark. Returns Score. |
| markup | Gets rehearsal mark markup. |
| number | Gets rehearsal mark number. |
| tweaks | Gets tweaks. |
| copy | Copies rehearsal mark. |
| str | Gets string representation of rehearsal mark. |
Initialize from number.
a = FoscStaff(FoscLeafMaker().(#[60,62,64,65], [1/4]));
a = FoscScore([a]);
m = FoscRehearsalMark(number: 1);
a.leafAt(0).attach(m);
set(a).markFormatter = FoscScheme('format-mark-box-alphabet');
a.show;
Initialize from markup.
a = FoscStaff(FoscLeafMaker().(#[60,62,64,65], [1/4]));
a = FoscScore([a]);
m = FoscRehearsalMark(markup: 'A1');
a.leafAt(0).attach(m);
a.show;
Reharsal mark can be tweaked when markup is not nil.
a = FoscStaff(FoscLeafMaker().(#[60,62,64,65], [1/4]));
a = FoscScore([a]);
m = FoscRehearsalMark(markup: "A1", tweaks: #['color', 'blue']);
a.leafAt(0).attach(m);
a.show;
Tweaks have no effect when markup is nil.
a = FoscStaff(FoscLeafMaker().(#[60,62,64,65], [1/4]));
a = FoscScore([a]);
m = FoscRehearsalMark(number: 1, tweaks: #['color', 'blue']);
a.leafAt(0).attach(m);
a.show;
Gets context of rehearsal mark. Returns Score.
Example
m = FoscRehearsalMark(number: 1);
m.context.postcs;'Score'Gets rehearsal mark markup.
Example
m = FoscRehearsalMark(markup: FoscMarkup("A1"));
m.markup.postcs;FoscMarkup("A1")Gets rehearsal mark number.
Example
m = FoscRehearsalMark(number: 1);
m.number.postln;1Gets tweaks.
Example
m = FoscRehearsalMark(number: 1, tweaks: #[['color', 'red']]);
m.tweaks.postcs;FoscLilypondTweakManager().prSetState(('color': red))Copies rehearsal mark.
Gets string representation of rehearsal mark.
Example
m = FoscRehearsalMark(number: 1);
m.str;\mark #1