foreach my $staff ($doc->findnodes('/museScore/Score/Staff')) {
my ($sigN, $sigD); # current time sig values (may be needed later)
my $syllabic = 0; # track syllabic mode (whether we are in the middle of a word in lyrics).
+
display($staff) if $dbg;
+
foreach my $measure ($staff->findnodes('./Measure')) {
my $lens;
$lens = "$t/$b";
$l->setValue($lens);
}
+
# process nodes
foreach my $node ($measure->findnodes('./*')) {
if ($node->nodeType == XML_ELEMENT_NODE) {