Submit
Browse
Anonymous
Login
RSS
SuperCollider Code
Fork Code: Basic ScopeView example
name
code content
SynthDef(\scopeSynth, { | in=0 bufnum=0 | var output; output = In.ar(in, 2); ScopeOut2.ar(output, bufnum, 1024, 64 ); }).add; ( var win, view, synth, bufnum, scopeView, server=Server.default; win = Window("scope"); bufnum = Buffer.alloc(s, 1024, 2); synth = Synth(\scopeSynth, [\in, 0, \bufnum, bufnum]); scopeView = ScopeView(win, win.view.bounds).resize_(5).style_(0).waveColors = [Color.green, Color.green]; scopeView.server = server; scopeView.canFocus = true; scopeView.bufnum = bufnum; scopeView.start; win.front; ) Synth(\default); // tada! this (and anything else you play after this point) is now being scoped by ScopeView.
code description
This is a basic example of how to use ScopeView in your GUIs without having to include all the extra bells and whistles that Stethoscope includes.
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