Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bus error in bulk processing #13

Open
m41w4r3exe opened this issue Nov 22, 2023 · 0 comments
Open

bus error in bulk processing #13

m41w4r3exe opened this issue Nov 22, 2023 · 0 comments

Comments

@m41w4r3exe
Copy link

m41w4r3exe commented Nov 22, 2023

Thank you for the amazing library!

When trying to convert many mscz files in one process to midi, I always get error below:

[1] 67030 bus error node script.js

and the process terminates.

I am using the snippet from readme.md as below, iterating through an array of file[]:

const msczdata = fs.readFileSync(file);
const score = await WebMscore.load("mscz", msczdata, [], false);
const midi = await score.saveMidi();
fs.writeFileSync(midi_path, midi);
score.destroy();

When script is run for 10 files, no bus error is thrown. When script is run with thousands of files, it always throws.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant