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

[sc-users] Document.mouseDownAction



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