com.softsynth.jmsl.score
Class Clef

java.lang.Object
  extended by 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

Field Summary
static int ALTO
           
static Clef ALTO_CLEF
           
static int BASS
           
static Clef BASS_CLEF
           
static Clef[] CLEF_ARRAY
           
static java.lang.String copyright
           
static int PERCUSSION
           
static Clef PERCUSSION_CLEF
           
static int TENOR
           
static Clef TENOR_CLEF
           
static int TREBLE
           
static Clef TREBLE_CLEF
           
 
Constructor Summary
Clef(int clefType, int clefLevelOffset)
           
 
Method Summary
 int getClefLevelOffset()
           
 int getClefType()
           
static void main(java.lang.String[] args)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Clef

public Clef(int clefType,
            int clefLevelOffset)
Method Detail

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)