findReferencesToMethod
3 December 2004
/*
this will find all usages/references/mentions of a method anywhere in any class.
it searches through each method's literals for the method name stored as a symbol.
just found a bug. update posted soon.
this doesn't check { } func defs inside methods (or recursively scan fund defs)
doesn't check class methods either.
*/
Library.put([Tests,referencesToMethod],{
GetStringDialog("Method name:","",{
arg ok,string;
var fn;
fn = { arg methodName;
var found;
found = Array(8);
Class.allClasses.do({ arg class;
(class.methods ?? {[]}).do({ arg method;
var literals;
literals = method.literals;
if(literals.notNil,{
literals.do({ arg lit;
if(lit === methodName ,{
found = found.add(method);
})
})
});
})
});
found
};
if(ok,{
this.newErrorWindow;
fn.value(string.asSymbol).do({ arg method;
method.postln;
});
})
});
});
more posts in Super Collider
- on laptops, controllers, musicianship, post-musicianship
Sam Pluta published an article about computer based music, information theory and human control: http://www.newmusicbox.org/article.nmbx?id=5614 and then we discussed it and I posted the following to the list, so I wanted to preserve it here because it collects some of my long-standing thoughts and experiences about controllers and live computer based music. sometimes I've gotten a bunch of controllers (a few too many) and then found that it was distracting to the music. instead of it being about music it ...
- apple goofs up airport update
The new mac airport update breaks most audio programs. We now get nasty crackling and CPU spikes. Solution: turn airport off when making muzak. or revert the airport update: http://www.ableton.com/forum/viewtopic.php?t=88815&postdays=0&postorder=asc&start=0&sid=63b29a6140f11d35ef1b64db664f3cb5 and the thing is this is the first time in 5 months that my airport has worked with our apartment's WLAN. I've had a cable running down the hall and I can't shut my door. george clinton has two houses : one for music, one for business.
- how to set up a local svn repository (for SC)
How to create and maintain a local SVN repository for your private work. If you are just working locally, you don't have to run an svn server at all. Its much easier than I thought. ( this is mainly a post about working with supercollider packages. if you just want to know how to set up a local svn repository then I'll cut to the chase: svn import ~/Documents/SC3docs/felix-imported file:///Users/crucial/svn/sc/trunk/felix -m "initial felix import" then check out a working copy: ...
- super collider links
SuperCollider2 runs only on Mac OS9. It is now available for free from http://audiosynth.com SuperCollider3 is open source, and runs on OS X and Linux. http://sourceforge.net/projects/supercollider/ browse CVS tree http://cvs.sourceforge.net/viewcvs.py/supercollider/SuperCollider3/ sc-users mailing list info http://www.create.ucsb.edu/mailman/listinfo/sc-users sc-users archives http://www.create.ucsb.edu/pipermail/sc-users/ http://news.gmane.org/gmane.comp.audio.supercollider.user sc-dev mailing list info http://www.create.ucsb.edu/mailman/listinfo/sc-dev sc-dev archives http://www.create.ucsb.edu/pipermail/sc-dev/ http://del.icio.us/tag/supercollider search sc user lists archives:
- Full index for Super Collider
- on laptops, controllers, musicianship, post-musicianship

