Returns a FoscStaffPosition.
Staff position
| number | |
| toPitch | Makes named pitch from staff position and clef. |
| == | Is true when object is a staff position with the same number as this staff position. |
| < | Is true when staff position is less than object. |
| asCompileString | |
| hash | !!!TODO: not yet implemented |
| str |
Makes named pitch from staff position and clef.
Treble clef.
(-6..5).collect { |i| FoscStaffPosition(i).toPitch('treble').str };[ "c'", "d'", "e'", "f'", "g'", "a'", "b'", "c''", "d''", "e''", "f''", "g''" ]Bass clef.
(-6..5).collect { |i| FoscStaffPosition(i).toPitch('bass').str };[ "e,", "f,", "g,", "a,", "b,", "c", "d", "e", "f", "g", "a", "b" ]Alto clef.
(-6..5).collect { |i| FoscStaffPosition(i).toPitch('alto').str };[ "d", "e", "f", "g", "a", "b", "c'", "d'", "e'", "f'", "g'", "a'" ]Percussion clef.
(-6..5).collect { |i| FoscStaffPosition(i).toPitch('percussion').str };[ "d", "e", "f", "g", "a", "b", "c'", "d'", "e'", "f'", "g'", "a'" ]Is true when object is a staff position with the same number as this staff position.
Is true when staff position is less than object.
!!!TODO: not yet implemented
Example
a = FoscStaffPosition(1);
a.str;FoscStaffPosition(1)