rileyjshaw / virtuoso

:musical_keyboard: Play a .mid file at your own speed using a MIDI keyboard!
MIT License
0 stars 1 forks source link

Error getting this to run :( #1

Closed the13fools closed 8 years ago

the13fools commented 8 years ago

/Users/fool/Documents/misc/virtuoso/index.js:22 const fs = require('fs'); ^^^^^ SyntaxError: Use of const in strict mode. at Module._compile (module.js:439:25) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:906:3

when I follow the steps and then run "node index.js"

:(

the13fools commented 8 years ago

When I run "node --harmony index.js", I get other syntax errors.

const {parseMidi} = require('midi-file'); ^ SyntaxError: Unexpected token { at exports.runInThisContext (vm.js:73:16) at Module._compile (module.js:443:25) at Object.Module._extensions..js (module.js:478:10)

rileyjshaw commented 8 years ago

Which version of node are you using?

node --version

It won't work on anything below version 6, I'm afraid.

the13fools commented 8 years ago

v0.12.7

On Tue, Jun 21, 2016 at 2:42 PM, Riley Shaw notifications@github.com wrote:

Which version of node are you using?

node --version

It won't work on anything below version 6, I'm afraid.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rileyjshaw/virtuoso/issues/1#issuecomment-227533395, or mute the thread https://github.com/notifications/unsubscribe/ACMjZ6RxbQJTJbw-MX7x9snv_KcNYPPsks5qODClgaJpZM4I5OFP .

rileyjshaw commented 8 years ago

@the13fools ah, that sounds like the problem then! I just added a note to the README, let me know if it still doesn't work once you've updated node.

Out of curiosity, how'd you come across this project? :)

the13fools commented 8 years ago

Came across it on the internet - googling for midi visualization :P. Doing a hardware project that makes EL materials touch sensitive, and I was looking for something where the triggering was visually obvious.

Ended up using a different visualizer - hopefully will play with running this at some point though!

rileyjshaw commented 8 years ago

Ah, sorry this didn't end up working out for you! Your project sounds cool, hit me up with a link if you put it online! :) On Tue, Jul 5, 2016 at 16:47 Josh Vekhter notifications@github.com wrote:

Came across it on the internet - googling for midi visualization :P. Doing a hardware project that makes EL materials touch sensitive, and I was looking for something where the triggering was visually obvious.

Ended up using a different visualizer - hopefully will play with running this at some point though!

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/rileyjshaw/virtuoso/issues/1#issuecomment-230598182, or mute the thread https://github.com/notifications/unsubscribe/ABwW1mo8IrrCUVxnFA5joSG8xl1rsvVcks5qSsLugaJpZM4I5OFP .