-
Sheet { *new { arg buildDialog, name="", bounds; var layout; layout = PageLayout(name, bounds, front:false); buildDialog.value(layout); layout.resizeToFit(center:true); layout.front; ^layout } *getString { arg prompt, defaultString, callbac ...
-
... teStartupFileToExternalPath(\myNTMI, thisProcess.nowExecutingPath); StartupFile.dialog; *****/ // prepare and use my own special hello sound NTMI.helloSound = { // stereo { LFDNoise3.ar(XLine.kr(4000!2, 20, 1, doneAction: 2), 0.05) }.play; ...
-
... .orientation_(\horizontal); var b = Button(w).states_([["open"]]); b.action = { Dialog.openPanel({ |path| var ws = WavesetsEvent.new; ws.readChannel(path, onComplete: { ~wavesets = ws; ~path = path }) }) }; sl.action = { |view| ~start = vie ...
-
... // Takes a snapshot of all current connections and saves into file. // Opens a dialog box for user to choose file name and location. *saveCurrentConnections { var file, connections; connections = SCLOrkJack.collectConnections.asCompileStri ...
-
... eventSaveProject = (); } invokeEvent { |event| event.changed(this); } saveAs { Dialog.savePanel({ |filepath| var pathName = PathName(filepath.value); this.saveData(pathName.fullPath); "project saved".postln; },{ "cancelled".postln; }); } s ...
-
... teStartupFileToExternalPath(\myNTMI, thisProcess.nowExecutingPath); StartupFile.dialog; *****/ "*** NTMI on patchbox ***".postln; // prepare and use my own special hello sound NTMI.helloSound = { // stereo { LFDNoise3.ar(XLine.kr(4000!2, 20 ...
-
... ws.do{|x, i| x.do{|y, j| y.view.valueAction= mainGUIviews[i][j].view.value}}}, {Dialog.savePanel{|x| redEffectsRack.cvs.postln.writeArchive(x)}}, /*{Dialog.openPanel{|x| redMixer.free; redMixer= RedMixer.restoreFile(x); redMixer.init; redMi ...
-
... his.readTextArchive( path ); action.value(score); score } }; if( path.isNil ) { Dialog.getPaths( { |paths| f.(paths[0],action); }); } { path = path.standardizePath; f.(path,action) }; } }
-
// wslib 2005 // simple + fast audition of audiofile + Buffer { *playDialog { // convenience method arg mul = 1, rate=1, out=0, server, free=true, startFrame = 0, numFrames, bufnum; ^Buffer.readPlay(server, nil, free, startFrame, numFrames, ...
-
... cat_NTMI, thisProcess.nowExecutingPath; ); // then to choose it, do StartupFile.dialog; // start oscar&xflux NTMI.oscar.makeServer; // activate flatcat simulation defer ({ Tdef(\flatcatSim).stop.play }, 1); // stop this tdef from unintended ...