Skip to content

vrender throws Exception if tmp files don't exist #120

@jwmatthys

Description

@jwmatthys
>>> vrender("v1", lyrics="hey ho lets go", notes=[0,2,4,5], dur=[1,1.5,0.5,1.5])
Running voice renderization
[0, 2, 4, 5]
[1, 1.5, 0.5, 1.5]
[0, 2, 4, 5, 7, 9, 11]
[(60, 1, 100, 0), (64, 1.5, 100, 1), (67, 0.5, 100, 2.5), (69, 1.5, 100, 3.0)]
Composition:
[(60, 1, 100, 0), (64, 1.5, 100, 1), (67, 0.5, 100, 2.5), (69, 1.5, 100, 3.0)]
Traceback (most recent call last):
  File "FoxDot/lib/Code/main_lib.py", line 110, in __call__
    exec(self._compile(code), self.namespace)
  File "FoxDot", line 2, in <module>
  File "FoxDot/lib/Extensions/VRender/__init__.py", line 32, in __call__
    renderizeVoice(filename,lyrics,notes,durations,tempo,scale)
  File "FoxDot/lib/Extensions/VRender/VRender.py", line 18, in renderizeVoice
    generateVoiceSpecification(lyrics,tempo,VOICE_XML_ORIGINAL,VOICE_XML_PROCESSED)
  File "FoxDot/lib/Extensions/VRender/VoiceSpecificator.py", line 6, in generateVoiceSpecification
    with open(inputMusicXMLPath, 'r') as c:
IOError: [Errno 2] No such file or directory: 'FoxDot/lib/Extensions/VRender/tmp/last_voice.musicxml'

Maybe change the flag to r+?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions