stevenleeg / launchpadder

A library for making the Novation Launchpad incredibly easy to play with.
44 stars 7 forks source link

need help getting started #3

Closed sintaxi closed 10 years ago

sintaxi commented 10 years ago

Thanks for creating this library. I'm just trying to get started with it and I keep getting this error when trying to connect. Can you give me some direction? Thanks.

/Users/sintaxi/Documents/Node/Sandbox/launchpad/node_modules/launchpadder/launchpadder.js:145
    this._output.openPort(midi_output);
                 ^
RangeError: Invalid MIDI port number
    at new Launchpad (/Users/sintaxi/Documents/Node/Sandbox/launchpad/node_modules/launchpadder/launchpadder.js:145:18)
    at Object.<anonymous> (/Users/sintaxi/Documents/Node/Sandbox/launchpad/index.js:39:11)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:245:9)
JeromSar commented 10 years ago

You're probably using the wrong midi port(s). The Midi port your launchpad is on varies per machine and setup. If you're on windows, the windows keyboard may be your first MIDI input device. Try the values (0, 0) and (1, 0) and see if that works. :)

stevenleeg commented 10 years ago

Spot on, @JeromSar!

It looks like that'll be your issue, but if that doesn't fix it feel free to let me know and I'll reopen the issue.

Happy Holidays!