-
... d.svg"); // embed the generated svg in a window window = Window.new("test", Rect(100,100,150,100)).front; window.view.background_(Color.new(153,255, 102)); chordview = UserView(window); chordview.drawFunc = { |uview| var viewwidt ...
-
... 700, run = true; var starttime = TempoClock.default.beats; w = Window("trio", Rect(40, 40, h, v), false); w.onClose = { run = false }; // stop the thread on close w.front; w.drawFunc = { Pen.width = 2; Pen.use { var time ...
-
... var vlayout; var zoom_slider; win = Window.new("select sample position", Rect(200, 300, 740, 100)); sf = SoundFile.new; sfview = SoundFileView.new; vlayout = VLayout.new; zoom_slider = RangeSlider.new; zoom_slider.orie ...
-
... fill(1024, { 256 }); // array, language side w = Window("Draw your waveform!", Rect(100, 100, 1024, 512)).front; u = UserView(w, w.view.bounds); // function that changes the array and the buffer, and makes some clipping f = { |x, y| ...
-
... rpretation of enveloppe pictural representation. ( var win = Window.new( "", Rect( 0, 800, 700, 400 ) ); // This will be our main window var instrument_file = {}; var main_view = UserView(); var layout = UserView(); var backgroun ...
-
... the best way to structure GUI code. IMO, Model-View-Controller (when done correctly) gives you the most flexibility while avoiding common bugs. But it's hard to wrap your head around it first. So, here's a quick example using NodeProxies ...
-
... ut, there are a couple of tricks: * If you set the .layout of a ScrollView directly, the layout will use the visible area only -- no scrolling. SOLUTION: Explicitly replace the ScrollView's canvas with your own View(), and apply the l ...
-
... vent.play; event[\dur].wait; } }); //gui w = Window.new("wavesets", Rect(128, 64, 400, 400)).front; w.addFlowLayout; w.view.decorator.gap=5@5; labels = ["numWs", "repeats", "playRate", "playRate2", "volume", "pan", "legat ...
-
A QuNeo's Sampler melodic and expressive with different scales by sebastienclara (sebastienclara) Code
... //////////////////////////////// // Gui window = Window("A QuNeo's Sampler", Rect(500, 700, 250, 50)); selectSampleButton = Button(window).states_([["Select a sample"]]); scalePopUp = PopUpMenu(window).items_(ScaleInfo.scales.keys. ...
-
... ed = split.copy.sort { |a, b| a.last[1] < b.last[1] }; w = Window("Methods", Rect(centerX - 150, 0, 300, Window.screenBounds.height)); w.layout = HLayout( list = ListView(), VLayout( nil, upBtn = Button().fixedSize_(Size(30, 2 ...