Max score not rendering canvas


    May 01 2020 | 8:21 am
    Hi I just recently got into Ableton Live after noticing the availability to preform notation but after installing maxcore i keep getting errors related to javascript the canvas does not appear in the window and keeps prompting on creating new score or loading from disk
    this is what appears in the console probably related to javascript:
    sadam.canvas: Layer 'temp' doesn't exist. sadam.canvas: Layer 'polytemp' doesn't exist. sadam.canvas: Layer 'polytemp' doesn't exist. js: error calling function enddump [render2canvas] js: pane.js: Javascript TypeError: img.setsvg is not a function, line 272 js: error calling function annotation [tablature-editor] jsui: error calling function obj_ref [pane.js] js: error calling function enddump [render2canvas] js: pane.js: Javascript TypeError: img.setsvg is not a function, line 272 js: error calling function annotation [tablature-editor] jsui: error calling function obj_ref [pane.js] js: error calling function enddump [render2canvas] js: pane.js: Javascript TypeError: img.setsvg is not a function, line 272 js: error calling function annotation [tablature-editor] jsui: error calling function obj_ref [pane.js]
    I also get these messages in startup as well in case it may help:
    jsmaxwrap: trying to register duplicate class Dict jsmaxwrap: trying to register duplicate class Packages jsmaxwrap: trying to register duplicate class PolyBuffer jsmaxwrap: trying to register duplicate class MSPMixerGainControl jsmaxwrap: trying to register duplicate class MSPMixerAudioMeter jsmaxwrap: trying to register duplicate class MSPMixerCPUMeter jsmaxwrap: trying to register duplicate class MSPMixerGlobal

    • May 22 2020 | 11:55 am
      anyone?...
    • May 22 2020 | 6:44 pm
      I have no idea about Ableton Live but the error messages you are seeing relate to C externals wrapped for usage by Javascript by a file in the Max application package:
      jsextensions/max/maxclasswrap.js
      The file (below) simply makes a few Max C objects available to Javascripters.
      maxclasswrap("dictwrap", "Dict"); maxclasswrap("packages", "Packages"); maxclasswrap("polybuffer", "PolyBuffer"); maxclasswrap("mixer_gaincontrol", "MSPMixerGainControl"); maxclasswrap("mixer_audiometer", "MSPMixerAudioMeter"); maxclasswrap("mixer_cpumeter", "MSPMixerCPUMeter"); maxclasswrap("mixer_global", "MSPMixerGlobal");
      // eof It looks like the maxclasswrap.js (or possibly canvas) is being loaded multiple times. One wouldn't expect redundant loads to be a problem, but maybe there is a version conflict between the versions of Max and Live?
      Check also for any custom Javascript extensions you might have installed.
    • May 22 2020 | 6:50 pm
      Sorry, John, this is a little off-topic: Does anyone actually recognize the wrapped Max mixer objects? (MSPMixerGainControl, etc.). Something to do with the side toolbar Audio Meter or the Max version 6 audio mixer engine?
      Run the following javascript in a js object:
      // ------------------------------------------------
      // The following classes are referenced in jsextensions/maxclasswrap.js.
      // The MSPMixer... objects are mysterious (?).
      /*
      maxclasswrap("dictwrap", "Dict");
      maxclasswrap("packages", "Packages");
      maxclasswrap("polybuffer", "PolyBuffer");
      maxclasswrap("mixer_gaincontrol", "MSPMixerGainControl");
      maxclasswrap("mixer_audiometer", "MSPMixerAudioMeter");
      maxclasswrap("mixer_cpumeter", "MSPMixerCPUMeter");
      maxclasswrap("mixer_global", "MSPMixerGlobal");
      */
      // Are there existing instances of these objects?
      var gain = new MSPMixerGainControl("gain")
      var audio = new MSPMixerAudioMeter("audio")
      var cpu = new MSPMixerCPUMeter("cpu")
      var mixer = new MSPMixerGlobal("mixer")
      bang()
      function bang()
      {
      	post("\n-------------------------\n")
      	printobject(gain,"gain")
      	printobject(audio,"audio")
      	printobject(cpu,"cpu")
      	printobject(mixer,"mixer")
      }
      function setmute(val) {
      	gain.mute=val
      }
      function setgain(val) {
      	gain.gain=val
      }
      function printobject (obj, name)
      {
          if (( typeof obj == "number") || (typeof obj == "string") ) {
              post( name +  " :" + obj + "n");
          } else {
          	post(name+":\n")
              for(var k in obj){
              	post(" ")
                 if (obj[k] && typeof obj[k] == "object")
                  {
                          printobject(obj[k], name + "[" + k + "]");
                  } else {
                          post(name + "[" + k + "] : " + obj[k] +"\n")
                  }
              }
          }
      }
    • May 22 2020 | 11:28 pm
      but maybe there is a version conflict between the versions of Max and Live?
      Ok.. so i may have not directly installed ableton and max into the same machine... as in i copied MAX destination into ableton live after purchasing max\msp from a diffrent computer and just overwrite the m4l present in ableton and honestly i dont think it worked :P anyways that still does not explain why max score was not working in max standalone
      ....also i am so glad you replied i was wating forever for some one to reply
    • May 22 2020 | 11:49 pm
      Ok so i tried the method it ran the commands in the console and nothing happned... or i didnt execute it correctly .... do you think its best i reinstall the program?
    • May 22 2020 | 11:59 pm
      Ok this may really help so i used the command render canvas and now this error is showing up: jsui: error calling function obj_ref [pane.js] js: pane.js: Javascript TypeError: img.setsvg is not a function, line 272 js: error calling function measurenumber1 [render2canvas] jsui: error calling function obj_ref [pane.js] js: pane.js: Javascript TypeError: img.setsvg is not a function, line 272 js: error calling function measurenumber1 [render2canvas] jsui: error calling function obj_ref [pane.js] js: error calling function enddump [render2canvas] js: error calling function enddump [render2canvas]
      I definatley think there is a problem with my javascript but idk what??
      Thanks a lot for your patience....
    • May 23 2020 | 11:15 am
      How could one try to help you if you don't provide even the minimal infos about max, ableton, operating system, maxscore version, and if you installed java VM or not etc etc
      Does one need to guess all that stuff ?
    • May 23 2020 | 1:11 pm
      OS and versions would indeed be useful.
      @John, try a clean install of Max and Live. It's likely a configuration or version issue conflict. Also, contact the folks who maintain maxscore. It's their javascript object, they can advise on system requirements and javascript configuration.