-
... () ); }; conductor.gui.guis.put('map MIDI', { |win, name, interp| var w; ~simpleButton.value(win, Rect(0,0,60, 20)) .states_([["map MIDI", Color.black, Color.hsv(0, 0.5,1)]]) .action_({ var cond; MIDIIn.connectAll; if (w.isNil) { cond = Con ...
-
... apper. A GeneralHIDSlot accesses one specific capability of a device, such as a button, an axis or an LED. Its value can be retrieved, an action can be set to be performed when data comes in, and the slot can be mapped to a control bus to u ...
-
... : "leapGeco", protocol: \osc, deviceType: \handTracker, elementTypes: [\fader, \button], status: ( linux: "unknown", osx: "tested and working. 2025-09-16, adc.", win: "unknown" ), idInfo: "leapGeco", // recvPort will default to NetAddr.lang ...
-
... ufFrames .kr(b) - 1); // cursor x position controls buffer pos var write = MouseButton .kr; // button controls write action Demand .kr(write, 0, Dbufwr (val, b, pos, 1)); SinOsc .ar( Duty .kr( Dseq ([0.5, 0.75, 0.5, 1.0], inf ) * 0.2, 0, Db ...
-
... ini" ), elementsDesc: ( elements: [ ( key: \bt, midiMsgType: \cc, elementType: \button, midiChan: 0, midiNum: 64, spec: \midiBut), ( key: \kn, shared: (midiMsgType: \cc, elementType: \knob, midiChan: 0, spec: \midiCC), elements: (13..20).co ...
-
... ) Hiding / Swapping You can stack CompositeViews on top of each other and use a button show only one of them ( var colors = [ Color .blue, Color .red, Color .green]; a = Window .new; q = 3; b = Button (a, Rect (0,0,160,20)); b.states = Arra ...
-
... Rect(0, index*yStep, yStep*2, yStep)) .string_(" "+runner.name.asString) ; GUI.button.new(w, Rect(yStep*2, index*yStep, yStep, yStep)) .states_([["start", Color.black], ["stop", Color.red]]) .action_( { arg button ; if ( button.value == 1, ...
-
... n.stringCenteredIn(timeStr, uv.bounds, font, Color.white) }); NTMI.g.clok.but = Button( NTMI.g.clok.zone, NTMI.g.clok.uv.bounds.top_(NTMI.g.clok.extent.y * 0.5) ) //.background_(Color.rand) .states_([ ["Reset Clock", Color.white, Color.grey ...
-
... , <midifuncNoteOn, actionLearn; var <>actionNoteOn, <>actionNoteOff, learnMode, buttonLearn; *new { | parent, bounds | ^super.new(parent, bounds).initialize().initializeView(); } initialize { } initializeView { mainLayout = HLayout(); mainL ...
-
... or brevity. w.view.background = Color ( 0.6, 0.8, 0.8 ); 32.do({ arg i; // Here Button returns the button class for the current kit b = Button ( w, Rect ( rrand( 20, 300 ), rrand( 20, 300 ), 75, 24 )); b.states = [[ "Start " ++ i, Color .bl ...