-
... var center, wedge; center = size@size * 0.5; wedge = { |l1, l2, color| Pen.color = color; Pen.addAnnularWedge(size@size * 0.5, size*0.4, size*0.45, (pi/2) + (1.5pi*l1), 1.5pi*(l2 - l1)); Pen.fill; }; // These levels and ...
-
... g; view.refresh},{} ); }; //mouse drag redefines userview drawFunc //Pen draws line from old point to current point //then sets old point equal to current point view.mouseMoveAction = { |v, x, y, mod| view.drawFunc = { P ...
-
Damped Driven Double Pendulum Sonification and Visualization by xavieredavenport (xavieredavenport) Code
... run ctrl+. to stop Version 1. A little toy physics simulation of a double pendulum with damping and drive. The math is a little inconsistent in SuperCollider when dealing with numbers super small and super large, especially when trig ...
-
... u.clearOnRefresh = false; u.drawFunc = { var width = u.bounds.width; // Pen.fontColor Pen.stringAtPoint("Click on a zone to pause or resume the oscillator", Point(0,0)); Pen.fillColor = Color(1, 1, 1, 0.1); Pen.fillRect(u.b ...
-
... 2){TempoClock.default.tempo = 60/60;}; }); u.drawFunc = { Pen.fillColor = Color.red; Pen.color = Color.white; pt.x=mx; pt.y=my; 100.do{|i| Pen.moveTo(pt); pt.x = sin(u.frame*0.1. ...
-
... , window, fileView, grainView, granary, displayGrain; soundFile = SoundFile.openRead(Platform.resourceDir +/+ "sounds/a11wlk01.wav"); buffer = Buffer.readChannel(s, soundFile.path, channels: [0]); { SynthDef(\grain, { |bufNum = 0 ...
-
... unds.height, width = bounds.width, scaleY = height * (0.5 - scale), scaleX; Pen.color_(Color.gray(0.7)) .moveTo(Point(0, scaleY)).lineTo(Point(width, scaleY)) .moveTo(Point(0, height - scaleY)).lineTo(Point(width, height - scaleY)) ...
-
... twice with some randomness yields a kind of 2-voiced minimal music.This code depends on the Panola quark and the LSystem quark. Install them with Quarks.install("https://github.com/shimpe/panola"); and Quarks.install("https://github.com/s ...
-
... //draw next frame board.do({ arg row, j; row.do({ arg val, i; Pen.fillColor_(Color.gray( //positive numbers are light gray (snake body) //0s are dark grey (game board background) (val>0).asInteger*0.6+0.1 ...
-
... an either Rand or Brown here // the extra + button in the nicole/freq section opens a gui to creat tuned clouds according to probabilities for each note //some symbols have been used from the Mac character viewer - yet to find out if th ...