|
||||||||||
| 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.TuningMap
net.charlesames.music.ensemble.TuningMapChromatic
public class TuningMapChromatic
In a TuningMapChromatic the cents value associated with each
degree independently configurable.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.charlesames.music.ensemble.TuningMap |
|---|
TuningMap.Type |
| Nested classes/interfaces inherited from class net.charlesames.music.ensemble.EnsembleEntity |
|---|
EnsembleEntity.AttributeTable |
| Constructor Summary | |
|---|---|
TuningMapChromatic(Ensemble ensemble)
Constructor for TuningMapChromatic instances. |
|
| Method Summary | |
|---|---|
static XmlSpec |
createXmlSpec()
Create an XML specification for the TuningMapChromatic class. |
boolean |
equals(EnsembleEntity other)
Check if this entity has the same class and content as another entity. |
static TuningMapChromatic |
fromXmlNode(org.w3c.dom.Element element,
Ensemble container)
Create a new TuningMapChromatic instance from information in an XML element. |
int |
getCents(Degree degree)
Get the cents displacement from C natural for the indicated degree. |
java.util.SortedMap<java.lang.String,TuningElementDegree> |
getDegrees()
Get the collection of TuningElementDegree instances. |
TuningMap.Type |
getType()
Get the tuning map configuration. |
void |
initialize()
Fill in a minimal set of tuning elements, assuming 12 equal divisions of the octave. |
void |
mapDegreeToCents(Degree degree,
int cents)
Map the indicated degree to the indicated cents value. |
void |
wipe()
Clear all data in this Entity instance. |
| Methods inherited from class net.charlesames.music.ensemble.TuningMap |
|---|
getCentsFromMiddleC |
| Methods inherited from class net.charlesames.music.ensemble.EnsembleEntity |
|---|
buildDescription, copyToClipboard, createIndentCell, createXmlSpec, describeFeature, getContainer, getEnsemble, logError, predecessor, toString |
| Methods inherited from class net.charlesames.utility.entity.WriteableEntity |
|---|
check, 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, getPath, getReferenceCount, getStatus, getText, 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 |
| Constructor Detail |
|---|
public TuningMapChromatic(Ensemble ensemble)
TuningMapChromatic instances.
ensemble - The Ensemble that contains this tuning map.| Method Detail |
|---|
public void wipe()
EntityEntity instance.
wipe in class Entitypublic TuningMap.Type getType()
TuningMap
getType in class TuningMap
public void mapDegreeToCents(Degree degree,
int cents)
degree - The indicated degree.cents - The cents displacement from C natural.public java.util.SortedMap<java.lang.String,TuningElementDegree> getDegrees()
TuningElementDegree instances.
TuningElementDegree instances.public void initialize()
TuningMap
initialize in class TuningMappublic int getCents(Degree degree)
TuningMap
getCents in class TuningMapdegree - The indicated degree.
public static TuningMapChromatic fromXmlNode(org.w3c.dom.Element element,
Ensemble container)
TuningMapChromatic instance from information in an XML element.
container - The Ensemble which will contain this TuningMapChromatic instance.element - An XML element describing a TuningMapChromatic instance.
TuningMapChromatic instance.public static XmlSpec createXmlSpec()
TuningMapChromatic class.
XmlSpec instance.
java.lang.RuntimeException - when an XmlSpec instance already exists for the TuningMapChromatic class.public boolean equals(EnsembleEntity other)
EnsembleEntity
equals in class EnsembleEntityother - The other entity.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||