Syllables

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

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