Returns a FoscClef.
A clef
| *clefNames | Array of all clef names. |
| *fromSelection | !!!TODO |
| context | Gets context. Staff by default. |
| hide | Is true when clef should not appear in output (but should still determine effective clef). |
| middleCPosition | !!!TODO: not yet implemented |
| name | Gets name of clef. |
| parameter | Is true. |
| redraw | Is true. |
| tweaks | Tweaks are not implemented on clef. |
| format | Formats clef. |
Some available clefs.
FIXME: ERROR: Message ‘+’ not understood.
a = FoscStaff(FoscLeafMaker().(#[60,62,64,65,67,69,71,72], [1/8]));
c = #['treble','alto','bass','treble^8','bass_8','tenor','bass^15','percussion'];
c.do { |name, i| a[i].attach(FoscClef(name)) };
a.show;!!!TODO: tags not yet implemented
Clefs can be tagged.
a = FoscStaff(FoscLeafMaker().(#[60,62,64,65], [1/4]));
m = FoscClef('bass');
a[0].attach(m, tag: 'RED');
a.show;
Array of all clef names.
Example
FoscClef.clefNames.postln;[ 'alto', 'baritone', 'bass', 'french', 'mezzosoprano', 'percussion', 'soprano', 'tab', 'tenor', 'treble', 'varbaritone' ]!!!TODO
Gets context. Staff by default.
Example
a = FoscClef('treble');
a.context.postln;'Staff'Is true when clef should not appear in output (but should still determine effective clef).
Example
a = FoscStaff(FoscLeafMaker().(#[60,62,64,65], [1/4]));
m = FoscClef('treble', hide: true);
a[0].attach(m);
a.show;
!!!TODO: not yet implemented
Gets middle C position of clef.
Example
a = FoscClef('treble');
a.middleCPosition.postcs;FoscStaffPosition(-6)Example
a = FoscClef('alto');
a.middleCPosition.postcs;FoscStaffPosition(0)Gets name of clef.
Example
a = FoscClef('treble');
a.name.postln;trebleIs true.
Example
a = FoscClef('treble');
a.parameter.postln;trueIs true.
Example
a = FoscClef('treble');
a.redraw.postln;trueTweaks are not implemented on clef.
The LilyPond ‘’ command refuses tweaks.
Override the LilyPond Clef grob instead.
Formats clef.
Returns string.
Example
a = FoscClef('treble');
a.format;\clef "treble"