You are reading a single comment by @user103345 and its replies. Click here to read the full conversation.
  • I use a puck.js for sending midi controller over bluetooth. It worked for while (on 2 different computers, Win and OSX) but after a while, the puck stops been reliable. It sends the midi data and then stops working. It doesn't respond anymore and I have to upload the code again to be able to use it. Any idea what the problem could be? Is it possible the puck is defective?

    I upgraded the firmware to 2.04 with no success.

    This is the code:

    var midi = require("ble_midi");
    
    midi.init();
    setWatch(function(e){
      var isLong = (e.time-e.lastTime)>1;
      console.log(isLong);
      if (isLong) {
        midi.send(0, 101, 100);
    setTimeout(function() {
    midi.send(0, 101, 100);
    digitalPulse(LED1,1,5);}, 100);
      } else {
        midi.send(0, 126, 100);
        digitalPulse(LED2,1,5);
      }
    }, BTN, {repeat:true, debounce:50, edge:"falling"});
    
About

Avatar for user103345 @user103345 started