Class: Clef

music21.clef. Clef

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

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
Source:

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
p music21.pitch.Pitch
Source:
Returns:

new pitch

Type
music21.pitch.Pitch
Music21j, Copyright © 2013-2018 Michael Scott Cuthbert and cuthbertLab.
Documentation generated by JSDoc 3.5.5 on Wed Jul 4th 2018 using the DocStrap template.