|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmovements.AbcMusicPlayer
DOCUMENT ME!
| Nested Class Summary | |
private class |
AbcMusicPlayer.CachedNoteInfo
|
| Field Summary | |
(package private) int |
adjustmentToFollowingNote
If accidentals are found (sharps, flats, or naturals) then update this field to be the adjustment to make to the next note. |
private AbcMusicPlayer.CachedNoteInfo[] |
cachedNotes
|
private boolean |
fLengthenNote
|
private boolean |
fShortenNote
|
private int |
inputPosition
|
private int |
introductoryTicks
There may be introductory music that is played before the dance starts. |
private int |
irregularNoteDivider
|
private int |
irregularNoteMultiplier
|
private int |
keyAdjustment
The sharp/flat adjustment to the signature key. |
private int |
keyLetterIndex
The signature key, where 0=C thru 6=B. |
private boolean |
KFieldSpecified
|
private boolean |
LFieldSpecified
|
private int |
meterDenominator
|
private int |
meterNumerator
|
private boolean |
MFieldSpecified
|
private MusicNote[] |
music
|
private int |
musicEndTick
The number of ticks from the start of the dance (i.e. |
private static int |
NO_ADJUSTMENT
|
private int |
noteLengthDenominator
|
private int |
noteLengthNumerator
|
private java.lang.String |
notes
The input string containing the music in abc format. |
private int |
notesPerBar
|
private int |
numberOfIrregularNotes
|
private int |
numberOfNotes
|
private int[] |
scaleSemiTones
|
private int[] |
signature
This array indicates, for each letter C=0 thru B=6, whether the note is sharpened or flattened. |
private double |
startNoteBar
|
private int |
ticksPerBar
|
private int |
timesThruTheMusic
The number of times the music must be repeated to fill up the length of the dance. |
private int |
totalTicksInMusic
The number of ticks between one repeat of the music and the next repeat. |
| Constructor Summary | |
(package private) |
AbcMusicPlayer(java.lang.String notes,
int ticksPerBar,
int numberOfBarsInTheDance)
DOCUMENT ME! |
| Method Summary | |
(package private) MusicPlayer |
getMusicPlayer()
Get an object that plays the music. |
private void |
LowerCaseNote(int letterNumber)
DOCUMENT ME! |
private void |
ParseField(int endOfField)
DOCUMENT ME! |
private int |
ParseLength(int defaultValue)
Parses the length of a note. |
private void |
ParseNote(int letterIndex)
DOCUMENT ME! |
private void |
SetSignature()
Set up the signature array which indicates, for each letter, whether the note is sharpened, flattened, double sharpened etc. |
private void |
UpperCaseNote(int letterNumber)
DOCUMENT ME! |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String notes
private int ticksPerBar
private int inputPosition
private boolean MFieldSpecified
private boolean LFieldSpecified
private boolean KFieldSpecified
private int meterNumerator
private int meterDenominator
private int noteLengthNumerator
private int noteLengthDenominator
private int notesPerBar
private int keyLetterIndex
private int keyAdjustment
private int[] signature
private static final int NO_ADJUSTMENT
#adjustmentToFollowingNote.,
Constant Field Valuesint adjustmentToFollowingNote
private int introductoryTicks
private int totalTicksInMusic
private int musicEndTick
private int timesThruTheMusic
private boolean fLengthenNote
private boolean fShortenNote
private int numberOfIrregularNotes
private int irregularNoteMultiplier
private int irregularNoteDivider
private AbcMusicPlayer.CachedNoteInfo[] cachedNotes
private double startNoteBar
private MusicNote[] music
private int numberOfNotes
private int[] scaleSemiTones
| Constructor Detail |
AbcMusicPlayer(java.lang.String notes,
int ticksPerBar,
int numberOfBarsInTheDance)
throws MusicException
notes - DOCUMENT ME!ticksPerBar - DOCUMENT ME!numberOfBarsInTheDance - This is needed because if the last bar is
incomplete then the bar is filled with the introductory music.
However the introductory music is not played at the end of the
last time thru. In order to know if we are playing the tune the
last time thru, we must know the total number of bars in the
dance. Note that the total number of bars in the dance must be a
multiple of the total number of bars in the music. If it is not
then an exception is thrown.
MusicException - DOCUMENT ME!| Method Detail |
private void ParseField(int endOfField)
throws MusicException
endOfField - DOCUMENT ME!
MusicException - DOCUMENT ME!private void SetSignature()
private void UpperCaseNote(int letterNumber)
letterNumber - DOCUMENT ME!private void LowerCaseNote(int letterNumber)
letterNumber - DOCUMENT ME!private void ParseNote(int letterIndex)
letterIndex - DOCUMENT ME!private int ParseLength(int defaultValue)
defaultValue - If the next character in the input string is not a
digit then no length has been specified for this note and a
default value must be used. This parameter gives the appropriate
default value.
MusicPlayer getMusicPlayer()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||