Granjow / launchpad-mini

Node.js library for the Novation Launchpad Mini
145 stars 25 forks source link

Cannot connect to Launchpad mini mk3 #9

Open SimonLeclere opened 4 years ago

SimonLeclere commented 4 years ago

Hi, I wanted to try to connect my Launchpad to my pc with launchpad-mini but I always get this error in the console: No Launchpad on MIDI ports found..

However my launchpad is well connected via a usb cable to my computer.

Is there a solution ?

Thank you in advance, Simon

Granjow commented 4 years ago

Hi Simon, what kind of Launchpad is it (MINI or another one) and what OS are you using?

SimonLeclere commented 4 years ago

It's a Launchpad mini mk3 and I'm using Windows.

SimonLeclere commented 4 years ago

Here is my code (this is your example):

const Launchpad = require( 'launchpad-mini' ),
    pad = new Launchpad();

pad.connect().then(() => {     // Auto-detect Launchpad
    pad.reset( 2 );             // Make Launchpad glow yellow
    pad.on( 'key', k => {
        // Make button red while pressed, green after pressing
        pad.col( k.pressed ? pad.red : pad.green, k );
    } );
}).catch(err => { console.log(err) });
Granjow commented 4 years ago

Ah. The code does not support the Mk3 yet, I would need to get it somewhere and test it. Unless you feel like extending this package, but depending on the protocol change it might require some work …

SimonLeclere commented 4 years ago

Oh... I have no idea how to develop this, I've never used the midi protocols --' Thanks anyway, have a nice evening :)