Closed SilverRainZ closed 1 year ago
Ah, I didn't imagine process_input
would be called more than once.
It uses global module state for things like "which jianpu note-heads have already been defined". So if you want to call it more than once, you'll have to reload the module:
ly1 = jianpu.process_input(jp)
importlib.reload(jianpu)
ly2 = jianpu.process_input(jp)
I should probably get it to check if you're calling it a second time and raise an error to tell you to do this....
I get it, I will reload the module after every process_input
.
Thank you.
Hello, 好久不见,thank for you awesome script :D
I found my sphinx extension can only correctly generate the first score in my document, so the problem is found.
Step to reproduce:
The checksum of
ly1
andly2
are different:Diff
1.ly
and2.ly
: