Cycling74 / n4m-examples

Repository of examples using Node For Max authored by Cycling '74

Home Page:http://cycling74.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

maxAPI is not defined

derrgis opened this issue · comments

Nature of issue?

  • [x ] Found a bug in an example
  • Existing example enhancement
  • Suggest a new example

Details about the bug:

  • Max version: {
    "version" : "Version 8.1.0 (dcf61ce) (64-bit mac)",
    "platform" : "mac",
    "arch" : "x64",
    "osversion" : "Mac OS X Version 10.11.6 (Build 15G22010) x86_64",
    "samplerate" : 48000,
    "iovs" : 512,
    "sigvs" : 64,
    "scheduler_in_audio_interrupt" : "off",
    "audio_drivername" : "Core Audio",
    "audio_driver_subname" : "",
    "license" : "demo",
    "machine_id" : "310784fd9af7e9694eedcc3e5d1f9748",
    "eventinterval" : 2,
    "schedinterval" : 1.0,
    "overdrive" : "off",
    "pollthrottle" : 40,
    "queuethrottle" : 100,
    "sysqelemthrottle" : 1000,
    "refreshrate" : 33.333332061767578,
    "schedslop" : 25.0,
    "eventprobing" : 0,
    "mixerparallel" : "off",
    "mixercrossfade" : 0,
    "mixerlatency" : 30.0,
    "mixerramptime" : 10.0,
    "videoengine" : "avf",
    "glengine" : "gl2",
    "packages" : {
    "BEAP" : "1.0.2",
    "jit.mo" : "1.1.2",
    "max-mxj" : "7.2.5",
    "Mira" : "1.2.1",
    "Node For Max" : "1.2.3",
    "VIDDLL" : "1.2.1",
    "Video and Graphics" : "7.2.0",
    "Vizzie" : "2.0.3"
    }

}

  • Operating System: Windows 10
  • Name of example: MQTT example at https://www.znibbl.es/video/mqtt-subscriber
  • Steps to reproduce this:
    I'm not able to start script and get error on the node.script debug tool maxAPI is not defined

Is it a Max or a node issue ?

commented

Ditto, have has the same problem

Ditto?

commented

Could it be 'cause of the Max 8.1. upgrade ?

Thanks for the report. If I'm not mistaken the mqtt example you are referring to is not part of this repository. Checking the website for the linked video it seems like the code you are referring to can be found here: https://github.com/znibbles/10-node-in-max/tree/master/4-mqtt

I just checked the example of this repository on OSX and Win 10 running Max 8.1.0 and they seem to work just fine and as expected so I'd assume it's something related to the specific example you are referring to.

The error message itself just hints at a missing require of the API (see below) but that's more of a blind guess based on the pure error message.

const maxAPI = require("max-api");

Would you mind checking in with @znibbles (maybe via the issue tracker of his N4M playlist repository) to troubleshoot your issue? If it turns out to be an actual N4M issue please feel free to get in contact again.

That's solved now, it was a syntax error since API is not Api.
Sorry for the inconvenience, thx for reply.
closed issue.