[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] keyDownaction
keyDownAction_ is a method of View not Window, so you need to
register it with w.view :
w = Window("",Rect(318, 356, 400, 400)).front;
w.view.focus.keyDownAction_({|view|{SinOsc.ar(440,0,0.5)}.play})
more details can be found in the (J)SCView help file.
Am 28.07.2009 um 19:57 schrieb Jonathan Plaut:
w = SCWindow.new("",Rect(318, 356, 400, 400)).front
.keyDownaction{|w,f,3|{SinOsc.ar(440,0,0.5)}.play}
_______________________________________________
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/