G
gingygingyging

  • Mar 7, 2017
  • Joined Feb 7, 2017
  • 1 discussion
  • 6 posts
  • Thanks guys. I got the bela detecting the monome now

    Getting segmentation faults when trying to run serialoscd with current kernel (assuming this is something you had as well @thetechnobear ?) Also I'll stop tagging you in both forums haha sorry

    Going to try updating to current bbb distro in emmc

  • nx 39 changed to value undefined is the full line for the console log.

    from index.html:

    nx.onload = function() {
    ...//many other buttons w same function, different id number and canvas/nexusUI id
    button27.on('*',function(data){socket.emit('nx', {id:39, value: data.value})});
    ...//other buttons
    };

    Is it that they're all sending to nx in {socket.emit('nx'?

    For the record, the buttons appear properly in 192.168.7.2:3000

    • Hi all

      Are there any Monome users here? I'm trying to get my grid128 interfacing with libpd, but I'm having trouble. I've already posted on the lines forum so hopefully will get some info from there too

      I got the monome libraries libmonome and serialosc installed, but kindof stuck here as I can't start running serialosc?

      I've also read a bunch about the usb hotplugging issues on the bela currently and am wondering what the best practices are for USB detection after boot? I have a powered hub with the monome going in... it flashes lights as if initializing but lsusb never detects anything new. Also booting with the monome plugged in results in the bela hanging and never initializing. Possibly because it's trying to boot off of whatever is connected through USB? Unsure

      Any help is appreciated, thanks
      -b

      • @LiamDonovan sorry, just realized you were looking at the backup index.js, but the active one was already sending integer and float

        When I run, it shoots this error up and made the node server unresponsive after (had to pkill and reset to try again).

        nx 71 changed to value undefined
        
        /root/Bela/projects/NexusUITest/node_modules/osc-min/lib/osc-utilities.js:265          
        
        throw new Error("expected number");          
        ^
        Error: expected number    
        at Object.oscTypeCodes.f.toArg (/root/Bela/projects/NexusUITest/node_modules/osc-min/lib/osc-utilities.js:265:17)

        Then a big lists all along the chain where the error persists. You are definitely right about it not sending the correct type of data, I will keep trying to figure out osc-min thanks

        @adowty did you get this working with osc-min and libpd? do you have examples of your code?

        • Hi all

          Big props on the bela, I've been having a lot of fun hacking away with it, learning my way around it still. I'm having a tough time connecting libPD to nexusUI on the node server. I'm a fairly novice C++ programmer, still trying to get my head around the OSCPKT Message handling.

          Here's a clone of the proj file (excuse messiness): https://github.com/gingyg/NexusUITest

          Originally I made a Nexus UI matrix object to add to the example from above (https://github.com/BelaPlatform/Bela/tree/dev-nexusUI/examples/05-Communication/NexusUI). It's in the backup folder of the repository. I can only get bela to read that a message is being sent to /nexus-ui/, but not the contents of the message. I also tried modifying the osc message parsing code to the example from this: https://github.com/BelaPlatform/Bela/blob/master/examples/05-Communication/OSC/render.cpp

          Afterwards I tried building a huge matrix of NexusUI buttons in case it was something weird about the matrix class. Still didn't work

          The node console confirms that there is value data coming in (numbers are read). Also I suspect I am not handling the bundling of data correctly?

          Also let me know how to hyperlink text here so that I don't have to pull full links... can't seem to find a button (sorry)

          Thanks!
          -b