autowatch=0;inlets=1;outlets=2;function status(){var words=Array.prototype.slice.call(arguments);outlet(0,words.length?words:["…"])}function isValid(api){return api&&api.id&&Number(api.id)!==0}function targetSlot(){var slot=new LiveAPI(null,"live_set view highlighted_clip_slot");if(!isValid(slot)){status("select","a","slot","first");return null}if(Number(slot.get("has_clip"))===1){status("select","an","empty","slot");return null}return slot}function bang(){if(!targetSlot())return;outlet(1,"bang")}function save(){var parts=Array.prototype.slice.call(arguments);var path=parts.length?parts.join(" "):null;if(!path)return;var slot=targetSlot();if(!slot)return;slot.call("create_audio_clip",path);if(Number(slot.get("has_clip"))!==1){status("clip","create","failed");return}var clip=new LiveAPI(null,"live_set view highlighted_clip_slot clip");if(isValid(clip))clip.set("name","DreamMax Audio");status("saved","audio","to","clip")}