-
now with snooze (press mouse button) Ndef(\a, { |freq=2000, rate=1, width=0.6, now = 10| LFPulse.kr(rate, 0, 4/6) * LFPulse.kr(rate * 6, 0, width) * Pulse.ar(freq, 0.3, 0.1) * SetResetFF.kr(Dust.kr(1/now), MouseButton.kr) }).play
-
... om/page/otomata.html for my original inspiration). This code displays a grid of buttons, which can be clicked to generate new agents which behave according to a simple set of rules, that can lead to interesting emergent patterns: 1. Init ...
-
Simple button grid to play first 16 partials of a harmonic series. Horizontal Sliders control ADSR envelope. All partials have equal amplitude. // ************************************ // Additive Synthesis Demo (GUI) // Patch 1 - Harmonic ...
-
... rawAtPoint(left@top); // draw with fixed size centered in user view }; a = ({ Button(window) } ! 3) ++ chordview.minSize_(100@100) ++ ({ Button(window) } ! 3); window.layout = HLayout(*a); )
-
... n_({ arg obj; ~velocitySlider.valueAction_(obj.value/127); }); ~about = Button.new(~mainScreen, Rect(575, 25, 100, 50)) .states_([["About", Color.black]]) .font_(Font("Monaco", 15)) .action_({ arg obj; if ( obj.value == 0, ...
-
... =0, my=0; ~amp = 1; TempoClock.default.tempo = 128/60; w = Window.new("buttontest",Rect(100,100,450,350)); w.view.background = Color(0.8,0.0,01); u = UserView(w, Rect(300, 200,100, 100)); u.background = Color.black; u.animate ...
-
... ders // colours d.colWindow = Color(0.72, 0.77, 0.78); // grey-green d.colButton = Color(0.21, 0.48, 0.73); // blue d.colLabel = Color(0.97, 0.99, 1); // pale blue d.colLabelString = Color(0.03, 0.28, 0.43); // dark blue d.colHi ...
-
... + (2.pow(2)*copy) + (red.value.round.asInteger) ); } } LPButton{//eine typische abstraktion var <>parent; var <>onFunction,<>offFunction; *new {|onFunction,offFunction| ^super.new.padinit(onFunction,offFuncti ...
-
... for the MIDI output device. 'tempo' is a float, for BPM. When you click the button next to the device menu, it will wait until just before the next bar line, and then send a MIDI clock start message, and start running ticks on the downb ...
-
... envir.xfadeTime = nbx.value }, tdef.envir.xfadeTime, false, 35); ~recordButton = Button(w, 51@19); ~recordButton.states_([["rec", Color.black, Color.white],["rec", Color.white, Color.red]]); ~recordButton.action = {|view| ...