MaxApi.post

    Misc

    Anton's icon
    Anton's icon
    Anton
    Jan 31 2023 | 4:20 pm
    Hi, I've been for max for a couple of years now and trying to build something at the moment using node.js. It's essentially an art installation, that detects poses and does a projection thing. My question now is: I've got the js side of things (almost) completed, I use poseNet to detect poses and trigger sounds, that I do in Visual Studio Code. Now what I want to accomplish is to send a bang(?) to max, utilising the maxApi.post(?), to itll receive a bang, everytime one pose is detected. I've managed to send text to the max console from my js script, but I can not figure out how to send a simple bang from my js script to max msp in order to trigger videos etc. I suspect it has something to do with the dictionary in max. Anyways, anyone care to shed some light? Thank :)

    • Rob Ramirez's icon
      Rob Ramirez's icon
      Rob Ramirez
      Jan 31 2023 | 5:31 pm
      you likely want to use maxApi.outletBang() (or maxApi.outlet() for other messages)
      https://docs.cycling74.com/nodeformax/api/module-max-api.html#.outlet
      Share