Forums > MaxMSP

js delete observer

September 23, 2013 | 11:54 am

Hi,

If using the following code to observe a property, is there any way I can delete the clipslots observer object in JS?

autowatch = 1;
outlets = 1;
clipslots = [];

function bang() {
getclips();
}

function getclips() {
clipslots = new LiveAPI(this.patcher, 0, observeclips, "live_set tracks 0 clip_slots 0");
clipslots.property = "has_clip";
}

function observeclips(args) {
post(args);
}


Viewing 1 post (of 1 total)