-
... controller // NOTE: there are many ways of working with MIDI in SC, so this is just one quick example... ( k = MIDIKeyboard .new; MIDIIn .connect; MIDIIn .noteOn_({ arg src, chan, num, vel; {k.keyDown(num)}.defer; }); MIDIIn .noteOff_({ ar ...
-
... not a valid representation of an IP address. The `ipaddr.process` method works just like the `ipaddr.parse` one, but it automatically converts IPv4-mapped IPv6 addresses to their IPv4 counterparts before returning. It is useful when you ha ...
-
... cted or not. expectedNodes ( ) returns an Array of the expected nodes (actually just their IDs) of the network expectedNodes_ ( ) set the expected nodes of the network (should be an Array of ids) - Spec - spec ( ) returns the SWDataNetworkS ...
-
... nt is the ending point. line(x + width, y, cp2[0], cp2[1]) # To liven things up just a little bit, little ovals are # drawn in red on the position of the control points. nostroke() fill(1,0,0) oval(cp1[0] - 2, cp1[1] - 2, 4, 4) oval(cp2[0] ...
-
... ds, margin: Point.new(margin, margin), gap: Point.new(gap, gap) ); // header is just the area where drop down menu sits header = CompositeView.new(window, Rect.new(0, 0, windowWidth - (margin * 2), 50)); // StaticText goes first so EZPopUpM ...
-
... in some cases when you don't comprehensive enough test coverage. In that case — just don't override `Buffer` and use `var SaferBuffer = require('safer-buffer').Buffer` instead. That way, everything using `Buffer` natively would still work, ...
-
... \out, shared: ( ioType: \out, page: 2, midiChan: 1 ), // page not in hardware, just for GUI elements: [ ( key: \mc, shared: ( midiMsgType: \noteOn, spec: \midiLedTri, elementType: \led, mode: \tristate ), elements: 8.collect{ |i| ( midiNum ...
-
... .buffer), start, end) ) }.scope(zoom: 8); ) x.set( \start , 0, \end , 1024); // just some random length, may buzz x.set( \start , w.xings.at(100), \end , w.xings.at(101)); x.set( \start , w.xings.at(101), \end , w.xings.at(102)); x.set( \st ...
-
... to determine whether to sustain the previous note, or leave a rest? // for now just leave a rest #{ |source| var lo, hi, numToDrop, newNote; source = source.notes.copy; // must copy array before modifying lo = rand(source.size-1)+1; // can ...
-
... b, c, sqrterm, qresult, sgn = sign(maxval - minval); // the formula is unstable just above the average of minval and maxval // so mirror the midval around the average if(midval > ((maxval + minval) * 0.5)) { midval = minval + maxval - midva ...