new Clef(name, octaveChange)
Clefname can be one of
"treble", "bass", "soprano", "mezzo-soprano", "alto", "tenor", "percussion"
Parameters:
| Name | Type | Argument | Default | Description |
|---|---|---|---|---|
name |
string | clef name |
||
octaveChange |
Int |
<optional> |
0 | ottava |
- Source:
Properties:
| Name | Type | Description |
|---|---|---|
name |
string | undefined | |
lowestLine |
Int | diatonicNoteNum (C4 = 29) for the lowest line (in a five-line staff) |
lowestLineTrebleOffset |
Int | difference between the first line of this staff and the first line in treble clef |
octaveChange |
Int |
Extends
Methods
-
<static> Clef#convertPitchToTreble(p) → {music21.pitch.Pitch}
-
returns a new pitch object if the clef name is not Treble
designed so it would look the same as it would in treble clef.
for instance, bass-clef 2nd-space C# becomes treble clef 2nd-space A#
used for Vex.Flow which requires all pitches to be input as if they
are in treble clef.Parameters:
Name Type Description pmusic21.pitch.Pitch - Source:
Returns:
new pitch
- Type
- music21.pitch.Pitch