|
Opus+ Version 1.0 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopusplus.core.instruments.Instrument
public class Instrument
Class which encapsulates information pertaining to over 100 different instruments.
Constructor Summary | |
---|---|
Instrument(InstrumentId instrumentId) |
Method Summary | |
---|---|
java.lang.String |
getAbreviatedName() Returns an abbreviation for this instrument printed at the start of every stave except the first. |
ClefType |
getAlternativeClef() Returns an alternative clef to use with this instrument or null if none is suitable. |
ClefOctave |
getClefOctave() Returns the octave of the preferred clef for this instrument |
int |
getHighestPitch() Returns the highest written pitch for this instrument. |
InstrumentId |
getId() Returns the instrument identifier |
java.lang.String |
getInstrumentName() Returns the name for this instrument as printed on the first stave of the score |
int |
getLowestPitch() Returns the lowest written pitch for this instrument. |
java.lang.String |
getMidiName() Returns the name of the MIDI voice used for this instrument by Lilypond |
int |
getPlayChords() Return the number of simultaneous notes that can be sounded from this instrument. |
ClefType |
getPreferredClef() Returns the preferred clef for this instruments. |
StaveType |
getPreferredStaveType() Returns the stave type that is typically used for writing music for this instrument. |
boolean |
isArpeggio() Returns true if this instrument can do arpeggios |
boolean |
isGlissando() Returns true if this instrument can do glissando |
boolean |
isHarmonics() Returns true if this instrument can play harmonics |
boolean |
isMutes() Returns true if this instrument is capable of playing muted notes. |
boolean |
isNearBridge() Returns true if the timbre of the instrument can be changed by playing near the bridge. |
boolean |
isPizzicato() Returns true if the instrument is one that can play pizzicato |
boolean |
isSustain() Returns true if the instrument can play sustained notes. |
boolean |
isVibrato() returns true if the instrument is one which can play vibrato. |
void |
setAbreviatedName(java.lang.String abreviatedName) Sets the abbreviation for this instrument printed at the start of every stave except the first. |
void |
setAlternativeClef(ClefType clefType) Sets the alternative clef for this instance. |
void |
setArpeggio(boolean b) (Un)Sets the ability to arpeggiate for this object. |
void |
setClefOctave(ClefOctave octave) Sets the clef octave for this instance |
void |
setGlissando(boolean b) (Un)sets the ability to glissando for this object |
void |
setHarmonics(boolean b) (Un)sets the ability to play harmonics for this instance. |
void |
setHighestPitch(int i) Sets the highest pitch for this instrument |
void |
setInstrumentName(java.lang.String string) Sets the name printed before the first stave for this instrument on the score. |
void |
setLowestPitch(int i) Sets the lowest pitch for this instrument instance. |
void |
setMidiName(java.lang.String midiName) Sets the name of the MIDI voice used for this instrument by Lilypond |
void |
setMutes(boolean b) (Un)sets the ability to play muted notes. |
void |
setNearBridge(boolean b) (Un)sets the ability to change the timbre by playing near the bridge. |
void |
setPizzicato(boolean b) To pizzicato or not? |
void |
setPlayChords(int i) Sets the number of simultaneous notes that can be played by this instrument. |
void |
setPreferredClef(ClefType clefType) Changes the preferred clef for this object. |
void |
setSustain(boolean b) (Un)sets the ability to play sustained notes. |
void |
setVibrato(boolean b) (Un)sets the ability to play vibrato. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Instrument(InstrumentId instrumentId)
Method Detail |
---|
public ClefType getAlternativeClef()
public boolean isArpeggio()
public ClefOctave getClefOctave()
public boolean isGlissando()
public boolean isHarmonics()
public int getHighestPitch()
public InstrumentId getId()
public int getLowestPitch()
public java.lang.String getMidiName()
public boolean isMutes()
public boolean isNearBridge()
public boolean isPizzicato()
public int getPlayChords()
public ClefType getPreferredClef()
public StaveType getPreferredStaveType()
public java.lang.String getInstrumentName()
public boolean isSustain()
public boolean isVibrato()
public void setAlternativeClef(ClefType clefType)
public void setArpeggio(boolean b)
public void setClefOctave(ClefOctave octave)
public void setGlissando(boolean b)
public void setHarmonics(boolean b)
public void setHighestPitch(int i)
public void setLowestPitch(int i)
public void setMidiName(java.lang.String midiName)
public void setMutes(boolean b)
public void setNearBridge(boolean b)
public void setPizzicato(boolean b)
public void setPlayChords(int i)
public void setPreferredClef(ClefType clefType)
public void setInstrumentName(java.lang.String string)
public void setSustain(boolean b)
public void setVibrato(boolean b)
public java.lang.String getAbreviatedName()
public void setAbreviatedName(java.lang.String abreviatedName)
|
Opus+ Version 1.0 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |