|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.charlesames.utility.common.Disposable
net.charlesames.utility.entity.Entity
net.charlesames.utility.entity.WriteableEntity
net.charlesames.music.ensemble.EnsembleEntity
net.charlesames.music.ensemble.ContainerOfInstrumentLinks
net.charlesames.music.ensemble.UnpitchedSound
public class UnpitchedSound
An UnpitchedSound object maps a Pitch to details controlling the musical sound.
The parent of an UnpitchedSound is always an UnpitchedSound.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.charlesames.music.ensemble.EnsembleEntity |
|---|
EnsembleEntity.AttributeTable |
| Method Summary | |
|---|---|
boolean |
check(HtmlBuilder builder)
Check this component for errors and inconsistencies |
UnpitchedIndication |
createUnpitchedIndication(Indication indication)
Add the specified MusicXML indication to the sound. |
static XmlSpec |
createXmlSpec()
Create an XML specification for the UnpitchedSound class. |
boolean |
equals(EnsembleEntity other)
Check if this entity has the same class and content as another entity. |
static UnpitchedSound |
fromXmlNode(org.w3c.dom.Element element,
EnsembleInstrument instrument)
Create a new UnpitchedSound instance and fill it with loaded data. |
EnsembleInstrument |
getContainer()
Getter for the Container property. |
Ensemble |
getEnsemble()
Get the Ensemble which sits on top of the current object hierarchy. |
EnsembleInstrument |
getInstrument()
Getter for the EnsembleInstrument which either this is or this is contained by. |
int |
getMidiKey()
Getter for the {code MidiKey} property. |
NoteheadShape |
getNotehead()
Getter for the Notehead property. |
java.lang.String |
getPath()
Return a description of this entity and its containers. |
Pitch |
getPitch()
Getter for the Pitch property. |
java.lang.String |
getText()
Return a unique description of this entity. |
java.util.SortedMap<java.lang.String,UnpitchedIndication> |
getUnpitchedIndications()
Get the collection of indications. |
boolean |
hasIndication(Indication indication)
Test if the sound possesses the specified indication. |
void |
removeIndication(Indication indication)
Remove the specified MusicXML indication from the sound. |
void |
setGeneralMidiPercussionSound(GeneralMidiPercussionSound sound)
Set the name and MIDI key from the indicated GeneralMidiPercussionSound option. |
void |
setMidiKey(int value)
Setter for the {code MidiKey} property. |
void |
setNotehead(NoteheadShape value)
Setter for the Notehead property. |
void |
wipe()
Clear all data in this Entity instance. |
| Methods inherited from class net.charlesames.music.ensemble.ContainerOfInstrumentLinks |
|---|
addInstrumentLink, checkNewInstrumentLinkID, getDefaultInstrumentLinkID, getInstrumentLinks, isUnpitched, removeInstrumentLink, resequenceInstrumentLinks, shiftInstrumentLinkDown, shiftInstrumentLinksDown, shiftInstrumentLinkUp |
| Methods inherited from class net.charlesames.music.ensemble.EnsembleEntity |
|---|
buildDescription, copyToClipboard, createIndentCell, createXmlSpec, describeFeature, logError, predecessor, toString |
| Methods inherited from class net.charlesames.utility.entity.WriteableEntity |
|---|
clearXmlSpecs, createXmlSpec, getTagName, getXmlData, getXmlSpec, getXmlSpec, initializeXsd, isPersistent, logError, logError, makeDirty, putXmlData, save, setID, setName, setPersistent, setStatus, toXmlNode |
| Methods inherited from class net.charlesames.utility.entity.Entity |
|---|
decrementReferenceCount, dereferenceHandle, dispose, equals, getHandle, getID, getName, getReferenceCount, getStatus, hasContainer, incrementReferenceCount, isModifiable, methodHasOverride, predecessor, resequenceEntities, setContainer, setModifiable, shiftEntitiesDown, shiftEntityDown, shiftEntityUp, successor |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public EnsembleInstrument getContainer()
EntityContainer property.
getContainer in class EnsembleEntityContainer value.public EnsembleInstrument getInstrument()
ContainerOfInstrumentLinksEnsembleInstrument which either this is or this is contained by.
getInstrument in class ContainerOfInstrumentLinksEnsembleInstrument which either this is or this is contained by.public Pitch getPitch()
Pitch property.
Pitch value.public int getMidiKey()
public void setMidiKey(int value)
value - The intended {code MidiKey} value.public java.lang.String getPath()
Entity
getPath in interface EntityContainergetPath in class Entitypublic Ensemble getEnsemble()
EnsembleEntityEnsemble which sits on top of the current object hierarchy.
getEnsemble in class EnsembleEntitypublic NoteheadShape getNotehead()
Notehead property.
Notehead value.public void setNotehead(NoteheadShape value)
Notehead property.
value - The intended Notehead value.public void setGeneralMidiPercussionSound(GeneralMidiPercussionSound sound)
GeneralMidiPercussionSound option.
sound - The indicated GeneralMidiPercussionSound option.public java.util.SortedMap<java.lang.String,UnpitchedIndication> getUnpitchedIndications()
UnpitchedIndication instances, sorted by indication name.public boolean hasIndication(Indication indication)
indication - The specified indication.
public UnpitchedIndication createUnpitchedIndication(Indication indication)
indication - The specified MusicXML indication.
UnpitchedIndication instance wrapping the specified MusicXML indication.
ObjectAlreadyExistsException - if the sound already contains the specified indication.public void removeIndication(Indication indication)
indication - The specified MusicXML indication.
NoSuchObjectException - if the sound does not contain the specified indication.public boolean check(HtmlBuilder builder)
check in class ContainerOfInstrumentLinksbuilder - Accumulates an HTML formatted record of each error or inconsistency found.
public java.lang.String getText()
Entity
getText in class Entitypublic void wipe()
EntityEntity instance.
wipe in class ContainerOfInstrumentLinks
public static UnpitchedSound fromXmlNode(org.w3c.dom.Element element,
EnsembleInstrument instrument)
element - The XML element that provides the {code UnpitchedSound} datainstrument - The {link UnpitchedSound} which will contain the new {code UnpitchedSound}.
public static XmlSpec createXmlSpec()
UnpitchedSound class.
XmlSpec instance.
java.lang.RuntimeException - when an XmlSpec instance already exists for the UnpitchedSound class.public boolean equals(EnsembleEntity other)
EnsembleEntity
equals in class ContainerOfInstrumentLinksother - The other entity.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||