Syllable has a vector of
Neumes. You can create a Vector of
Syllables from a
String using the
Syllabifier object. Syllables are separated by white space; within a single syllable, neumes are separated by hyphens.
Example: the string
184.108.40.206 220.127.116.11 0.12.0.0-18.104.22.168 represents three syllables (separated by white space).
val sylls = Syllabifier("22.214.171.124 126.96.36.199 0.12.0.0-188.8.131.52") assert(sylls.size == 3)
The first syllable has one neume, a punctum.
assert (sylls(0).size == 1) assert(sylls(0).neumes(0).neumeType.get == Punctum)
The second syllable is identical, but the third syllable has two neumes (separated by a hyphen in the intial string).
assert (sylls(2).size == 2)