|
||||||||||
| 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.TuningMapDiatonic
public class TuningMapDiatonic
In a TuningMapDiatonic the cents value associated with any
degree is the sum of a cents value associated with the letter name
and the cents value associated with the accidental.
| 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 | |
|---|---|
TuningMapDiatonic(Ensemble ensemble)
Constructor for TuningMapDiatonic instances. |
|
| Method Summary | |
|---|---|
TuningElementAccidental |
createTuningElement(Accidental accidental)
Create a TuningElementAccidental instance mapping the indicated accidental to a cents displacement from the unison. |
TuningElementInflection |
createTuningElement(Inflection inflection)
Create a TuningElementInflection instance mapping the indicated inflection to a cents displacement from the unison. |
TuningElementLetter |
createTuningElement(LetterName letterName)
Create a TuningElementLetter instance mapping the indicated letter name to a cents displacement from C. |
static XmlSpec |
createXmlSpec()
Create an XML specification for the TuningMapDiatonic class. |
boolean |
equals(EnsembleEntity other)
Check if this entity has the same class and content as another entity. |
static TuningMapDiatonic |
fromXmlNode(org.w3c.dom.Element element,
Ensemble container)
Create a new TuningMapDiatonic instance from information in an XML element. |
java.util.SortedMap<java.lang.String,TuningElementAccidental> |
getAccidentals()
Get the collection of TuningElementAccidental instances. |
int |
getCents(Degree degree)
Get the cents displacement from C natural for the indicated degree. |
java.util.SortedMap<java.lang.String,TuningElementInflection> |
getInflections()
Get the collection of TuningElementInflection instances. |
java.util.SortedMap<java.lang.String,TuningElementLetter> |
getLetterNames()
Get the collection of TuningElementLetter 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 |
mapAccidentalToCents(Accidental accidental,
int cents)
Map the indicated accidental to the indicated cents value. |
void |
mapInflectionToCents(Inflection inflection,
int cents)
Map the indicated inflection to the indicated cents value. |
void |
mapLetterNameToCents(LetterName letterName,
int cents)
Map the indicated letter name 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 TuningMapDiatonic(Ensemble ensemble)
TuningMapDiatonic 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 mapLetterNameToCents(LetterName letterName,
int cents)
letterName - The indicated letter name.cents - The cents displacement from C natural.public java.util.SortedMap<java.lang.String,TuningElementLetter> getLetterNames()
TuningElementLetter instances.
TuningElementLetter instances.public java.util.SortedMap<java.lang.String,TuningElementAccidental> getAccidentals()
TuningElementAccidental instances.
TuningElementAccidental instances.
public void mapAccidentalToCents(Accidental accidental,
int cents)
accidental - The indicated accidental.cents - The cents displacement from the unison.public java.util.SortedMap<java.lang.String,TuningElementInflection> getInflections()
TuningElementInflection instances.
TuningElementInflection instances.
public void mapInflectionToCents(Inflection inflection,
int cents)
inflection - The indicated inflection.cents - The cents displacement from the unison.public TuningElementLetter createTuningElement(LetterName letterName)
TuningElementLetter instance mapping the indicated letter name to a cents displacement from C.
The default tuning is equal temperament.
letterName - The indicated letter name.
TuningElementLetter instance.public TuningElementAccidental createTuningElement(Accidental accidental)
TuningElementAccidental instance mapping the indicated accidental to a cents displacement from the unison.
The default tuning uses 100-cent increments.
accidental - The indicated accidental.
TuningElementAccidental instance.public TuningElementInflection createTuningElement(Inflection inflection)
TuningElementInflection instance mapping the indicated inflection to a cents displacement from the unison.
The default tuning uses 50-cent increments.
inflection - The indicated inflection.
TuningElementInflection instance.public void initialize()
TuningMap
initialize in class TuningMappublic int getCents(Degree degree)
TuningMap
getCents in class TuningMapdegree - The indicated degree.
public static TuningMapDiatonic fromXmlNode(org.w3c.dom.Element element,
Ensemble container)
TuningMapDiatonic instance from information in an XML element.
container - The Ensemble which will contain this TuningMapDiatonic instance.element - An XML element describing a TuningMapDiatonic instance.
TuningMapDiatonic instance.public static XmlSpec createXmlSpec()
TuningMapDiatonic class.
XmlSpec instance.
java.lang.RuntimeException - when an XmlSpec instance already exists for the TuningMapDiatonic 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 | |||||||||