blairjordan / pianoboi

🎹 A desktop app for displaying live sheet music from MIDI input.
MIT License
98 stars 22 forks source link

Node version #7

Open og2t opened 5 years ago

og2t commented 5 years ago

Hi! Which node.js version are you using? I am getting this error message:

Uncaught Error: The module '/Users/tomek.augustyn/Repos/pianoboi/node_modules/midi/build/Release/midi.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 67. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:160:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:722)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:160:31)
    at Module.load (internal/modules/cjs/loader.js:602)
    at tryModuleLoad (internal/modules/cjs/loader.js:541)
    at Function.Module._load (internal/modules/cjs/loader.js:533)
    at Module.require (internal/modules/cjs/loader.js:640)
    at require (internal/modules/cjs/helpers.js:20)
    at bindings (/Users/tomek.augustyn/Repos/pianoboi/node_modules/bindings/bindings.js:76)
    at Object.<anonymous> (/Users/tomek.augustyn/Repos/pianoboi/node_modules/midi/midi.js:1)
blairjordan commented 5 years ago

I'll try to reproduce this when I get home, but did you try re-compiling the module, as the error suggests? npm rebuild midi --update-binary

og2t commented 5 years ago

Got it working but it shows this when it runs (no errors though). How can I open a midi file?

Screenshot 2019-06-02 at 21 16 36
blairjordan commented 5 years ago

Upgraded this project to compile with Node v12.4.0

@og2t Your issue is likely caused by no midi inputs, e.g., a MIDI keyboard. I need to add functionality to manage inputs.

I haven't implemented anything to read in files directly. You could setup a virtual MIDI bus to achieve this with Pianoboi. The problem with files is they usually have lots of channels, which then requires a way to filter/ combine them. I'd go for a more full-fledged MIDI app if this is your intended purpose.

blairjordan commented 5 years ago

@og2t Actually, had a look at a few libraries. This actually seems quite easy. If you send me a link to your midi file(s) I can test with these.