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
188.8.131.52 184.108.40.206 0.12.0.0-220.127.116.11 represents three syllables (separated by white space).
val sylls = Syllabifier("18.104.22.168 22.214.171.124 0.12.0.0-126.96.36.199") 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)