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

[sc-users] SCTabletView Action speed limit?



Hi all,
I have recently jumped back in to learning supercollider after some years of
Max/MSP, as well as studying OOP in general. I have been trying to figure
out how to implement something like the max object speedlim...more
specifically, I am triggering playback of a buffer selection using
SCTabletView's action_(). I would like the action to create a new synth with
the arguments passed by t.action.
I have not been able to control the rate at which the action_() callback
evaluates its function. 
This is what I have as the action function:
t.action = {arg view, x,y,pressure;
		p = Synth(\jahBufPlay,[\bufnum, b.bufnum,\pan,-1.0+(x.value/150),\vol,
pressure.value,\pos, v.selectionStart(0),\length,
v.selectionSize(0)/44100,\rateScale,2.0-(y.value/75)]);
		n.value = (2.0-(y.value/75.0));
		[x,y,pressure].postln;
		};
(I think there are better ways to scale the values, but that is not my main
concern at the moment.)


What is a good technique to make t.action evaluate its function at specified
time intervals? 
I have tried various versions of Routines and SystemClock.schedAbs. I
basically want to know: is the tablet moving? if yes where is it every x
seconds? 
Thanks,

Jeff
I am excited by the possibilities of SC!
-- 
View this message in context: http://www.nabble.com/SCTabletView-Action-speed-limit--tp20825611p20825611.html
Sent from the Supercollider - User mailing list archive at Nabble.com.


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/