Submit
Browse
Anonymous
Login
RSS
SuperCollider Code
Fork Code: some GNUPlot quark examples
name
code content
to make it work on osx 10.12 (need homebrew installed)... * in sc run: Quarks.install("GNUPlot") * recompile sc * in terminal run: brew install gnuplot --with-qt s.boot GNUPlot.initCode="set term qt\n"; g= GNUPlot.new; {SinOsc.ar([42, 83, 164])}.loadToFloatArray(0.1, s, {|arr| g.plot3(arr.clump(3), "three lfo for 0.1sec")}) {SinOsc.ar([42, 83, 164])}.loadToFloatArray(0.05, s, {|arr| g.surf3([arr.clump(3), (1-arr.clump(3)).cos], pm3d:true)}) {SinOsc.ar([42, 83, 164])}.loadToFloatArray(0.0125, s, {|arr| g.surf3([arr.clump(3), arr.clump(3).reverse], hidden3d:false, pm3d:false)}) //plot a buffer - takes a few seconds b= Buffer.read(s, Platform.resourceDir+/+"sounds/a11wlk01.wav"); {[LFSaw.ar(1).range(0, b.duration), 0, PlayBuf.ar(1, b)]}.loadToFloatArray(b.duration, s, {|arr| g.plot3(arr.clump(3))}) b.free g.stop g= GNUPlot.new; g.monitor({sin(Main.elapsedTime)}, 0.1, 100, 1 ); g.startMonitor; g.stopMonitor; g.stop;
code description
use markdown for formating
category tags
comma separated, i.g. "wild, siren" (do not enter default SC class names, please)
ancestor(s)
comma separated identificators, i.g. "1-C,1-1,1-4M,1-x"
Private?
the code will be accessible by direct url and not visible in public activity
signup to submit public code without captcha
comment of change