com.softsynth.jmsl.score
Class Clef
java.lang.Object
com.softsynth.jmsl.score.Clef
public class Clef
- extends java.lang.Object
Clef.java
A Clef has one of four types, TREBLE, ALTO, TENOR, or BASS and a level
offset, used to calculate level on a staff where a Note should sit. Don't
build your own clefs, just use static Clef.TREBLE_CLEF, Clef.ALTO_CLEF,
Clef.TENOR_CLEF, Clef.BASS_CLEF.
JMSL Notation Project
- Author:
- Nick Didkovsky, copyright 2000 Nick Didkovsky
Constructor Summary |
Clef(int clefType,
int clefLevelOffset)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TREBLE
public static final int TREBLE
- See Also:
- Constant Field Values
ALTO
public static final int ALTO
- See Also:
- Constant Field Values
TENOR
public static final int TENOR
- See Also:
- Constant Field Values
BASS
public static final int BASS
- See Also:
- Constant Field Values
PERCUSSION
public static final int PERCUSSION
- See Also:
- Constant Field Values
TREBLE_CLEF
public static Clef TREBLE_CLEF
ALTO_CLEF
public static Clef ALTO_CLEF
TENOR_CLEF
public static Clef TENOR_CLEF
BASS_CLEF
public static Clef BASS_CLEF
PERCUSSION_CLEF
public static Clef PERCUSSION_CLEF
CLEF_ARRAY
public static Clef[] CLEF_ARRAY
copyright
public static final java.lang.String copyright
- See Also:
- Constant Field Values
Clef
public Clef(int clefType,
int clefLevelOffset)
getClefType
public int getClefType()
- Returns:
- TREBLE, ALTO, TENOR, or BASS
getClefLevelOffset
public int getClefLevelOffset()
- Returns:
- level offset on staff compared to treble clef whose offset == 0
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
main
public static void main(java.lang.String[] args)