Closed loretoparisi closed 4 years ago
Hyphens are used to mark that the syllables belong to the same word. This is necessary to compute pitch and phoneme durations from a MusicXML score.
@rafaelvalle okay, it makes sense. Which kind of hyphenations are you using?
If I refer like to PyHyphen I would get ['Hal', 'lelu', 'jah']
like in this repl:
h_en = Hyphenator('en_US')
word = 'Hallelujah'
print( h_en.syllables(word) )
# ['Hal', 'lelu', 'jah']
Thanks.
Hyphenation is done according to the music score.
@rafaelvalle thank you Rafael. So basically is based on MusicXML/midi by a musician / composer who edited the file in Finale etc. So supposed to have timestamp based lyrics, I would need polyphonic music for that lyrics (hence with words hyphenated already according to the music score and music sheet), in order to create the MusicXML file as input to the mellotron. I'm aware of recent CNN based networks to extract melody from vocals directly (hence MIDI), rather than older known methods (like Salmon MTG Melody plugin for Sonic Visualizer) or other HMM based methods).
Closing due to inactivity.
My question is about how the words in the lyric are "hyphenated" when adjusted to the pitches/notes in the xml file, like the word
Hallelujah is "hyphenated" (not the correct term indeed) in the following as
Hal ° le ° lu ° ° jah (where there is an additional note between
lu
andjah
)