-
... Func.( paths ); }; } { func = { |path| lastPath = path; okFunc.( path ); }; }; ^Dialog.openPanel( func, cancelFunc, multipleSelection, lastPath ); } *savePanel { arg okFunc, cancelFunc, path; var func; func = { |path| lastPath = path; okFun ...
-
... ny instance methods. Just pick any file to see all the parts of its path. ( FileDialog.new( { |ok, path| var myPathName; if (ok, { myPathName = PathName.new(path); "New PathName object: ".postc; myPathName.postln; "fileName only: ".postc; m ...
-
... VGFile .read( Document .current.path.dirname ++ "/example.svg" ); f.write; // a dialog should appear read ( replaceObjects ) reads the file specified in the path variable. replaceObjects : if true (default) replaces the current object sin t ...
-
... views[ \genWindow ], 80@18 ) .extrude_(false) .label_( "generate" ) .action_({ Dialog.savePanel({ |path| PartConvBuffer.convertIRFile( PartConvBuffer.generateDanStowelIR( views[ \genDur ].value ), path.replaceExtension( "partconv" ), ULib. ...
-
... ged).postln; }; changed } }; ~dorotaExportSVG = { |path = nil| if(path.isNil) { Dialog.savePanel({ |p| exportSVGFromTracks.(p) }, "dorota_export.svg"); } { exportSVGFromTracks.(path); }; }; ~dorotaImportSVG = { |path = nil| if(path.isNil) { ...
-
SFPlayer { var <path, <outbus, <server, <autoShowOpenDialog, <>autoBootServer, <>autoSetSampleRate, <>autoSetOutputChannels; var <buffer, <sf, cond, <curSynth, <synthName; var clock, <skin; var <cues, offset, lastStart; var <amp, <isPlaying ...
-
... e file is permanently deleted. If ask == true ( default ) && toTrash == false a dialog comes up before anything gets deleted "~/Desktop/testCopy/testDir" .removeFile( false ); "~/Desktop/testCopy/testDir" .removeFile; // check the trashcan ...
-
... ; // Stop whatever is playing s.freeAll; startButton.value = 0; Dialog.openPanel( okFunc: { |path| soundFile = SoundFile.new; soundFile.openRead(path); // Load sound into buffer buffer = Buffer.readCh ...
-
... nces", Color.white, Color(0.3, 0.3, 0.3)]]) .action_({ |pb| CVCenterPreferences.dialog }) .acceptsMouseOver_(true) ; if (GUI.id !== \cocoa, { prefBut.toolTip_("Edit the global preferences for CVCenter (resp.\nCVWidget). Preferences will be ...
-
... ht, buttonwidth, controlsheight ) ); loadb.states = [["Load"]]; loadb.action_({ Dialog.openPanel({ arg path; //no checking safety, just tries to load as best it can this.load(path); }); }); analysisb = Button( w, Rect( margin + viewwidth - ...