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

Re: [sc-users] Document.mouseDownAction



Sorry, I can't help you with the mouseDownAction, it doesn't seem to work for me either.

The MouseButton Ugen works fine though, you might be able to adapt that to do what you want. 

Matt. 


On Sat, Mar 7, 2009 at 5:58 AM, Mathias Kluetz <matkluetz@xxxxxxxx> wrote:
hi list,

in the following code mouseDownAction is not working for me. is this a bug?

(
~doc = Document.new("WhereIsMouseDown");
~doc.stringColor_(Color.rand).background_(Color.rand);
~doc.font_(Font(["Monaco", "Andale Mono", "Helvetica"].choose, 22.rand+8));
~doc.keyDownAction = {{SinOsc.ar(rrand(330, 3300), 0, Line.kr(0.2,0,0.02,doneAction:2))!2}.play};
~doc.mouseUpAction = {{PinkNoise.ar(Line.kr(0.1, 0, 0.4,doneAction:2))!2}.play};
~doc.mouseDownAction = {{ClipNoise.ar(Line.kr(0.1, 0, 0.1,doneAction:2))!2}.play}; // doesnt work??
~doc.>SinOsc.ar([330, 3300], 0, Line.kr(0.2,0,0.2,doneAction:2)).sum!2}.play}
)
~doc.close

thanks, mathias