public interface MetricalLpcfgNode
MetricalLpcfgNode
represents a node in the tree of the metrical lpcfg.
Each node can be either a terminal (MetricalLpcfgTerminal
) or a non-terminal
(MetricalLpcfgNonterminal
).Modifier and Type | Method and Description |
---|---|
MetricalLpcfgNode |
deepCopy()
Get a deep copy of this node.
|
MetricalLpcfgHead |
getHead()
Get the head of this lpcfg node.
|
int |
getLength()
Get the length of this node, measured in sub beats.
|
MetricalLpcfgTerminal |
getTerminal()
Get the terminal at this level of the tree.
|
boolean |
isEmpty()
Get if this node is empty or not.
|
boolean |
startsWithRest()
Get if this node starts with a REST or not.
|
java.lang.String |
toStringPretty(int depth,
java.lang.String tab)
Print the given node recursively in a pretty format.
|
MetricalLpcfgHead getHead()
int getLength()
MetricalLpcfgTerminal getTerminal()
boolean isEmpty()
boolean startsWithRest()
MetricalLpcfgNode deepCopy()
java.lang.String toStringPretty(int depth, java.lang.String tab)
depth
- The depth of this node.tab
- The tab String to indent tree levels.