MidiWriterJS icon indicating copy to clipboard operation
MidiWriterJS copied to clipboard

Seems to hang on using the writer

Open ayunami2000 opened this issue 3 years ago • 3 comments

image image

It hangs right before the console.log(123); part and I can't figure out why. I have tested if it's hanging in the for loop but it goes through that in under a second.

The whole thing is run async if that means anything

ayunami2000 avatar Feb 12 '22 20:02 ayunami2000

I got it to work using a different library: https://github.com/dingram/jsmidgen

But I'll keep this open so you guys can patch the issue.

ayunami2000 avatar Feb 12 '22 21:02 ayunami2000

Hey @ayunami2000,

Thanks for reporting! If you could provide some reproducible code, that would help us debug this issue.

grimmdude avatar Feb 14 '22 07:02 grimmdude

Once I get home after school (~10 or so hours) I'll get details like my node version and some code to reproduce the issue.

ayunami2000 avatar Feb 14 '22 12:02 ayunami2000

I was able to reproduce this by accidentally sending a messed up duration 'T-100'.

dturner34 avatar Nov 06 '22 02:11 dturner34

Thanks @ayunami2000 & @dturner34.

I've added some validation for this which throws an error if an invalid duration is used. Hopefully that should shine some light on the issue you were having @ayunami2000.

grimmdude avatar Nov 30 '22 06:11 grimmdude