Closed slychief closed 8 years ago
Aha, good catch.
It looks like the file_metadata.duration
field is not getting initialized in load_jam_audio
. This is an easy fix.
In the meantime, you can patch around this by setting the duration field manually after loading:
jam = muda.jam_pack(jam)
jam = muda.core.load_jam_audio(jam, audiofile)
jam.file_metadata.duration = librosa.get_duration(filename=audiofile)
# proceed as before
The attempt to produce a time stretch transformation to an audio file raises a type error exception due to a division by a None type.
produces the following error