Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (764) Code (64) Doc (175) Help (16) Quark (509) SCDoc ↗ Forum ↗ Google ↗
  1. sStream Quark

    ... 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 ...

  2. SatieGUI Quark

    ... 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 ...

  3. Sandrode Quark

    ... 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. ...

  4. Morph Quark

    ... 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 ...

  5. RedMRCM Quark

    ... 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 ...

  6. MIDIKeyboard Quark

    ... } 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 + ...

  7. red05 Quark

    ... }}.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. ...

  8. BoxMatrix Quark

    ... 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, ...

  9. test polygon inside detection Quark

    ... @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[ ...

  10. SCDraw Quark

    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 ...

prev 21 22 23 24 25 26 27 28 29 30 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow