|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--MusicGraph | +--Subgraph | +--SeqSubgraph
A sequential subgraph represents a string of music vertices which follow immediately upon each other inside the mother graph of the sequential subgraph.
Field Summary |
Fields inherited from class Subgraph |
mothergraph |
Fields inherited from class MusicGraph |
edges, title, vertices |
Constructor Summary | |
SeqSubgraph(MusicVertex mv,
MotherGraph mother)
Constructs a SeqSubgraph with only one MusicVertex in
it. |
|
SeqSubgraph(java.lang.String t,
MotherGraph mother)
Neutral constructor for subgraphing. |
Method Summary | |
java.lang.Object |
clone()
Performs a shallow clone of this sequential subgraph. |
jm.music.data.Score |
convertToScore()
Converts this SeqSubgraph to a Score; includes only notes in this subgraph. |
void |
extend(int times)
Extends this subgraph by randomly adding to it a MusicVertex which, in the mother graph, is connected to
either the sink or the source of this sequential subgraph. |
void |
extendLeft(int times)
Extends this sequential subgraph to the left. |
void |
extendRight(int times)
Extends this sequential subgraph to the right. |
int[][] |
getDistanceArrays()
Returns arrays of the minimum and maximum distances from and to the beginning and end of the MotherGraph of all vertices in this sequential subgraph. |
int |
getLeftExtensibility()
Returns how many times this Subgraph may be extended to the left. |
int |
getMaximalSequentialSubgraphSize()
Simply returns the size of this subgraph, since it is already sequential, and its maximal sequential subgraph therefore has the same size. |
double |
getMothergraphCoverage()
Deprecated. Not used anymore. |
MusicEdge[] |
getMusicEdgeArray()
Returns the edges contained in this sequential subgraph in an array rather than the Vector 'edges' in which they are contained in the superclass MusicGraph . |
MusicVertex[] |
getMusicVertexArray()
Returns the vertices contained in this sequential subgraph in an array rather than the Vector 'vertices' in which they are contained in the superclass MusicGraph . |
int[] |
getNameArray()
Returns an array of the pitch spelling names of notes represented by vertices in this sequential subgraph; NB: Should only be used when diatonic data is available |
NoteInfo[] |
getNoteInfoArray()
Returns the nested noteinfos. |
int[] |
getOctaveArray()
Returns an array of the octaves of notes represented by vertices in this sequential subgraph; NB: Should only be used when diatonic data is available |
int[] |
getPitchArray()
Returns an array of the pitch values of notes represented by vertices in this sequential subgraph. |
int[] |
getPitchClassArray()
Returns an array of the pitch class values of notes represented by vertices in this sequential subgraph. |
double[] |
getRhythmArray()
Returns an array of the length of notes represented by vertices in this sequential subgraph. |
int |
getRightExtensibility()
Returns how many times this Subgraph may be extended to the right. |
int |
numberOfLeftmostRests()
Deprecated. Not used anymore. |
int |
numberOfRightmostRests()
Deprecated. Not used anymore. |
void |
shorten(int times)
Shortens this subgraph by removing either the source or the sink of this sequential subgraph and the edge that connected it to the rest of this subgraph. |
void |
shortenLeft(int times)
Shortens this sequential subgraph to the left. |
void |
shortenRight(int times)
Shortens this sequential subgraph to the right. |
void |
slide(int times)
Slides this sequential subgraph a number of times to the left or right. |
void |
slideLeft(int times)
Slides this sequential subgraph to the left. |
void |
slideRight(int times)
Slides this sequential subgraph to the right. |
java.lang.String |
toString()
Returns a string with the toString's of all vertices and edges in this MusicGraph. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SeqSubgraph(java.lang.String t, MotherGraph mother)
public SeqSubgraph(MusicVertex mv, MotherGraph mother)
MusicVertex
in
it.
Method Detail |
public java.lang.Object clone()
clone
in class MusicGraph
public java.lang.String toString()
MusicGraph
toString
in class Subgraph
public MusicVertex[] getMusicVertexArray()
MusicGraph
.
public MusicEdge[] getMusicEdgeArray()
MusicGraph
.
public NoteInfo[] getNoteInfoArray()
public int[] getPitchArray()
public double[] getRhythmArray()
public int[] getPitchClassArray()
public int[][] getDistanceArrays()
public int[] getNameArray()
public int[] getOctaveArray()
public void slideLeft(int times) throws java.lang.Exception
java.lang.Exception
public void slideRight(int times) throws java.lang.Exception
java.lang.Exception
public void extendLeft(int times) throws java.lang.Exception
java.lang.Exception
public void extendRight(int times) throws java.lang.Exception
java.lang.Exception
public void shortenLeft(int times) throws java.lang.Exception
java.lang.Exception
public void shortenRight(int times) throws java.lang.Exception
java.lang.Exception
public int getLeftExtensibility()
getLeftExtensibility
in class Subgraph
public int getRightExtensibility()
getRightExtensibility
in class Subgraph
public void extend(int times) throws java.lang.Exception
MusicVertex
which, in the mother graph, is connected to
either the sink or the source of this sequential subgraph. The
edge connecting them is also added.
extend
in class Subgraph
java.lang.Exception
public void shorten(int times) throws java.lang.Exception
shorten
in class Subgraph
java.lang.Exception
public void slide(int times) throws java.lang.Exception
slide
in class Subgraph
java.lang.Exception
public jm.music.data.Score convertToScore()
convertToScore
in class MusicGraph
public int getMaximalSequentialSubgraphSize()
getMaximalSequentialSubgraphSize
in class MusicGraph
public double getMothergraphCoverage()
getMothergraphCoverage
in class Subgraph
public int numberOfLeftmostRests()
numberOfLeftmostRests
in class Subgraph
public int numberOfRightmostRests()
numberOfRightmostRests
in class Subgraph
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |