-
... ameters first! var sources, statsources, currpath, makeBusses, makeSynths, makeGUI, makeNodes; var srcgroup, fxsgroup, fxrgroup, mstrgroup, master, testsig, reverb, early, delay, aux, revbus, dlybus, auxbus, fxretbus, masterbus, trackleve ...
-
... s and 2 pulse oscs with pw 0.5 and 0.2 ( var w, ctr = IdentityDictionary[], gui = IdentityDictionary[]; var syn, scopeSyn, scope, func, bus, buffer; w = Window("Scope", Rect(0, 0, 800, 500)); ctr[\defaultfreqs] = 60 ! 6; ctr[\de ...
-
A GUI example of nesting Views and multiplying widgets, including mouse actions and Pen drawing for each of the views. Thanks to hjh for spotting an early bug on sc-users. Add your own sound... ( var numX=12, numY=8, width, height, margin; ...
-
A common GUI requirement is a scrollable list of similar items. If the list consists of strings, it's easy -- use ListView. If, for example, each "line" should have a pop-up menu, a text field and a toggle button, there's ScrollView. We als ...
-
This question comes up often: What is the best way to structure GUI code. IMO, Model-View-Controller (when done correctly) gives you the most flexibility while avoiding common bugs. But it's hard to wrap your head around it first. So, he ...
-
... of bits of code from this site - with a few mods. Creates a little performance GUI that does frequency mod. ( var w, addslider, speedslider, synth; w=Window("freq modulation", Rect(100, 400, 400, 300)); w.view.decorator = Fl ...
-
... s.scope; ( var w, f1S, f2S, p1S, p2S; a = Synth("cero"); ///// GUI////////////// /////////////////// //////////////////////////// w=Window("sineVisualizer", Rect(100, 400, 400, 300)); w.view.decorator = FlowLayout(w.v ...
-
The Scale Listener is a simple GUI that previews every scale provided in SC, except Ascending/Descending ones. Can also serve as a template for a graphical scale selector, or for didactic purposes. ( // Not refenrencing Ascending/descend ...
-
A basic FM matrix synth (Ndef) with GUI // still have to work out the right modulation index calculation q = q ? (); q.numOscs = 5; ( Ndef(\fmMatrix, { var numOscs = q.numOscs; var oscs; var modFreqs = \modFreqs.kr({|i| 1 ...
-
A simple color picker. Posts picked color to the postwindow. Based on (non-functional) code found at http://swiki.hfbk-hamburg.de:8888/MusicTechnology/868 (scsolar 2007) ( var res = 20, scrsize = 200, val, set, win, scr, currentColor = ...