-
( f = { 12.collect({ |i| var evt; evt = UChain(i/2,i+1,rrand(3.0,10.0),false,\sine, \output).fadeOut_(1).fadeIn_(1); evt.units[0].set(\freq,rrand(200.0,600.0) ); evt; }) }; z = UScore(*(12.collect({ |i| var evt; evt = BufSndFile("@resources ...
-
... that is evaluated when an update happens see also: GetMouseY MouseY , MouseX // example s.boot; ( a = GetMouseX (20, 40); b = GetMouseY (300, 400); fork { loop { 0.1.wait; [a.value, b.value].postln } } )
-
... CRIPTION: Simple numberbox with a lable AUTHOR: Marinus Klaassen (2012, 2021Q3) EXAMPLE: SynthBoxNumberView(bounds:400@50).front().action_({ |sender| sender.postln }); */ SynthBoxNumberView : View { var <name, <value; var <mainLayout, <labe ...
-
// MassEditU: // create 10 similar units y = 10.collect({ U( \sine, [ \freq, 220 rrand: 880, \amp, 0.1 rrand: 0.5 ] ) }); // show them all in a window w = Window("mass-edit", Rect(571, 101, 264, 381)).front; w.addFlowLayout; y.do(_.gui(w)); ...
-
... elopes which can all be easily used in patterns etc. __For more information and examples, see the AllBuf help file. __ ### Installation Open up SuperCollider and evaluate the following line of code: `Quarks.install("https://github.com/madsk ...
-
// basic example on how to swap one action from one control element to another. k = MKtl(\nk2, "*nanokontrol2"); k.gui; ( // function that should be linked to some element var setFunc = {|el ... args| "(%) % [%].\n".postf(el.parent.elemInde ...
-
// MassEditU: // create 10 similar units y = 10.collect({ U( \sine, [ \freq, 220 rrand: 880, \amp, 0.1 rrand: 0.5 ] ) }); // show them all in a window w = Window("mass-edit", Rect(571, 101, 264, 381)).front; w.addFlowLayout; y.do(_.gui(w)); ...
-
... ned are compatible with pre-3.8 and post 3.8 versions of SC. This file contains examples to test whether everything works in all combinations. */ // Tests for EnvirGui / ParamGui: // simple example g = EnvirGui.new(nil, 5); // empty with 5 ...
-
# escape-html Escape string for use in HTML ## Example ```js var escape = require('escape-html'); var html = escape('foo & bar'); // -> foo & bar ``` ## Benchmark ``` $ npm run-script bench > escape-html@1.0.3 bench nodejs-escape-html > nod ...
-
... bug output for different parts of your module as well as the module as a whole. Example _app.js_: ```js var debug = require('debug')('http') , http = require('http') , name = 'My App'; // fake app debug('booting %s', name); http.createServe ...