mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 19:23:59 +00:00
Faster tree parsing
This commit is contained in:
parent
9cd9e146f0
commit
3db00afc02
|
@ -7,6 +7,14 @@ require File.dirname($0)+'/plistWriter'
|
|||
require File.dirname($0)+'/vl'
|
||||
require 'rexml/document'
|
||||
|
||||
module REXML
|
||||
class XPathParser
|
||||
def get_namespace(node, prefix)
|
||||
return ''
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
XML = REXML::Document.new $stdin
|
||||
ROOT = XML.root
|
||||
OUTPUT = {}
|
||||
|
@ -111,7 +119,7 @@ def makeChord(root, steps, num, denom)
|
|||
|
||||
return chord
|
||||
end
|
||||
|
||||
|
||||
CHORDS.elements.each('measure') do |meas|
|
||||
updateProp meas
|
||||
chords = []
|
||||
|
|
Loading…
Reference in New Issue
Block a user