A 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 represents three syllables (separated by white space).

val sylls =  Syllabifier("")
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)

© 2018-2019

Powered by Hydejack v8.1.1