|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectabc.notation.Tune
This class encapsulates all information retrieved from a tune transcribed using abc notation : header and music.
Nested Class Summary | |
class |
Tune.Score
|
Constructor Summary | |
Tune()
Creates a new empty tune. |
Method Summary | |
void |
addHistory(java.lang.String history)
Adds historical information about the tune. |
void |
addTitle(java.lang.String title)
Adds a title to this tune. |
void |
addTranscriptionNotes(java.lang.String transciptionNotes)
Adds notes about transcription of this tune. |
Part |
createPart(char partLabel)
Creates a new part in this tune and returns it. |
java.lang.String |
getArea()
Returns the area where this tune comes from. |
java.lang.String |
getBook()
Returns the list of publications where this tune can be found. |
java.lang.String |
getComposer()
Returns the composer of this tune. |
java.lang.String |
getDiscography()
Returns recordings where this tune appears. |
int |
getElemskip()
|
java.lang.String |
getGroup()
|
java.lang.String |
getHistory()
Returns historical information about the tune. |
java.lang.String |
getInformation()
Returns additional information about the tune. |
KeySignature |
getKey()
Returns the key signature of this tune. |
MultiPartsDefinition |
getMultiPartsDefinition()
Returns the multi parts definition of this tune. |
java.lang.String |
getNotes()
Returns notes concerning the transcription of this tune. |
java.lang.String |
getOrigin()
Returns the origin of this tune. |
Part |
getPart(char partLabel)
Returns the part of the tune identified by the given label. |
int |
getReferenceNumber()
Returns the reference number of this tune. |
java.lang.String |
getRhythm()
Returns the rhythm of this tune. |
Tune.Score |
getScore()
Returns the score of this tune. |
java.lang.String |
getSource()
Returns the source of this tune. |
java.lang.String[] |
getTitles()
Returns the titles of this tune. |
java.lang.String |
getTranscriptionNotes()
Returns transcription notes of this tune. |
void |
removeTitle(java.lang.String title)
Removes one the titles of this tune. |
void |
setArea(java.lang.String area)
Sets the geographic area where this tune comes from. |
void |
setBook(java.lang.String book)
Sets the list of publications where this tune can be found. |
void |
setComposer(java.lang.String composer)
Sets the composer of this tune. |
void |
setDiscography(java.lang.String discography)
Sets recordings where this tune appears. |
void |
setElemskip(int value)
|
void |
setGroup(java.lang.String value)
|
void |
setInformation(java.lang.String information)
Sets additional information about the tune. |
void |
setMultiPartsDefinition(MultiPartsDefinition multiPartsDef)
Sets the multi parts definition of this tune. |
void |
setNotes(java.lang.String notes)
Sets notes concerning the transcription of this tune. |
void |
setOrigin(java.lang.String origin)
Sets the origin of this tune. |
void |
setReferenceNumber(int id)
Sets the reference number of this tune. |
void |
setRhythm(java.lang.String rhythm)
Sets the rhythm of this tune. |
void |
setSource(java.lang.String source)
Sets the source of this tune. |
java.lang.String |
toString()
Returns a string representation of this tune. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Tune()
Method Detail |
public void setArea(java.lang.String area)
area
- The area where this tune comes from.public java.lang.String getArea()
public void setBook(java.lang.String book)
book
- The book where this tune comes from.public java.lang.String getBook()
public void setComposer(java.lang.String composer)
composer
- The composer who wrotes this tune.
For tunes known as traditional, you can use "traditional"
as parameter so that that people don't think the composer
has just been ignored.public java.lang.String getComposer()
public void setDiscography(java.lang.String discography)
discography
- Recordings where this tune appears.public java.lang.String getDiscography()
public void setElemskip(int value)
public int getElemskip()
public void setGroup(java.lang.String value)
public java.lang.String getGroup()
public void addHistory(java.lang.String history)
history
- Historical information about
the tune to be added.public java.lang.String getHistory()
public KeySignature getKey()
public void setInformation(java.lang.String information)
information
- Additional information about the tune.public java.lang.String getInformation()
public void setNotes(java.lang.String notes)
notes
- Notes concerning the transcription of this tune.public java.lang.String getNotes()
public void setOrigin(java.lang.String origin)
origin
- Origin of this tune : place or a person
that the music came from. N.B: For a person, setSource
is probably better.setSource(java.lang.String)
public java.lang.String getOrigin()
public Part getPart(char partLabel)
partLabel
- A part label.
public Part createPart(char partLabel)
partLabel
- The label defining this new tune part.
public void setMultiPartsDefinition(MultiPartsDefinition multiPartsDef)
multiPartsDef
- The multi parts definition of this tune : defines
how parts should be played.public MultiPartsDefinition getMultiPartsDefinition()
public void setRhythm(java.lang.String rhythm)
rhythm
- Type of rhythm of this tune.getRhythm()
public java.lang.String getRhythm()
setRhythm(java.lang.String)
public void setSource(java.lang.String source)
source
- The source of this tune (place where
it has been collected for ex).public java.lang.String getSource()
public void addTitle(java.lang.String title)
title
- A title for this tune.public void removeTitle(java.lang.String title)
title
- The title to be removed of this tune.public java.lang.String[] getTitles()
public void setReferenceNumber(int id)
id
- The reference number of this tune.public int getReferenceNumber()
public void addTranscriptionNotes(java.lang.String transciptionNotes)
transciptionNotes
- notes about about who did the ABC
transcription : email addresses and URLs are appropriate here,
and other contact information such as phone numbers or postal
addresses may be included.public java.lang.String getTranscriptionNotes()
public Tune.Score getScore()
getPart(char)
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |