-
... shed, Scale.dorian, Scale.harmonicMinor, Scale.ionian, Scale.lydian, Scale.majorPentatonic, Scale.minorPentatonic ]; var lvProgramSelectKeys= #[$Q, $W, $E, $R, $T]; var avProgramSelectKeys= #[$Y, $U, $I, $O, $P]; var snapshotKeys= #[ //more ...
-
... sy-(diameter/2),diameter,diameter))); satieObjects[\objects][name].drawFunc = { Pen.fillColor = colorObject; Pen.fillOval(Rect(0,0,diameter,diameter)); }; objectText = StaticText(satieObjects[\objects][name], Rect(0,0,diameter,diameter)).st ...
-
... ounds.height; var fingerScale = height * 0.025; var winSize = (width @ height); Pen.color = Color.red(1.0); MultiTouchPad.fingersDict.do ({|finger| var fingerSize = finger[2] * fingerScale; Pen.width_(fingerSize.sqrt); Pen.strokeOval( Rect. ...
-
... tedContacts.keysValuesDo({|k, me| var pos = [me.x, me.y]; var force = me.force; Pen.color = cColor; Pen.addOval(Rect.aboutPoint((pos * extent).asPoint, force * scaling, force * scaling)); Pen.fill; Pen.color = avgColor; Pen.line((pos * exte ...
-
... width, b.height)); usr.background= background ?? {Color.white}; usr.drawFunc= { Pen.translate(b.width*0.5, b.height*0.5); this.draw(b.width, b.height); }; win.front; ^win; } //--private prDraw {|index| if(index==n, { drawFunc.value; }, { ma ...
-
... } initMIDIKeyboard { arg w, argbounds, argoctaves=3, argstartnote; var r, pix, pen; octaves = argoctaves ? 4; bounds = argbounds ? Rect(20, 10, 364, 60); if((win= w).isNil, { win = Window.new("MIDI Keyboard", Rect(100, 250, bounds.width + ...
-
... }}.do{|s| physics.removeSpring(s)}; physics.removeParticle(p); }; physics.tick; Pen.width= 0.25; physics.springs.do{|s| Pen.strokeColor= Color.grey(1-(s.currentLength/75), 0.2); Pen.addOval(Rect.newSides(s.getOneEnd.position.x, s.getOneEnd. ...
-
... iate drag or a symbol like \isCntrl var <>background,<styles,<defaultStyle; var pen, boxWidth,boxHeight,isDown=false; *new { arg w,bounds,numCols=10,numRows=6; ^super.new.init(w, bounds,numRows,numCols); } init { arg w,argbounds,argNumRows, ...
-
... @0, 2, 2 ); ); w.keepRatio = true; w.drawFunc = { var fader, crossfades, lines; Pen.addArc( ~point.asPoint * (1 @ -1), 0.1/2, 0, 2pi ).fill; // draw corns as blue points // vector connecting edge k to edge k-1 ~vecs = p.size.collect{ |i| p[ ...
-
SCDraw score of timed drawing using Pen SCDraw is intended for the non-realtime realization of procedural animation. It draws and writes out an image sequence with user-designed drawing functions. It is partially modelled on Score. A "score ...