Get [live.menu] selected value


    Mar 09 2014 | 6:13 pm
    I am able to obtain the selected index from the [live.menu] object but is it possible to get the value of the selected item?
    livemenu  = this.patcher.getnamed("sn_livemenu"); post(livemenu.getvalueof());

    • Mar 15 2015 | 11:22 pm
      you could get the menu items which returns an array and then use the menu index to get the menu text.
      var livemenu = this.patcher.getnamed("theMenu");
      function msg_int(){ var a = livemenu.getattr('items'); var b = livemenu.getvalueof(); post(a[b*2]); }