-
... ndfile = soundfile; v.read(0, soundfile.numFrames); v.refresh; }; update = { iv.string = "no: %".format(index.asString); dv.string = "% sec".format(currentBuffer.duration.round(0.01)); }; w = Window("dirt sample browser"); w.layout = VLayou ...
-
... }); composite.onClose_({ ctrl.remove }); StaticText( composite, 50@viewHeight ).string_( "startBeat:" ).font_( font ); startBeatView = SmoothNumberBox( composite, 50@viewHeight ) .value_( barMap.startBeat ) .font_( font ) .action_({ |nb| ba ...
-
... }); composite.onClose_({ ctrl.remove }); StaticText( composite, 50@viewHeight ).string_( "startBeat:" ).font_( font ); startBeatView = SmoothNumberBox( composite, 50@viewHeight ) .value_( barMap.startBeat ) .font_( font ) .action_({ |nb| ba ...
-
... poolindex; poolname = selbPool.items.at(selbPool.value); // get the pool name (string) selbPool.items_(XQ.globalBufferDict.keys.asArray.sort); // put new list of pools poolindex = selbPool.items.indexOf(poolname); // find the index of old ...
-
... s[5]]) .strokeColor_(colors[params[4]]) .xOffset_(2) .action_({arg xb; freqText.string_(cutfreqs[xb.index].asString); }); if (GUI.id == \cocoa, { multislider.size_(size) }); b = Buffer.alloc(s, 2048*2, 1); SynthDef(\XiiEQMeter, { arg inbus; ...
-
... ent.listener.title_("Nim Chimpsky's Post Window") .background_(Color(0, 0, 0)) .stringColor_(Color(1, 1, 1)) .bounds_(Rect(50, 50, 300, 800)) ; clockField = GUI.staticText.new(w, Rect(5,5, 415, 30)) .align_(\center) .stringColor_(Color(1.0, ...
-
... ite, Rect( composite.bounds.left, composite.bounds.top, labelWidth, height ); ).string_( name.asString ); action = { |view, value| "%:\t%\n".postf( view.name, value ); }; } name_ { |newName| name = newName; views[ \label ].string = name; } ...
-
... ing of function prototypes + Function { proto { var stream; stream = CollStream(String.new(256)); this.streamArgs(stream); Document.current.selectedString_(stream.collection) } listArgs { this.streamArgs(Post); } streamArgs { |collstream| ( ...
-
... Slider = Slider(window, Rect(width: 190, height: 20) ).background_(Color.fromHexString("#A0A0A0")); spec = ControlSpec(0.ampdb, 2.ampdb, \db, units: " dB"); volSlider.value = spec.unmap(0); volSlider.canFocus = false; volSlider.action = { a ...
-
... lue(item.key,modifier,buttonNum); // do function at key }; (item.value.isKindOf(String) || item.value.isKindOf(Symbol)).if{ (item.value!="-").if{// do defaultFunction at key with arg l.value defaultAction.notNil.if{ defaultAction.value(item ...