[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] CCResponder question



Actually, while OSCresponders CAN be overwritten, it is because there can only BE one OSCresponder. In general use, it is better to use OSCresponderNode which carries the same properties as the CCresponder in this context. Actually, this is a benefit, since it allows you to run check in the functions to respond to different types of input. Let's say you want one responder to respond to 'num' 80, but another to respond to 81. This lets you set up two different responders with different functions. Granted, you could make one responder and evaluate on a case by case basis what you want done with different numbers, but with multiple responders possible, it also lets you dynamically destroy and change one particular responder without touching others. I think this modularity is a big plus...

Hope that helps

Josh

On Oct 17, 2007, at 6:09 PM, scott lindroth wrote:


I very much like the flexibility of CCResponders, but I am curious why we can't update/reassign a CCResponder by simply overwriting the old responder? If I understand correctly, now you have to remove the old responder before enter the new responder (otherwise both versions of the responder seem to
coexist and execute their respective functions).

I ask because it's a chore to troubleshoot CCResponder code (revise a
responder, remove old responder, enter new responder).   Also, as I
understand it, OSCresponders can be overwritten without removing first, so
there's a consistency issue, too.

The advantages of CCResponders outweigh this quibble, but I thought I'd ask
while taking a break from hacking MIDI code.

Scott

--
View this message in context: http://www.nabble.com/CCResponder- question-tf4644308.html#a13266163
Sent from the Supercollider - User mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users

******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono
*/